dynamic added user control and viswstates



Hi,

In my aspx page, a user control is dynamically adding other user control and
add it to PlaceHolderControl.

The dynamic user control has a Datagrid control. On postback, the viewstate
of this datagrid is destroyed. How to maintain the viewstate of this
datagrid on postback?

thanks.


.



Relevant Pages

  • Help with best way to create a filtering record selector in a database application
    ... There is a datagrid on the left side that lists ... and then bind the datagrid to that DataView object. ... User Control, which I've called Navigator. ... ViewManager viewManager; ...
    (microsoft.public.dotnet.languages.csharp)
  • IPostBackDataHandler not working properly with DataGrid
    ... IPostBackDataHandler when it is placed inside a datagrid. ... I have created a user control containing 1 TextBox ... public class MyUserControl: System.Web.UI.UserControl, ... private void Page_Load ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: Dataviews and databases
    ... > Could you not write a webpart using a user control with a datagrid. ... > Datagrid can be configured to allow editing/delete/insert functions. ... > code behind in the asp.net project would have ADO.Net data access code. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: strange event postback behaviour in dynamically created usercontrol
    ... my aspx page contaings the following in Page_Load: ... the user control is loaded regardless of whether a postback has taken ... the datagrid would disappear from the page. ... itemcommand event being called twice. ...
    (microsoft.public.dotnet.framework.aspnet)
  • User Control in Datagrid without TemplateColumn
    ... I can create the User control in the Datagrid... ... Dim MyDate as string ... control..and it gives me a error that object ref. ...
    (microsoft.public.dotnet.framework.aspnet)