Page Object
-
I have two pages Page1 Page2 Page1 has a button and Page2 has a textbox Now if i fill some value in Page2's textbox and i want to access that value on Page1's button click can i do that. and How? I know about passing through sessions but i want to use object of Page2 Something like this Dim objPG2 as New Page2 opbjPG2.Textbox1.text
-
I have two pages Page1 Page2 Page1 has a button and Page2 has a textbox Now if i fill some value in Page2's textbox and i want to access that value on Page1's button click can i do that. and How? I know about passing through sessions but i want to use object of Page2 Something like this Dim objPG2 as New Page2 opbjPG2.Textbox1.text
you can cache the whole page like Cache["Page2"]=this; and take it back page2=(Pageobj)cache["Page2"]; Mikail Çetinkaya . The C# DEveloper
-
I have two pages Page1 Page2 Page1 has a button and Page2 has a textbox Now if i fill some value in Page2's textbox and i want to access that value on Page1's button click can i do that. and How? I know about passing through sessions but i want to use object of Page2 Something like this Dim objPG2 as New Page2 opbjPG2.Textbox1.text
I'm not sure about what you might want to do, but you might have a look at the link: http://msdn2.microsoft.com/en-us/library/6c3yckfw.aspx[^] or http://msdn.microsoft.com/library/en-us/vbcon/html/vbtskpassingvaluesbetweenwebformspages.asp[^]