没有合适的资源?快使用搜索试试~ 我知道了~
JavaScript弹出窗口及与父窗口交互
4星 · 超过85%的资源 需积分: 50 17 下载量 2 浏览量
2012-04-12
18:20:36
上传
评论
收藏 213KB DOCX 举报
温馨提示
试读
24页
通常当我们弹出一个窗口 ,我们还要使调用窗口和弹出的窗口进行交互。 本文中我将展示如何在一个 ASP.NET 应用程序中创建一个弹出窗口 (使用 JavaScript)和如何从弹出窗口返回值到原始的调用页面并自动引发该页上的按钮的单击事件。另外,使用MultiView 控件和带分页的GridView 控件。
资源推荐
资源详情
资源评论
Introduction
!"#$
%&&%
MultiView GridView
'
Step 1: Creating the First Page
!"#$%%Default.aspx
%'%' &%&
% %%(
$%'%
)$*+%
)div
,-,,
<div>
<table>
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text="Student
Id"></asp:Label></td>
<td>
<asp:TextBox ID="txtStudentId"
runat="server"></asp:TextBox></td>
<td>
<asp:LinkButton ID="LinkButton1" runat="server">
Show Student List</asp:LinkButton></td>
</tr>
<tr>
<td></td>
<td>
<asp:Button ID="btnSubmit" runat="server" Text="Submit" />
</td>
<td></td>
</tr>
</table>
</div>
Step 2: Creating the Database
"%.%-"-/+0%
%%1% StudentDB.mdf
%%2Students
%StudentId !&IsIdentity
33$%&&4
$%4
5%67
Step 3: Completing the Start Page
"'$8'SqlDataSource
Default.aspx.%%&SQLDataSource
$8'$%&9SQLDataSource
77&,:08
&&,:0.;.
StudentDB.mdf &"'"'.
%%
<&Students
% $&Where %
WHERE ,%'StudentId ,
=.=> 1,
txtStudentId ,
$&1?"'=;
"GridView %.7%
0%%GridView @GridView1
btnSubmit &$&
%
$%&%%
&
,-,,
protected void btnSubmit_Click(object sender, EventArgs e)
{
GridView1.DataSource = SqlDataSource1;
GridView1.DataBind();
}
7&'%'
&%%@.
7=A&
剩余23页未读,继续阅读
资源评论
- oALong12345672013-01-07很好的例子 很有帮助
- manawin2014-06-05很好的例子 很有帮助
wwq_eagle
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功