Results 1 to 3 of 3

Thread: [RESOLVED] ASPX page won't display correctly!

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Resolved [RESOLVED] ASPX page won't display correctly!

    I have an aspx website that uses an index.htm as the starting page. I have a contact.aspx page which is linked to the index.htm. When I click on the link that redirects to the contact.aspx page, the only thing that shows in the values in a dropdownlist control. There are actually 4 textboxes and 4 labels along with a submit button. Again, the only thing that shows on the page are the values in the dropdownlist and that is it. I've attached 2 images. The first one is how it looks when I run the app. The 2nd image is what it should look like.

    HTML Code:
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Contact.aspx.vb" Inherits="Contact" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>How may I help you</title>
        <link href="BlakesStyleSheet.css" rel="stylesheet" type="text/css" />
        <style type="text/css"></style>
        </head>
    <body>
        <form id="form1" runat="server">
        <table align="center">
            <tr>
                <td class="Labels" colspan="2">
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/contactMe.jpg" />
                </td>
            </tr>
            <tr>
                <td class="Labels" style="width: 170px">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="Labels" style="width: 170px">
                    <asp:Label ID="Label1" runat="server" Text="Name:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtName" runat="server" Width="220px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" class="requiredFields" 
                        ErrorMessage="Full name is required!" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="Labels" style="width: 170px">
                    <asp:Label ID="Label2" runat="server" Text="Email:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server" Width="220px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" class="requiredFields" 
                        ErrorMessage="Valid Email address required!" ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="Labels" style="width: 170px">
                    <asp:Label ID="Label3" runat="server" Text="Subject:"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlSubject" runat="server">
                        <asp:ListItem>Project Work</asp:ListItem>
                        <asp:ListItem>Permanent Work</asp:ListItem>
                        <asp:ListItem>Contract Work</asp:ListItem>
                        <asp:ListItem>Web Site Development</asp:ListItem>
                        <asp:ListItem>Other</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" class="requiredFields" 
                        ErrorMessage="Please select an subject!" ControlToValidate="ddlSubject"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="message" style="width: 170px">
                    <asp:Label ID="Label4" runat="server" Text="Message:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtMessage" runat="server" Height="157px" TextMode="MultiLine" 
                        Width="450px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" class="requiredFields" 
                        ErrorMessage="Please enter a message!" ControlToValidate="txtMessage"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="message" style="width: 170px; height: 45px;">
                </td>
                <td>
                    <asp:Button ID="btnSendMessage" runat="server" Text="Send Message" />
                </td>
            </tr>
            <tr>
                <td class="errMsg" style="height: 58px;" colspan="2">
                    <asp:Label ID="lblMessage" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
        </table>
        </form>
    </body>
    </html>
    Thanks,
    Last edited by blakemckenna; Oct 5th, 2009 at 06:25 PM.
    Blake

  2. #2
    Addicted Member
    Join Date
    Sep 2009
    Location
    The Netherlands
    Posts
    148

    Re: ASPX page won't display correctly!

    Hi,

    I see in your screenie that you're running IIS or some sort?

    Maybe i'm mistaken, but i believe that its not that simple to run aspx on a local host for you need some additional configuration.

    google will provide some answers or otherwise http://msdn.microsoft.com, search for iis aspx

    good luck,
    hakka

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: ASPX page won't display correctly!

    Hakka,

    Your right. My web-hosting site (GoDaddy.com) did not have me on the right account to use ASPX. I've changed it now and it's working correctly!

    Thanks,
    Blake

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width