+ Reply to Thread
Results 1 to 6 of 6

Thread: HellowWorld.aspx

  1. #1
    daspnet is offline x10Hosting Member daspnet is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    4

    HellowWorld.aspx

    I copied the code from...
    How to get ASP.Net to work at x10Hosting

    ...but I changed this line...
    Partial Class _Default Inherits System.Web.UI.Page
    ...changed to...
    PartialClass HelloWorld Inherits System.Web.UI.Page

    ...runs fine in Microsoft Web Developer Express, and does not work from this link...
    http://daspnet.x10.mx/day1b/HelloWorld.aspx
    ...PROBLEM: the web browser acts like it never even finds the file.

    ..this works...
    http://daspnet.x10.mx/day1b/test.htm

    I never saw web.config anywhere.
    Here is the HelloWorld.aspx...
    <%@PageLanguage="VB"AutoEventWireup="false"CodeFile="HelloWorld.aspx.vb"Inherits="HelloWorld" %>
    <!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <
    htmlxmlns="http://www.w3.org/1999/xhtml">
    <
    headid="Head1"runat="server">
    <title>Hello World!</title>
    </head>
    <
    body>
    <formid="form1"runat="server">
    <div>
    <asp:LabelID="Label1"runat="server"Text="Erm, Hello World!"></asp:Label>
    <br/><br/>
    <asp:ButtonID="Button1"runat="server"onclick="Button1_Click"Text="Press Me"/>
    </div>
    </form>
    </
    body>
    </html>

    Here is the HelloWorld.aspx.vb...
    PartialClass HelloWorld
    Inherits System.Web.UI.Page
    ProtectedSub Button1_Click(ByVal sender AsObject, ByVal e As EventArgs)
    Label1.Text = "ASP.Net post test Worked"
    EndSub
    End
    Class

  2. #2
    Hello71 is offline x10Hosting Member Hello71 is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    14

    Re: HellowWorld.aspx

    There are no spaces between the attributes of the elements.

  3. #3
    daspnet is offline x10Hosting Member daspnet is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    4

    Re: HellowWorld.aspx

    Thanks, but thats not it. My source code does have the spaces.

  4. #4
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: HellowWorld.aspx

    You should use [code], [html] or [php] tags (as appropriate) so we can better see what actual code you are using, otherwise we're working from incomplete and incorrect information. Note that the problem isn't that the browser isn't finding http://daspnet.x10.mx/day1b/HelloWorld.aspx, it's that the server is dropping the connection, which usually means there's either something wrong with the script or with the server configuration. Check your error logs for anything interesting (missing favicon.ico isn't interesting).
    Last edited by misson; 05-05-2010 at 04:32 AM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  5. #5
    herbozo2's Avatar
    herbozo2 is offline x10Hosting Member herbozo2 is an unknown quantity at this point
    Join Date
    Mar 2010
    Posts
    7

    Re: HellowWorld.aspx

    I was having a similar problem, I was doing a simple test by putting an asp.net page in my account, and sometimes it worked and sometimes it didn't. and I decided to give up and put a plain html page. I will keep trying with asp.net later though. good luck

  6. #6
    zegnhabi's Avatar
    zegnhabi is offline x10Hosting Member zegnhabi is an unknown quantity at this point
    Join Date
    Jul 2009
    Location
    On The Net
    Posts
    43

    Re: HellowWorld.aspx

    Currently ASP.net have some problems
    Yo Soy SQLero, ¿Y Tú?


+ Reply to Thread

Similar Threads

  1. ASPX help
    By j4k3s7a in forum Programming Help
    Replies: 3
    Last Post: 01-19-2009, 05:59 PM
  2. Help !!! ASPX
    By oiler in forum Off Topic
    Replies: 1
    Last Post: 12-26-2007, 10:58 AM
  3. .aspx net
    By quangphangbang in forum Free Hosting
    Replies: 1
    Last Post: 11-03-2007, 09:14 AM
  4. .aspx
    By quangphangbang in forum Free Hosting
    Replies: 10
    Last Post: 10-18-2007, 05:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers