parameters for webcontrol
-
Hi all, is it possible to pass parameter inside a web user control from ASPX pages, and how could i do to retrieve this value inside the web user control? Thanks a lot. vamsi
ALL THE BEST
-
Hi all, is it possible to pass parameter inside a web user control from ASPX pages, and how could i do to retrieve this value inside the web user control? Thanks a lot. vamsi
ALL THE BEST
Hi, a webusercontrol acts as a childpage to the basepage i.e aspx page. So a public method in the webusercontrol can be accessed from the main page. for eg: in the page_load of the main page (.aspx) a call can be made to the public method present in the webusercontrol. webusercontrol1.populate(string name);....where populate is the method present in the webusercontrol Is this the thing u want?
Koushik
-
Hi all, is it possible to pass parameter inside a web user control from ASPX pages, and how could i do to retrieve this value inside the web user control? Thanks a lot. vamsi
ALL THE BEST
Yes Suppose you have usercontrol name MyControl.ascx which is used in MyPage.aspx then write a method with all paramaters you want to send to use control call this method from your MyPage.aspx.cs as MyControlObject.MethodName(ParameterList)
Thanks and Regards Sandeep If you want something you never had, do something you have never done!