Known issues using 2 of the same Web User Controls on the same page

Discussion in 'ASP .Net' started by mrobins@gmail.com, May 4, 2006.

  1. Guest

    Are there any known issues about using two of the same Web User
    Controls on the same page? I lose state and values in one control when
    the other control is activated.
     
    , May 4, 2006
    #1
    1. Advertisements

  2. No known issues and I do it all the time. How are you storing your state? If
    it is in Session that might be an issue since that is shared across the
    application.

    --

    Andrew Robinson
    www.binaryocean.com


    <> wrote in message
    news:...
    > Are there any known issues about using two of the same Web User
    > Controls on the same page? I lose state and values in one control when
    > the other control is activated.
    >
     
    Andrew Robinson, May 4, 2006
    #2
    1. Advertisements

  3. Re: Known issues using 2 of the same Web User Controls on the samepage

    If the user controls are correctly written, there shouldn't be any problems.

    If you use ViewState, make sure to use the ViewState of the user
    control, not the ViewState of the page.

    wrote:
    > Are there any known issues about using two of the same Web User
    > Controls on the same page? I lose state and values in one control when
    > the other control is activated.
    >
     
    =?ISO-8859-1?Q?G=F6ran_Andersson?=, May 4, 2006
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    644
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    May 16, 2006
  2. Bob Rock
    Replies:
    1
    Views:
    897
    Cowboy \(Gregory A. Beamer\)
    Sep 17, 2006
  3. Nathan Sokalski
    Replies:
    5
    Views:
    1,294
    Gaurav Vaish \(www.Edujini-Labs.com\)
    Jan 10, 2007
  4. Faizan Ahmed
    Replies:
    1
    Views:
    493
    John Saunders
    Jan 4, 2005
  5. Nathan Sokalski
    Replies:
    4
    Views:
    538
    Nathan Sokalski
    Dec 21, 2006
  6. Dominic
    Replies:
    4
    Views:
    344
    JuanDG
    Nov 24, 2004
  7. Faizan Ahmed
    Replies:
    1
    Views:
    522
    John Saunders
    Jan 4, 2005
  8. Nathan Sokalski
    Replies:
    4
    Views:
    580
    Nathan Sokalski
    Dec 21, 2006
Loading...