aspx页面不可见 [英] aspx pages not viewable

查看:84
本文介绍了aspx页面不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们刚刚购买了.net ent。我们公司的版本。

我已经在我的桌面上安装了.net,我开发了我们的aspx和vb.net应用程序。

网络人员安装了1.1框架。

我刚刚建立了我的第一页。一些标签/文本框

和一两个用于测试的按钮。(我是.net的新手)我在新页面上构建了

并将整个文件夹移动到我的IIS服务器

并试图打开该页面。但我什么都看不见,并且没有错误。我可以看到视图/源中的一些代码

但它没有显示。我们忘记了什么吗?

解决方案

让我们看一下你的aspx页面中的代码。


Lee Hopkins <乐********* @ suntroncorp.com>在留言中写道

news:00 **************************** @ phx.gbl ... < blockquote class =post_quotes>我们刚刚购买了.net ent。我公司的版本。
我在我的桌面上安装了.net,我在开发我们的aspx和vb.net应用程序。
网络人员安装了1.1框架。
我刚刚建立了我的第一页。一些标签/文本框
和一两个用于测试的按钮。(我是.net的新手)我构建了新页面并将整个文件夹移动到我的IIS服务器上并尝试了打开页面。但我什么都看不见,没有错误。我可以在视图/源中看到一些代码
但它不会显示。我们忘记了什么???



我没有按钮做任何事情所以

几乎没有testaspx.vb表格


<%@ Page Language =" vb" AutoEventWireup =" false"
Codebehind =" WebForm1.aspx.vb" Inherits =" TestAspx.WebForm1"%>

<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.0 Transitional // EN">

< HTML>

< HEAD>

< title> WebForm1< / title>

< meta name =" GENERATOR" ; content =" Microsoft Visual Studio .NET 7.1"

< meta name =" CODE_LANGUAGE" content =" Visual Basic .NET 7.1"

< meta name =" vs_defaultClientScript" content =" JavaScript">

< meta name =" vs_targetSchema"

content =" http://schemas.microsoft.com/intellisense/ie5" ;>

< / HEAD>

< body MS_POSITIONING =" GridLayout">

< form id =" Form1中"方法= QUOT;交" runat =" server">

< asp:Label id =" Label1" style =" Z-INDEX:101;左:200px;位置:

绝对值; TOP:64px runat =" server"

Width =" 320px"高度= QUOT; 104px" ForeColor =" Red"> Hello< / asp:Label>

< asp:Button id =" Button1" style =" Z-INDEX:102;左:192px;位置:

绝对值; TOP:184px runat =" server"

Width =" 296px"高度= QUOT; 48像素的" Text =" Button 1">< / asp:Button>

< asp:Label id =" Label2" style =" Z-INDEX:103;左:184px;位置:

绝对值; TOP:288px runat =" server"

Height =" 88px" Width =" 352px"> Label< / asp:Label>

< asp:Button id =" Button2" style =" Z-INDEX:104;左:232px;位置:

绝对值; TOP:400px runat =" server"

Height =" 56px"宽度= QUOT; 280像素" Text =" Button">< / asp:Button>

< asp:TextBox id =" TextBox1" style =" Z-INDEX:105;左:240px;

位置:绝对; TOP:480px"

runat =" server"高度= QUOT; 40像素" Width =" 304px">< / asp:TextBox>

< / form>

< / body>

< ; / HTML>



公共类WebForm1

继承System.Web.UI.Page

#Region" Web窗体设计器生成的代码


''Web窗体设计器需要此调用。

< System.Diagnostics.DebuggerStepThrough()> Private Sub

InitializeComponent()

End Sub

Protected WithEvents Label1 As System.Web.UI.WebControls.Label

受保护的WithEvents Button1 As System.Web.UI.WebControls.Button

Protected WithEvents Label2 As System.Web.UI.WebControls.Label

Protected WithEvents Button2 As System.Web.UI.WebControls.Button

Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox


''注意:以下Web要求占位符声明

表单设计器。

''不要删除或移动它。

私有designerPlaceholderDeclaration As System.Object


Private Sub Page_Init(ByVal sender As System.Object,ByVal e As

System.EventArgs)处理MyBase.Init

' 'CODEGEN:Web表单设计器需要此方法调用

''不要使用代码编辑器修改它。

InitializeComponent()

结束子

#End Region

Private Sub Page_Load(ByVal sender As System.Object,ByVal e As

System.EventArgs)处理MyBase.Load

''将用户代码设置为初始化页面

End Sub


结束班级


