[CLOSED] User Control Render dynamic value assign issue in page load

  1. #1

    [CLOSED] User Control Render dynamic value assign issue in page load

    I have gone through following example,
    https://examples2.ext.net/#/XRender/...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
    Last edited by Daniil; May 06, 2014 at 6:57 AM. Reason: [CLOSED]
  2. #2
    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?10205-More-Information-Required
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Error when assign datasource to store in user control
    By redi in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Dec 18, 2013, 1:59 AM
  2. Replies: 2
    Last Post: Feb 06, 2012, 9:06 AM
  3. [CLOSED] Problem on dynamic load user control
    By andreasperanza in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Dec 22, 2011, 4:23 PM
  4. Replies: 0
    Last Post: Sep 21, 2011, 3:14 PM
  5. Partially Render a user control in MVC
    By alighaddar in forum 1.x Help
    Replies: 0
    Last Post: Oct 20, 2009, 1:11 PM

Posting Permissions