Jump to content

Recommended Posts

Posted

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! :lol:

  • Replies 37
  • Created
  • Last Reply

Top Posters In This Topic

Posted

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??

Posted
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.

 

Posted
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>

Posted

... dude, you deleted your entire public_html directory. Look up some basic tutorial or something. This isn't escalated material.

Posted

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

Dan

WebSite4.zip

Posted
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??

 

Posted
... 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

Posted
... 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.

 

Guest
This topic is now closed to further replies.

×
×
  • Create New...