ASP.net 求高手指教 很重要 希望大家帮帮忙,请告诉我怎么改,最好告诉将源代码改成什么样的 ,真心感谢!
源代码<METAHTTP-EQUIV="REFRESH"CONTENT="2.5"><ScriptLanguage="VB"runat="Server">SubPage_...
源代码
<META HTTP-EQUIV="REFRESH" CONTENT="2.5" >
<Script Language="VB" runat="Server">
Sub Page_load(Sender as object,e as eventargs)
Dim i As Integer
Dim lItem As ListItem
Dim txt As String
Application.Lock
For i=0 to Application("UserNum")-1
txt=Application("User")(i)
lItem=New ListItem(txt,txt)
list.Items.Add(lItem)
Next
Application.Unlock
End Sub
</Script>
<Html>
<Body>
<Asp:Label Runat="Server" id="labell" Text="当前用户:"/><Br>
<Asp:ListBox runat="Server" id="list" Rows="20" Width="80%">
</asp:ListBox>
</Body>
</Html>
运行后 展开
<META HTTP-EQUIV="REFRESH" CONTENT="2.5" >
<Script Language="VB" runat="Server">
Sub Page_load(Sender as object,e as eventargs)
Dim i As Integer
Dim lItem As ListItem
Dim txt As String
Application.Lock
For i=0 to Application("UserNum")-1
txt=Application("User")(i)
lItem=New ListItem(txt,txt)
list.Items.Add(lItem)
Next
Application.Unlock
End Sub
</Script>
<Html>
<Body>
<Asp:Label Runat="Server" id="labell" Text="当前用户:"/><Br>
<Asp:ListBox runat="Server" id="list" Rows="20" Width="80%">
</asp:ListBox>
</Body>
</Html>
运行后 展开
展开全部
<Body><form id="form1" ruanat="server">,
<Asp:Label Runat="Server" id="labell" Text="当前用户:"/><Br>
<Asp:ListBox runat="Server" id="list" Rows="20" Width="80%">
</asp:ListBox></form>
</Body>
Web服务器控件和HTML服务器空间都必须放在表单内,否则服务器无法识别控件。
<Asp:Label Runat="Server" id="labell" Text="当前用户:"/><Br>
<Asp:ListBox runat="Server" id="list" Rows="20" Width="80%">
</asp:ListBox></form>
</Body>
Web服务器控件和HTML服务器空间都必须放在表单内,否则服务器无法识别控件。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询