Click here to Skip to main content
15,906,626 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have a friend who asked me to write some new functionality for his web site. It is a classic *.html web site with no *.asp or *.aspx pages. I have did the pages using C# (*.aspx and *.aspx.cs). I have put the new pages in a sub folder in his web site folder on his provider’s server. When we try to get the new start page to come up (or for that matter any of the child pages either), all we get with the start page is
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SurveyHomePage.aspx.cs" Inherits="_Default" %> 

and then we only get this through Mozilla, we do not get anything when we use IE or Chrome. I am doing a dynamic web page of sorts with some script and getting values from the web.config file to determine the values shown on the web page. Any ideas?
Thank you all for your ideas or assistance in advance.

ASP
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="SurveyHomePage.aspx.cs" Inherits="_Default" %>

<!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>Survey Home Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Label ID="lbl1" runat="server" Height="60" Visible="true" Width="1025px" Font-Size="24pt" Font-Bold="True"
            Font-Italic="False" Font-Names="Arial" BackColor="Lime" ForeColor="Black"></asp:Label>
    <script runat="server">
        int count = 1;

        void IterateThroughChildren(Control parent)
        {

         .  .  other code here .  .
            
        }
    </script>
    <div>

    </div>
        <br />
        <asp:PlaceHolder runat="server" id="TextBoxesHere" />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
    <asp:Label ID="Label1" runat="server" Visible="false" OnLoad="CreateTextBoxes"></asp:Label>
        <br />
    <asp:Label ID="Label2" runat="server" Visible="false"></asp:Label>
        <br />
    <asp:Label ID="Label3" runat="server" Visible="false"></asp:Label>
        <br />
    <asp:Label ID="Label4" runat="server" Visible="false"></asp:Label>
    </form>
</body>
</html>
Posted
Updated 14-Oct-10 11:41am
v2
Comments
[no name] 14-Oct-10 19:25pm    
You will have to elaborate on "we do not get anything when we use IE or Chrome". You get a blank screen? You get the default page? What?
[no name] 15-Oct-10 4:49am    
child pages? parent?
you mean Master Pages? and Content pages? or are you using MVC? partial results?
michaelschmitt 16-Oct-10 7:41am    
If it was a html-only-site before..is asp.net even installed and configured on the server and are the .aspx pages handled correctly?
Coder30062 17-Oct-10 13:35pm    
okay - to Mark Nischalke - you are correct we get a completely blank page - nothing.

To JFergulbops - yes I see the primary page as the "Survey Home Page" as the "parent" and then there are other subordinate "content / child" pages that are accessible through the links created on the "Survey Home Page".

To michaelschmitt - the original html-only site is being hosted by a 3rd party provider and they have assured me that their server is configured for *.aspx pages.

thank you for you questions and please continue to ask me to clarify anything not clear that might provide a further clue / idea.

1 solution

I must tell you if you are looking for a page, you need to go through few steps like Creating a Virtual Directory, Upload to the Virtual Directory, call the website from browser using Web address(http://yourservername/yourpage.aspx) etc.

This tutorial might help you.
http://msdn.microsoft.com/en-us/library/1y1404zt%28VS.80%29.aspx[^]

Also to remind, you need to install .NET framework on the server where you want your page to run. If you already have asp.net running, but cannot see the IIS to process it, you can also try reinstalling the same by opening Command prompt and use
aspnet_regiis /i

I hope this would help you to run your application in any browser. Basically web sites are not browser specific, as html is rendered anywhere. Just see if the IIS generates the html correctly. :rose:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900