Home  >  Article  >  Web Front-end  >  JS弹出对话框返回值代码(asp.net后台)_javascript技巧

JS弹出对话框返回值代码(asp.net后台)_javascript技巧

WBOY
WBOYOriginal
2016-05-16 18:13:111154browse

1.Default.aspx页面

复制代码 代码如下:





















2.Default.aspx.cs
复制代码 代码如下:

protected void Page_Load(object sender, EventArgs e)
{
TextBox1.Attributes.Add("onclick", "GetUser('" + this.TextBox1.ClientID + "','" + this.TextBox2.ClientID + "','WebDialog.aspx)");
}

3.WebDialog.aspx
复制代码 代码如下:













Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn