在A页里: Public ReadOnly Property GetValue() As System.Object Get Return TextBox1.Text End Get End PropertyA页通过server.Transfer("B.aspx")转到B页 在B页里的PageLoad里: (假定A页对应behindcode的类名叫ClassA) Dim strValueFromPageA Dim objA As ClassA If Not IsPostBack Then objA = CType(context.Handler, ClassA) strValueFromPageA = objA.GetValue() '取得A页textbox1的text值 End If
childframe:
dim str as string =request.QueryString("youvalue")
parentframe:
server.Transfer("childframe.aspx?youvalue=" & value )
childframe:
dim str as string =request.QueryString("youvalue")
parentframe:
server.Transfer("childframe.aspx?youvalue=" & value )
我想要的效果是在父页面传递一个该控件的名称,就能在弹出窗口中取到值。
我知道NET里面能够做得到,但我不知道怎么做而已。
Public ReadOnly Property GetValue() As System.Object
Get
Return TextBox1.Text
End Get
End PropertyA页通过server.Transfer("B.aspx")转到B页
在B页里的PageLoad里:
(假定A页对应behindcode的类名叫ClassA)
Dim strValueFromPageA
Dim objA As ClassA
If Not IsPostBack Then
objA = CType(context.Handler, ClassA)
strValueFromPageA = objA.GetValue() '取得A页textbox1的text值
End If
window.frm1.mytest2.value=window.opener.frmaaa.mytest.value;
其中opener属性指的就是父窗体了。
在脚本端很多能实现,但我的问题是在PAGE_LOAD中取值,用脚本如何能够实现!
回答问题请看清楚题目