62,046
社区成员
发帖
与我相关
我的任务
分享
<span><%=hello %></span>
<div>
<asp:Label runat="server" ID="Label1"></asp:Label>
<asp:Label runat="server" ID="abc"></asp:Label>
<asp:Button runat="server" ID="a" Text="hello world" onclick="a_Click" />
</div>
public string hello
{
get
{
if (string.IsNullOrEmpty(Convert.ToString(ViewState["hello"])))
{
ViewState["hello"] = System.Guid.NewGuid().ToString();
}
return ViewState["hello"].ToString();
}
}