关于updatepanel对input控件hidden的使用

来源:百度知道 编辑:UC知道 时间:2024/05/13 00:55:19
<body style="text-align: center; font-size: 5px;" alink="#0">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
//......中间省略
<input id="Hidden1" runat="server" style="position: static" type="hidden" />
<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Always" runat="server">
<ContentTemplate>
<%
if (this.Hidden1.Value == "青春校园" || this.Hidden1.Value == "公务员")
{
this.Panel1.Visible = true;
this.Panel2.Visible = false;
SqlConnection con = DB.conCreate();
con.Open();
if (this.Hidden1.Value == "青春校园")

这个东西没这么用过 但是我想肯定是要放在
hidden1的onmouseover事件中 当鼠标放在hidden1上的时候 触发onmouseover事件 在事件中调用 绑定数据到内容也的方法
只是一个思路 希望能够对你有帮助