PDA

View Full Version : [CLOSED] User Control Render dynamic value assign issue in page load



shaileshsakaria
Apr 26, 2014, 1:16 PM
I have gone through following example,
http://examples2.ext.net/#/XRender/UserControl/UpdateContent/

Now I want to assign some initail value in UserControl1.ascs.cs , Page_Load event like ,


protected void Page_Load(object sender, EventArgs e)
{
Button1.Text = "Test";
ResourceManager.RegisterGlobalScript("script.js");
}

But I am not able to set Button1 text at runtime during page_load event of user control.

Do you give me solution how to assign initial value of controls of user control in case of dynamic user control load?

Also note that this is just sample, but I want it to assign dynamic data from database to some textbox of user control.

Thanks

geoffrey.mcgill
Apr 26, 2014, 5:19 PM
Please provide a simplified sample demonstrating the scenario. Please remove all code from your sample that is not directly related to the problem.

Please wrap all code samples in [CODE] tags.

Please review the following threads for forum Guidelines:

http://forums.ext.net/showthread.php?3440-Forum-Guidelines-For-Posting-New-Topics (http://forums.ext.net/showthread.php?3440-Forum-Guidelines-For-Posting-New-Topics)

http://forums.ext.net/showthread.php?10205-More-Information-Required (http://forums.ext.net/showthread.php?10205-More-Information-Required)