User defined controls
-
i have nade a controll (user controll) which contains two textboxes and a button i have draged it on a web page (page1) in the click event of button of the user control i have redirected it to page2 i am getting values of all the controlls other than those in the user control how can i get the values of the two text boxes of the self defined controll thanx
-
i have nade a controll (user controll) which contains two textboxes and a button i have draged it on a web page (page1) in the click event of button of the user control i have redirected it to page2 i am getting values of all the controlls other than those in the user control how can i get the values of the two text boxes of the self defined controll thanx
You should create two public properties or methods for accessing those textboxes in User Control. then, it will be more easier to access those values from UI developer's side..
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)
-
You should create two public properties or methods for accessing those textboxes in User Control. then, it will be more easier to access those values from UI developer's side..
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)
i am not getting the user defined controll when i use ASP.usercontroll cont=(ASP.usercontroll)PreviousPage.FindControl("usercontroll"); i get the exception refrnce not set to an instance of an object
-
i am not getting the user defined controll when i use ASP.usercontroll cont=(ASP.usercontroll)PreviousPage.FindControl("usercontroll"); i get the exception refrnce not set to an instance of an object
Are you the one who create this user-defined control? (Are you a component developer or UI developer?)
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)