CreateChildControl() fires First

Discussion in 'ASP .Net Building Controls' started by hsnkamal@yahoo.com, Jun 15, 2007.

  1. Guest

    i have develop a sharepoint web part using class library.i add
    controls programatically.when i select a item in dropdownlist and save
    it to the datase.it sved the first item of the dropdownlist,not the
    selected item.as my experience this happen due to the inoder sequence
    of CreateChildControl() fires.Can any one help to solve this materr?
    , Jun 15, 2007
    #1
    1. Advertising

  2. Guest

    On Jun 16, 7:16 am, "MasterGaurav \(www.edujini-labs.com\)"
    <> wrote:
    > >i have develop a sharepoint web part using class library.i add
    > > controls programatically.when i select a item in dropdownlist and save
    > > it to the datase.it sved thefirstitem of the dropdownlist,not the
    > > selected item.as my experience this happen due to the inoder sequence
    > > of CreateChildControl()fires.Can any one help to solve this materr?

    >
    > Where are you adding the controls?
    > Where are you binding the data?
    >
    > Ensure that the control is created inCreateChildControls.
    >
    > --
    > Happy Hacking,
    > Gaurav Vaish |www.mastergaurav.comwww.edujini-labs.comhttp://eduzine.edujini-labs.com
    > -----------------------------------------


    i have created grid inside the create childcontrol().and also i have
    bind it there.i anable the editbutton and at the edit event i have
    added a dropdown list to the cell
    , Jun 25, 2007
    #2
    1. Advertising

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. Jason Chancellor

    Only first user control event fires.

    Jason Chancellor, Feb 15, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    380
    Jason Chancellor
    Feb 15, 2004
  2. =?Utf-8?B?T2JpIE9iZXJvaQ==?=

    Submit_click event fires only the first time the button is clicked

    =?Utf-8?B?T2JpIE9iZXJvaQ==?=, Sep 1, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    587
    Kevin Spencer
    Sep 1, 2005
  3. =?Utf-8?B?VGFyYWtlc2h3YXIgUmVkZHk=?=

    showModalDialog fires Page_Load only for first click

    =?Utf-8?B?VGFyYWtlc2h3YXIgUmVkZHk=?=, Aug 10, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    3,246
    =?Utf-8?B?VGFyYWtlc2h3YXIgUmVkZHk=?=
    Aug 10, 2006
  4. Replies:
    3
    Views:
    994
  5. Paul S

    CreateChildControl vs RenderContents

    Paul S, Feb 22, 2010, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    1,097
    Paul S
    Feb 23, 2010
Loading...

Share This Page