新的网页将不会显示--请帮助 [英] new web page will not come up - - help please

查看:68
本文介绍了新的网页将不会显示--请帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个朋友要我为他的网站编写一些新功能.这是一个经典的* .html网站,没有* .asp或* .aspx页面.我已经使用C#(*.aspx和* .aspx.cs)完成了页面.我已将新页面放在提供商服务器上他网站文件夹中的子文件夹中.当我们尝试启动新的起始页面(或就此而言,任何子页面)时,我们从起始页面获得的只是

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" %> 


然后我们只能通过Mozilla来获得此信息,而使用IE或Chrome时我们什么也得不到.我正在使用某种脚本来创建一个动态网页,并从web.config文件获取值来确定网页上显示的值.有什么想法吗?
谢谢大家的宝贵意见或帮助.


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.

<%@ 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>

推荐答案

我必须告诉您是否要查找页面,您需要执行几个步骤,例如创建虚拟目录,上传到虚拟目录,使用网址(http://yourservername/yourpage.aspx)等从浏览器调用网站.

本教程可能会对您有所帮助.
http://msdn.microsoft.com/en-us/library/1y1404zt% 28VS.80%29.aspx [ ^ ]

还要提醒您,您需要在要运行页面的服务器上安装.NET Framework.如果您已经在运行asp.net,但是看不到IIS来处理它,则也可以尝试通过打开命令提示符并使用
重新安装它. aspnet_regiis /i

我希望这可以帮助您在任何浏览器中运行您的应用程序.基本上,网站不是特定于浏览器的,因为html可以在任何地方呈现.只要看看IIS是否正确生成html. :rose:
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:


这篇关于新的网页将不会显示--请帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