Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Assigning data to the dynamically added textbox

$
0
0

Hi,

please help,

How to assign the values or data to the dynamically added textbox from another control.

string id = "txtLoggedinUserTimeZone"; // id of the dynamically loaded textbox from db

string valuetext = Session["TimeZone"].ToString(); // this is the data I have to assign to the above dynamic  textbox (txtLoggedinUserTimeZone)

I have tried like this, but not working.

string id = "txtLoggedinUserTimeZone";
TextBox tb = (TextBox)this.Form.FindControl(id);
string valuetext = Session["TimeZone"].ToString();
tb.Text = valuetext;

please help me to find the solution.

Best regards,
Renuka.V

Best regards,
Renuka.V


Viewing all articles
Browse latest Browse all 5678

Trending Articles