You must Sign In to post a response.
  • Category: ASP.NET

    Create Dynamic controls in view controls

    Dear team,

    i am having 3(Tabs) view controls in my page. onn my 3rd tab i am dynamically creating text box and button controls. the issue is on page post back the created controls are deleted. kindly help to fix this issue
  • #762695
    Hai Mann,
    You can create the control on loading of the page and keep that method call inside !IsPostBack so that when the same page will be postback, it will not remove the controls which were already created under the View Control.
    Hope it will be helpful to you.

    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)

Sign In to post your comments