<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
<asp:Button id="Button1" runat="server" Text="Button" style="DISPLAY:none"></asp:Button>
codebehind:
private void Page_Load(object sender, System.EventArgs e)
{
this.TextBox1.Attributes.Add("onlick",this.Button1.ClientID+".click()");
}
private void Button1_Click(object sender, System.EventArgs e)
{
……//Your code at server
}
<asp:Button id="Button1" runat="server" Text="Button" style="DISPLAY:none"></asp:Button>
codebehind:
private void Page_Load(object sender, System.EventArgs e)
{
this.TextBox1.Attributes.Add("onlick",this.Button1.ClientID+".click()");
}
private void Button1_Click(object sender, System.EventArgs e)
{
……//Your code at server
}
解决方案 »
- 主线程强制关闭,子线程用不用管了
- winform中,在一个模态窗口中打开另一个模态窗口
- 请教"按确定键太快,向数据库写入两条数据"的问题???
- 这个在术语上叫什么?>
- c# winform 能不能做一个现实商品列表动例子,类似asp.net中datalist的商品现实
- 请问在text控件中怎么实现文字多种颜色的同时显示,如文本编辑器中的关键字突出显示
- WinFormk中CheckedListBox为何没有DataSource属性?
- 美眉求助,望好心人解答
- treeview(winform)里如何用命令指定选中某一个节点,并引发afterselect事件?
- 那位朋友有属性集合的例子;能否给予参考参考.万分感谢!
- 关于string转为变量
- 不太懂的一段代码,麻烦谁解释下
function TextBox1Click()是在前端<script>裡寫