Programer OZ Posted July 28, 2010 Posted July 28, 2010 First what it is: <% Response.WriteFile("projectVideos/VideoName.htm"); %> that writes the contents of that file at html to the page, sort of like a iframe. In the local host it works but when the website is uploaded/published it doesn't work. now this is my actual code Response.WriteFile("projectVideos/" + Request.QueryString["id"] + ".htm"); so user can do.... url/view.aspx?id=VideoName and it will show the contents of that (VideoName.htm), contents of file: <object width="500" height="405"><param name="movie" value="http://www.youtube.com/watch?v=cJnRV7wXO-o&hl=en_US&fs=1&rel=0&color1=0xe1600f&color2=0xfebd01&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/watch?v=cJnRV7wXO-o&hl=en_US&fs=1&rel=0&color1=0xe1600f&color2=0xfebd01&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="405"></embed></object> it doesnt work how it should. you can go to http://oz.heliohost.org/Programming/Media/Videos/ to check it out. please help and thanks!
aliang Posted July 29, 2010 Posted July 29, 2010 can you help me with my site?? i'm a new member here. i upload my aspx file to public_html using cpanel but when i open it http://notfreebook.heliohost.org/showTime.aspx i got this error: XML Parsing Error: no element found Location: http://notfreebook.heliohost.org/showTime.aspx Line Number 1, Column 1: contents of my file: <%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) response.write("*" & Day(Now()) & "-" & Month(Now()) & "-" & Year(Now()) & "-" & Hour(Now()) & "-" & Minute(Now()) & "*") End Sub </script> <html> <head> </head> <body> <form runat="server"> <!-- Insert content here --> </form> </body> </html> do i have to change some configuration on the cpanel to make my site works??
Programer OZ Posted July 29, 2010 Author Posted July 29, 2010 can you help me with my site?? i'm a new member here. i upload my aspx file to public_html using cpanel but when i open it http://notfreebook.heliohost.org/showTime.aspx i got this error: XML Parsing Error: no element found Location: http://notfreebook.heliohost.org/showTime.aspx Line Number 1, Column 1: contents of my file: <%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) response.write("*" & Day(Now()) & "-" & Month(Now()) & "-" & Year(Now()) & "-" & Hour(Now()) & "-" & Minute(Now()) & "*") End Sub </script> <html> <head> </head> <body> <form runat="server"> <!-- Insert content here --> </form> </body> </html> do i have to change some configuration on the cpanel to make my site works?? You don't need to change anything in cpanel. I have no clue why, you got same problem as me, scripts will not show up! in fact scripts will ruin the whole page >.<. I suggest you use Visual Web Developer Express Edition. its from Microsoft and it is free.
Ashoat Posted July 30, 2010 Posted July 30, 2010 Your site seems to load fine. Please give me a link to the page that doesn't load.
aliang Posted July 30, 2010 Posted July 30, 2010 this page : http://notfreebook.heliohost.org/showTime.aspx i can't open it using my mozilla. it works fine when i try it on visual web developer 2008.
Programer OZ Posted July 30, 2010 Author Posted July 30, 2010 this page : http://notfreebook.heliohost.org/showTime.aspx i can't open it using my mozilla. it works fine when i try it on visual web developer 2008. Same here! Can you help djbob?
Fsmv2 Posted July 30, 2010 Posted July 30, 2010 can you help me with my site?? i'm a new member here. i upload my aspx file to public_html using cpanel but when i open it http://notfreebook.heliohost.org/showTime.aspx i got this error: XML Parsing Error: no element found Location: http://notfreebook.heliohost.org/showTime.aspx Line Number 1, Column 1: contents of my file: <%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) response.write("*" & Day(Now()) & "-" & Month(Now()) & "-" & Year(Now()) & "-" & Hour(Now()) & "-" & Minute(Now()) & "*") End Sub </script> <html> <head> </head> <body> <form runat="server"> <!-- Insert content here --> </form> </body> </html> do i have to change some configuration on the cpanel to make my site works?? After doing a bit of research it looks like you have to add Response.ContentType = "text/HTML" somewhere. I got that from here. I've never programmed in ASP.NET. But I put it where I think it would need to go. I know in Perl you have to print the content type before anything else or you get an error. <%@ Page Language="VB" %> <script runat="server"> Response.ContentType = "text/HTML" Sub Page_Load(sender As Object, e As EventArgs) response.write("*" & Day(Now()) & "-" & Month(Now()) & "-" & Year(Now()) & "-" & Hour(Now()) & "-" & Minute(Now()) & "*") End Sub </script> <html> <head> </head> <body> <form runat="server"> <!-- Insert content here --> </form> </body> </html>
Programer OZ Posted July 30, 2010 Author Posted July 30, 2010 Well for some reason my page isnt showing. It has no scripts or code behind. You can check it out? Click Here ("http://oz.heliohost.org/Videos/")
Ashoat Posted July 31, 2010 Posted July 31, 2010 ... dude, you deleted your entire public_html directory. Look up some basic tutorial or something. This isn't escalated material.
danny33 Posted July 31, 2010 Posted July 31, 2010 To. All, I have the same problem with upload asp.net files to my site. What's the procedure to make asp.net work in my site. I would like to upload all asp.net files and the database mysql 2005 to the heliohost site which is I already open the domain name. Can anyone help me how to do this. How to set up this site. I cannot find the ASP folder that I can upload these files into it. Thank you Danny Here is the asp.net folder that I have created. attachment zip file WebSite4.zip I try to put these files into the public_html folder, but it's not working. thank you DanWebSite4.zip
aliang Posted July 31, 2010 Posted July 31, 2010 can you help me with my site?? i'm a new member here. i upload my aspx file to public_html using cpanel but when i open it http://notfreebook.heliohost.org/showTime.aspx i got this error: XML Parsing Error: no element found Location: http://notfreebook.heliohost.org/showTime.aspx Line Number 1, Column 1: contents of my file: <%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) response.write("*" & Day(Now()) & "-" & Month(Now()) & "-" & Year(Now()) & "-" & Hour(Now()) & "-" & Minute(Now()) & "*") End Sub </script> <html> <head> </head> <body> <form runat="server"> <!-- Insert content here --> </form> </body> </html> do i have to change some configuration on the cpanel to make my site works?? After doing a bit of research it looks like you have to add Response.ContentType = "text/HTML" somewhere. I got that from here. I've never programmed in ASP.NET. But I put it where I think it would need to go. I know in Perl you have to print the content type before anything else or you get an error. <%@ Page Language="VB" %> <script runat="server"> Response.ContentType = "text/HTML" Sub Page_Load(sender As Object, e As EventArgs) response.write("*" & Day(Now()) & "-" & Month(Now()) & "-" & Year(Now()) & "-" & Hour(Now()) & "-" & Minute(Now()) & "*") End Sub </script> <html> <head> </head> <body> <form runat="server"> <!-- Insert content here --> </form> </body> </html> still doesn't work. :( is it the mono emulator doesn't work that cause the .aspx file can't show up??
Programer OZ Posted August 1, 2010 Author Posted August 1, 2010 ... dude, you deleted your entire public_html directory. Look up some basic tutorial or something. This isn't escalated material. Yeah can you reset that? My Visual Studio went rouge and wiped everything! I am in trouble . Please reset my account. I will pick up a book and learn before I go testing like a nut again. Thanks
aliang Posted August 1, 2010 Posted August 1, 2010 Do you have a public_html folder? i still have it. i try to put a .html file there and it works well for the html file.
Byron Posted August 1, 2010 Posted August 1, 2010 ... dude, you deleted your entire public_html directory. Look up some basic tutorial or something. This isn't escalated material. Yeah can you reset that? My Visual Studio went rouge and wiped everything! I am in trouble . Please reset my account. I will pick up a book and learn before I go testing like a nut again. Thanks If that's all you deleted (public_html) you shuld be able to recreate it by going to your user (home) directory and chmod it to 750.
Recommended Posts