Professional Web Applications Themes

Pro needed: I want my web custom control to manage its viewstate by itself - ASP.NET General

"Justin Dutoit" <com> wrote in message news:phx.gbl... ....  Custom  ed,  Here's a book even better than the Wrox Press Book: "Developing Microsoft® ASP.NET Server Controls and Components" from Microsoft Press, by Nikhil Kothari and Vandana Datye (http://www.microsoft.com/mspress/books/5728.asp). -- John Saunders Internet Engineer com...

  1. #1

    Default Re: Pro needed: I want my web custom control to manage its viewstate by itself

    "Justin Dutoit" <com> wrote in message
    news:phx.gbl...
    .... 
    Custom 
    ed, 

    Here's a book even better than the Wrox Press Book:

    "Developing Microsoft® ASP.NET Server Controls and Components" from
    Microsoft Press, by Nikhil Kothari and Vandana Datye
    (http://www.microsoft.com/mspress/books/5728.asp).
    --
    John Saunders
    Internet Engineer
    com



    John Guest

  2. #2

    Default Re: Pro needed: I want my web custom control to manage its viewstate by itself

    Here's alink to the MSDN Library Online's entire section of instruction on
    developing custom Server Controls:

    http://msdn.microsoft.com/library/en-us/cpguide/html/cpcondevelopingwebformscontrols.asp?frame=true

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    http://www.takempis.com
    The more I learn, the less I know.

    "JL" <com> wrote in message
    news:OTe1b.11225$videotron.net... 


    Kevin Guest

  3. #3

    Default Re: Pro needed: I want my web custom control to manage its viewstate by itself

    Thanks for your answer!

    I'll play with this Property/ViewState duo more in depth!





    "Justin Dutoit" <com> wrote in message
    news:phx.gbl... 
    it 
    Custom 
    ed, [/ref]
    a [/ref]
    is [/ref]
    each [/ref]
    Page_Load [/ref]
    it? 
    >
    >[/ref]


    JL Guest

  4. #4

    Default Re: Pro needed: I want my web custom control to manage its viewstate by itself

    For the archives, here's the answer. Thanks for your help guys...

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconreceivingpostbackdatachangednotifications.asp




    "JL" <com> wrote in message
    news:OTe1b.11225$videotron.net... 


    JL Guest

  5. #5

    Default Re: Pro needed: I want my web custom control to manage its viewstate by itself

    See this also:

    http://groups.google.ca/groups?hl=fr&lr=&ie=UTF-8&oe=UTF-8&threadm=uDY5iv1VCHA.3360%40tkmsftngp11&rnum=22&p rev=/groups%3Fq%3DLoadPostData%2Basp%26ie%3DUTF-8%26oe%3DUTF-8%26hl%3Dfr

    --------------

    Your composite control should implement INamingContainer.

    When you implement INamingContainer, then framework creates a unique
    name for all your sub controls and automatically persists the PostBack
    data.

    Here is the doentation of INamingContainer from MSDN

    Implement the System.Web.UI.INamingContainer interface. INamingContainer
    is a marker interface that has no methods. When a control implements
    INamingContainer, the ASP.NET page framework creates a new naming scope
    under that control, thus ensuring that the child controls have unique
    names in the hierarchical tree of controls. This is especially important
    when a composite control exposes template properties, provides data
    binding, or needs to route events to its child controls.

    ----------------



    "JL" <com> wrote in message
    news:Cos1b.17312$videotron.net... 
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconreceivingpostbackdatachangednotifications.asp [/ref]
    a [/ref]
    is [/ref]
    each [/ref]
    Page_Load [/ref]
    it? 
    >
    >[/ref]


    JL Guest

Similar Threads

  1. viewstate and custom control
    By dave in forum ASP.NET Building Controls
    Replies: 1
    Last Post: July 5th, 08:57 AM
  2. Nested control in Web Custom Control and ViewState
    By Ryan Jordan in forum ASP.NET Building Controls
    Replies: 1
    Last Post: September 13th, 01:36 PM
  3. Custom control viewstate (?) issue!
    By u3k in forum ASP.NET Building Controls
    Replies: 4
    Last Post: May 5th, 10:35 AM
  4. Losing viewstate in custom control
    By William in forum ASP.NET Building Controls
    Replies: 2
    Last Post: December 5th, 09:50 PM
  5. Missing Viewstate in Custom Control
    By Mark Sisson in forum ASP.NET General
    Replies: 0
    Last Post: July 18th, 11:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139