可以这样做:
在webform2.aspx中定义几个函数
public readonly property tb1() as string
get
return textbox1.text
end get
end property
同理可以定义一些别的
然后在page_load中使用
Server.Transfer("webform1.aspx")
这样的话,webform2的东东就可以保存给webform1使用了。
在webform1.aspx中的使用:
Dim wf As webform2= CType(Context.Handler, webform2)
dim str as string= wf.tb1
这样webform1的str就得到了webform2的textbox1的值了
这是用vb.net做的,如果你用C#可以自个转换一下.有问题的话zhyf169@163.com