Switch to full style
You can find discussions, solutions and codes related to ASP.NET
Post a reply

dynamically load a custom user control with a param construc

Mon Mar 02, 2009 2:07 pm

hello - how to dynamically load a custom user control with a param constructor??

well i got a user control
i try to call it like
Code:
string s = "my param";
asp.MyUC uc = (asp.MyUC) LoadControl(typeof(asp.MyCU),new object[1]{s});


but the param ctor never hit - its gos to the defaule one (with no params)
thanks



Post a reply
  Related Posts  to : dynamically load a custom user control with a param construc
 Add double quotes to text dynamically, on page load     -  
 Create a Custom Log in java     -  
 custom cursor in javascript     -  
 load class to applet- load frame class to applet     -  
 Create Custom Brushes in Photoshop     -  
 Create Custom Filters For JFileChooser!!!!     -  
 Image Custom Filter In Java     -  
 Add new row dynamically to table using JQuery     -  
 Calling Functions Dynamically     -  
 Dynamically Create Image     -