惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
T
Tenable Blog
Project Zero
Project Zero
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
S
Schneier on Security
Scott Helme
Scott Helme
S
Securelist
Know Your Adversary
Know Your Adversary
Vercel News
Vercel News
IT之家
IT之家
V
V2EX
F
Fortinet All Blogs
Simon Willison's Weblog
Simon Willison's Weblog
K
Kaspersky official blog
博客园_首页
T
Tailwind CSS Blog
The GitHub Blog
The GitHub Blog
Spread Privacy
Spread Privacy
Microsoft Security Blog
Microsoft Security Blog
Cisco Talos Blog
Cisco Talos Blog
The Register - Security
The Register - Security
有赞技术团队
有赞技术团队
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
The Hacker News
The Hacker News
L
LINUX DO - 热门话题
Hugging Face - Blog
Hugging Face - Blog
博客园 - 三生石上(FineUI控件)
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
CXSECURITY Database RSS Feed - CXSecurity.com
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Threat Research - Cisco Blogs
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Privacy & Cybersecurity Law Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CERT Recently Published Vulnerability Notes
S
SegmentFault 最新的问题
AWS News Blog
AWS News Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost

博客园 - 火星的森林

快到清明了 AquaFold.Data.Studio.v6.5 期待已久的星际争霸II 初次接触unix 呵呵 咋说呐 全国DNS和ADSLVPI VCI 整理版 计数器 终于有点时间了 好久没写blog了 找点资料 又开始工作了~! 辞职ed 开发一个统计组件时候遇到的一个问题 使用.net下的系统事件增强应用程序(zt) [转载]魔鬼的颤音 准备写个nhibernate的学习笔记 程序员常见保健方法(zt) 一点流水帐
初学ASP.NET,搞定一个frames间控制的问题
火星的森林 · 2005-07-19 · via 博客园 - 火星的森林

同一个web页上分了2个frame,其中:
frame1 name = f1; 包含页面web1.aspx,web1.aspx包含控件:Button1;
Frame2 name = f2; 包含页面web2.aspx,web2.aspx包含控件:DataGrid1;
现要实现点击frame1中的Button1后,传递一些参数到frame2,刷新frame2的DataGrid1的数据。
关键在于button没有target属性,不能像超链接那样指向frame2。折腾一番后通过调用javascript代码解决了这个问题。
实现方法:
private void Button1_Click(object sender, System.EventArgs e)
{
  url.Append("left.aspx?action=").Append( "ACT");
  string sScript;
  sScript="<script> parent.window.f2.location.href='"+url+"' ; </script>";
  //sScript="<script> parent.window.contents.location.href='left.aspx?action=TEST' ; </script>";//第一种写法
//sScript="<script> window.parent.contents.window.navigate('left.aspx?action=TEST') ; </script>";//第二种写法

  RegisterStartupScript("notpass",sScript);
}

先记下来,,各位大大有更好的办法请尽管砸过来!!!