Dear All,

I would like to ask you all about my problem in C# code.
I have a default.aspx page that have some button and one Place holder to store usercontrol.

For first load place holder is empty, but if i click one of button it will store user control inside the placeholder, than if i click another button it will change content of place holder.

The problem is, the usercontrol (upload.ascx) show one datagrid that have some page. When i change the page of the data grid, the placeholder will empty and usercontrol (upload.ascx) is removed. What should i do to solve this problem. Thanks

>What should i do to solve this problem

Load a usercontrol each time when page is posted back.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.