|
|
|
start date: Thu, 14 Jun 2007 20:14:27 -0700,
posted on: microsoft.public.dotnet.framework.aspnet.buildingcontrols
back
| Thread Index |
|
1
unknown
|
|
2
MasterGaurav \(www.edujini-labs.com\)
|
|
3
unknown
|
|
4
MasterGaurav \(www.edujini-labs.com\)
|
CreateChildControl() fires First
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?
Date:Thu, 14 Jun 2007 20:14:27 -0700
Author:
|
Re: CreateChildControl() fires First
>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?
Where are you adding the controls?
Where are you binding the data?
Ensure that the control is created in CreateChildControls.
--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------
Date:Sat, 16 Jun 2007 07:46:09 +0530
Author:
|
Re: CreateChildControl() fires First
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
Date:Mon, 25 Jun 2007 01:24:41 -0700
Author:
|
Re: CreateChildControl() fires First
> 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
Are you rebinding the grid? I must be rebound everytime... unconditionally.
And after the "Edit" is performed, it must be rebound (with appropriate
EditItemIndex set) again.
--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------
Date:Tue, 26 Jun 2007 22:19:18 +0530
Author:
|
|
|