I am creating runtime div. and it have a some content. but i created again same name runtime div. It is not replace old runtime div content.
please tell me
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Oct 31, 2013, 1:27 AM EDT
What are you trying to achieve here?
Nitin BhardwajRank #139 · 16.1K reputationPosted Oct 31, 2013, 1:34 AM EDT
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Oct 31, 2013, 1:41 AM EDT
can you post some code?
Sanjay KumarRank #561 · 4.3K reputationPosted Oct 31, 2013, 1:56 AM EDT
http://stackoverflow.com/questions/18821759/create-and-place-buttons-on-page-load-then-bind-them-to-a-single-event
http://forums.asp.net/t/1182543.aspx
http://stackoverflow.com/questions/467016/can-i-dynamically-add-html-within-a-div-tag-from-c-sharp-on-load-event
Nitin BhardwajRank #139 · 16.1K reputationPosted Oct 31, 2013, 2:18 AM EDT
";
" + datatable.Rows[i]["Headline"].ToString() + "
Nitin BhardwajRank #139 · 16.1K reputationPosted Oct 31, 2013, 2:26 AM EDT
Jaganathan Bantheswaran please reply.
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Oct 31, 2013, 3:53 AM EDT
create runtime div like,
HtmlGenericControl div = new HtmlGenericControl("div");
div.ID = "dynamic-div";
form1.Controls.Add(div);
To Remove,
var oldDiv = Page.FindControl('dynamic-div');
form1.Controls.Remove(oldDiv)
oldDiv.Dispose();
Nitin BhardwajRank #139 · 16.1K reputationPosted Oct 31, 2013, 10:15 PM EDT