小菜面试经常碰到的.net问题(二)

2014-11-24 01:26:01 · 作者: · 浏览: 31
ect sender, System.EventArgs e)
{ //创建原始窗体的实例
WebForm1 wf1;
//获得实例化的句柄
wf1=(WebForm1)Context.Handler;
Label1.Text=wf1.Name;
Label2.Text=wf1.EMail;}