asp.net中TextBox框怎么PopUp一个画面

来源:百度知道 编辑:UC知道 时间:2024/07/07 16:21:51
就是单击一下TextBox框,它会弹出一个画面,这个单击事件用哪个方法啊?

<script type="text/javascript">
function T_Onclick()
{
document.getElementById("Img_Show").style.visibility="visible";
}
</script>

<asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox>
<img src="#" alt="" id="Img_Show" style="visibility:hidden;" />

protected void Page_Load(object sender, EventArgs e)
{
TextBox1.Attributes.Add("onclick", "return T_Onclick();");
}

click