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

Apr 26, 2014, 1:16 PM
I have gone through following example,

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";

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.


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)