***通过开发人员指南发送 http://www.developersdex.com ***

不要只是参加USENET ......获得奖励!


Hi Lee,


当.net框架1.1安装好后,服务器似乎已经安装了IIS,对吗?

你运行了吗? />
aspnet_regiis -i

用iis注册新的框架版本?


检查
h ttp://www.microsoft.com/technet/tre..._regiisexe.asp

HTH,

Andrei。

Lee Hopkins <乐********* @ suntroncorp.com>在留言中写道

news:00 **************************** @ phx.gbl ... < blockquote class =post_quotes>我们刚刚购买了.net ent。我公司的版本。
我在我的桌面上安装了.net,我在开发我们的aspx和vb.net应用程序。
网络人员安装了1.1框架。
我刚刚建立了我的第一页。一些标签/文本框
和一两个用于测试的按钮。(我是.net的新手)我构建了新页面并将整个文件夹移动到我的IIS服务器上并尝试了打开页面。但我什么都看不见,没有错误。我可以在视图/源中看到一些代码
但它不会显示。我们忘记了什么???



We have just purchased .net ent. edition for our company.
I have installed .net on my desktop where I do the
developing of our aspx, and vb.net applications. the
Network people installed the 1.1 framwork.
I have just built my first page. a few labels/text boxes
and a button or two for testing.(I am new to .net) I built
the new page and move the complete folder to my IIS server
and tried to open the page. but I see nothing and receive
no errors. I can see some of the code in the view/source
but it does not display. Did we forget something???

解决方案

Let us see the code in your aspx page.

"Lee Hopkins" <le*********@suntroncorp.com> wrote in message
news:00****************************@phx.gbl...

We have just purchased .net ent. edition for our company.
I have installed .net on my desktop where I do the
developing of our aspx, and vb.net applications. the
Network people installed the 1.1 framwork.
I have just built my first page. a few labels/text boxes
and a button or two for testing.(I am new to .net) I built
the new page and move the complete folder to my IIS server
and tried to open the page. but I see nothing and receive
no errors. I can see some of the code in the view/source
but it does not display. Did we forget something???



I do not have the buttons doing any thing yet so there is little on the
testaspx.vb form

<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="TestAspx.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 200px; POSITION:
absolute; TOP: 64px" runat="server"
Width="320px" Height="104px" ForeColor="Red">Hello</asp:Label>
<asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 192px; POSITION:
absolute; TOP: 184px" runat="server"
Width="296px" Height="48px" Text="Button 1"></asp:Button>
<asp:Label id="Label2" style="Z-INDEX: 103; LEFT: 184px; POSITION:
absolute; TOP: 288px" runat="server"
Height="88px" Width="352px">Label</asp:Label>
<asp:Button id="Button2" style="Z-INDEX: 104; LEFT: 232px; POSITION:
absolute; TOP: 400px" runat="server"
Height="56px" Width="280px" Text="Button"></asp:Button>
<asp:TextBox id="TextBox1" style="Z-INDEX: 105; LEFT: 240px;
POSITION: absolute; TOP: 480px"
runat="server" Height="40px" Width="304px"></asp:TextBox>
</form>
</body>
</HTML>



Public Class WebForm1
Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

''This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()

End Sub
Protected WithEvents Label1 As System.Web.UI.WebControls.Label
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents Label2 As System.Web.UI.WebControls.Label
Protected WithEvents Button2 As System.Web.UI.WebControls.Button
Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox

''NOTE: The following placeholder declaration is required by the Web
Form Designer.
''Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
''CODEGEN: This method call is required by the Web Form Designer
''Do not modify it using the code editor.
InitializeComponent()
End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
''Put user code to initialize the page here
End Sub

End Class

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!


Hi Lee,

It seems like the server already had IIS when the .net framework 1.1 was
installed, right ?
Did you run
aspnet_regiis -i
to register the new framework version with iis ?

Check
http://www.microsoft.com/technet/tre..._regiisexe.asp

HTH,
Andrei.
"Lee Hopkins" <le*********@suntroncorp.com> wrote in message
news:00****************************@phx.gbl...

We have just purchased .net ent. edition for our company.
I have installed .net on my desktop where I do the
developing of our aspx, and vb.net applications. the
Network people installed the 1.1 framwork.
I have just built my first page. a few labels/text boxes
and a button or two for testing.(I am new to .net) I built
the new page and move the complete folder to my IIS server
and tried to open the page. but I see nothing and receive
no errors. I can see some of the code in the view/source
but it does not display. Did we forget something???



这篇关于aspx页面不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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