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

推荐订阅源

N
News and Events Feed by Topic
S
SegmentFault 最新的问题
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
Jina AI
Jina AI
H
Help Net Security
C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
MyScale Blog
MyScale Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Vercel News
Vercel News
L
LangChain Blog
Recorded Future
Recorded Future
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
I
InfoQ
GbyAI
GbyAI
B
Blog RSS Feed
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
M
MIT News - Artificial intelligence
爱范儿
爱范儿
V
V2EX
Microsoft Azure Blog
Microsoft Azure Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Y
Y Combinator Blog
B
Blog
WordPress大学
WordPress大学
Blog — PlanetScale
Blog — PlanetScale
W
WeLiveSecurity
MongoDB | Blog
MongoDB | Blog
Cloudbric
Cloudbric
N
News and Events Feed by Topic
The Cloudflare Blog
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
D
DataBreaches.Net
博客园 - 【当耐特】
T
Troy Hunt's Blog
V
Visual Studio Blog
V2EX - 技术
V2EX - 技术
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google Online Security Blog
Google Online Security Blog
The GitHub Blog
The GitHub Blog

博客园 - 火星的森林

快到清明了 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);
}

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