----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: laks_win Message 9 in Discussion [Hi buddies, i have replied this same thru mail yesterday. But didn't listed .So i am re-sending thru groups reply option] Hi Banu, its simple. yes see the url for a perfect sample http://www.stardeveloper.com/articles/display.html?article=2003061901&page=1 1. It uses Context object to get the properties 2. Using Server.Transfer only, we can transfer the previous page properties to the next page. With Response.Redirect cannot. 3. Add directive for the reference to previous page <%@ Reference Page="UserForm.aspx" %> 4. The Context object values will be disappeared if the page (ie. next page) gets posted back. 5. If u want to persist the values, use "viewstate". === Dim result As SenderClass Sub Page_load(obj as Object, e as EventArgs) Dim content As String If Not IsPostBack Then result = CType(Context.Handler, SenderClass) ''************* ''' in C# result = (SenderClass)Context.Handler; ''************* content = "Name: " + result.Name + "<br>" _ + "Phone: " + result.Phone Label1.text = content End If End Sub === 6. We can trasnfer even the "controls" of the previous page to next page using Context object Regards Lakshmi Narayanan.R ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
