adding controls dynamically to panel in a UpdatePanel asp.net 4.0 -
I have some panels in an UpdatePanel. I want to add these panels, some controls according to the operations. After I click on any button twice or the page loads when the first page loads. Either I have to use every panel without any post [no page refresh] How can I solve it? HTML code is below
The wordOrgButton word panel enables and fills the word panel after any operation UserOrgButton
& asp: UpdatePanel id = "homepennel" Runat = "server" height = "220px" & gt; & Lt; ContentTemplate & gt; & Lt; Fieldset & gt; & Lt; ASP: Panel ID = "ButtonPanel" Runat = "Server" & gt; & Lt; Asp: button id = "wordOrgButton" runat = "server" text = "word" onclick = "wordOrgButton_Click" /> & Lt; Asp: Button ID = "userOrgButton" runat = "server" text = "user" onclick = "userOrgButton_Click" /> & lt; Asp: button id = "exitButton" runat = "server" text = "exit" onclick = "exitButton_lick" /> & Lt; / ASP: Cell & gt; & Lt; Asp: panel id = "userspanel" runat = "server" & gt; & Lt; ASP: Text box ID = "JavaScript textbox" run = "server" & gt; & Lt; / Asp: text box & gt; & Lt; Asp: button id = "holder button" run = "server" text = "fetch" onclick = "hold user_link" /> & Lt; Asp: panel id = "userOrgPanel" runat = "server" & gt; & Lt; / Asp: Panel & gt; & Lt; / ASP: Cell & gt; & Lt; ASP: Panel ID = "WordPanel" run = "server" & gt; & Lt; / Asp: panel & gt; & Lt; ASP: Panel ID = "NotificationPanel" run = "server" & gt; & Lt; Asp: Label ID = "operationinfoLabel" runat = "server" & gt; & Lt; / Asp: label & gt; & Lt; / ASP: Cell & gt; & Lt; / Fieldset & gt; & Lt; / ContentTemplate & gt; & Lt; / ASP: UpdatePanel & gt;
Comments
Post a Comment