+ Reply to Thread
Results 1 to 3 of 3

Thread: asp.net

  1. #1
    finger123 is offline x10Hosting Member finger123 is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    2

    asp.net

    is asp.net enabled by default with x10hosting? i ask because when i upload my site, one of my page is in asp. when i enter that page, i can see it but the login box is blank with just a red line.

  2. #2
    adamparkzer is offline On Extended Leave adamparkzer is just really nice
    Join Date
    Jun 2008
    Location
    IL, USA
    Posts
    3,745

    Re: asp.net

    Quote Originally Posted by finger123 View Post
    is asp.net enabled by default with x10hosting? i ask because when i upload my site, one of my page is in asp. when i enter that page, i can see it but the login box is blank with just a red line.
    According to the x10Hosting Free Web Hosting sign-up page, ASP.NET is enabled by default.

    http://x10hosting.com/freehosting.php

    Could you give us the URL of your .ASP page (and maybe even the code if it's short) so someone could take a look at it to see if wen can find anything particularly wrong with it?

  3. #3
    finger123 is offline x10Hosting Member finger123 is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    2

    Re: asp.net

    hmm. that is wierd then. here is my asp code.


    </div>
    <%
    'Green colorset
    'BackgroundColor="#C9DDB3"
    'BorderColor="#006600"

    'Blue colorset
    BackgroundColor="#000000"
    BorderColor="#FFFFFF"

    'Purple colorset
    'BackgroundColor="#FDC8F2"
    'BorderColor="#800080"

    Content = "" 'Clear the Content string
    QStr = Request.QueryString("login") 'Save the login querystring to QStr
    if ucase(left(QStr,6))="CREATE" then
    Title = "Register"
    else
    Title = "Login"
    end if

    'The code below saves the contents the table must have in the variable Content
    'The content depends on what's in the QueryString

    if QStr="passfailed" then
    Content = Content & "<tr><td valign=top bordercolor="& BackgroundColor &" align=center><P>Wrong password, try again!</P><A href=Javascript:history.go(-1)>Back</A></td></tr>"
    elseif QStr="createpassfailed" then
    Content = Content & "<tr><td valign=top bordercolor="& BackgroundColor &" align=center><P>Wrong password</P><A href=Javascript:history.go(-1)>Back</A><BR><BR><A HREF=login.asp>Cancel registration</A></td></tr>"
    elseif QStr="namefailed" then
    Content = Content & "<tr><td valign=top bordercolor="& BackgroundColor &" align=center><P>Invalid Username</P><A HREF=login.asp?login=createnew>Click here to create an account</A><BR><BR><A HREF=Javascript:history.go(-1)>Back</A></td></tr>"
    elseif QStr="createnamefailed" then
    Content = Content & "<tr><td valign=top bordercolor="& BackgroundColor &" align=center><P>Sorry, but that UserName is already taken</P><A HREF=Javascript:history.go(-1)>Back</A><BR><BR><A HREF=login.asp>Cancel registration</A></td></tr>"
    elseif QStr="creatednew" then
    Content = Content & "<tr><td valign=top bordercolor="& BackgroundColor &" align=center><P>Your account has been created! You can now Log In.</P><A HREF=login.asp>Login</A></td></tr>"
    elseif QStr="createnew" then
    Content = Content & "<form name=frmCreate method=POST action=create.asp>"
    Content = Content & "<tr><td valign=top bordercolor="& BackgroundColor &" align=center><br>Username: <input type=text name=txtUsername></td></tr>"
    Content = Content & "<tr><td valign=top bordercolor="& BackgroundColor &" align=center>Password: <input type=password name=txtPassword></td></tr>"
    Content = Content & "<tr><td valign=top bordercolor="& BackgroundColor &" align=center><br>Full name: <input type=text name=txtFullname></td></tr>"
    Content = Content & "<tr><td valign=top bordercolor="& BackgroundColor &" align=center><input type=submit name=cmdSubmit value=Register></td></tr>"
    Content = Content & "</form>"
    else
    Content = Content & "<form name=frmMain method=POST action=verify.asp>"
    Content = Content & "<tr><td valign=top bordercolor="& BackgroundColor &" align=center><br>Username: <input type=text name=txtUsername></td></tr>"
    Content = Content & "<tr><td valign=top bordercolor="& BackgroundColor &" align=center>Password: <input type=password name=txtPassword></td></tr>"
    Content = Content & "<tr><td valign=top bordercolor="& BackgroundColor &" align=center><input type=submit name=cmdSubmit value=Login></td></tr>"
    Content = Content & "</form>"
    Content = Content & "<tr><td valign=top bordercolor="& BackgroundColor &" align=center><A HREF=login.asp?login=createnew>Click here to create an account</A></td></tr>"
    end if
    %>
    <!-- Build the page with the table -->
    To Access this section, you will be required to login. You must have an active account to log in. If you do not have an account please click on register account below. Registration takes only a few seconds. Once your account has been created, you can access this section immediately.

    <br>
    <head>
    <title>ASP Login</title>
    </head>
    <body link="<% Response.Write(BorderColor) %>" vlink="<% Response.Write(BorderColor) %>" alink="<% Response.Write(BorderColor) %>" text="<% Response.Write(BorderColor) %>">
    <br>
    </div>
    <div align="center">

    <table border="2" cellspacing="5" bgcolor="<% Response.Write(BackgroundColor) %>" bordercolor="<% Response.Write(BorderColor) %>"width="250px">


    <%
    Response.Write("<tr><td valign=top align=center><b>" & Title & "</b></td></tr>")
    Response.Write(Content) ' Paste the contents in the table
    %>

    </table>

    </div>

+ Reply to Thread

Similar Threads

  1. MySql + ASP.net Connections problem..
    By monsterhit in forum Programming Help
    Replies: 3
    Last Post: 12-10-2009, 01:28 AM
  2. Asp.net
    By hansruedi in forum Programming Help
    Replies: 5
    Last Post: 08-20-2009, 08:03 AM
  3. Ok, so I'm trying to decided wether to use asp.net or php
    By mrfish in forum Programming Help
    Replies: 8
    Last Post: 06-16-2009, 05:59 AM
  4. ASP.NET not linking to code behind??
    By angrywasp in forum Programming Help
    Replies: 9
    Last Post: 06-30-2008, 02:47 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