Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / June 2007

Tip: Looking for answers? Try searching our database.

CreateChildControl() fires First

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hsnkamal@yahoo.com - 15 Jun 2007 04:14 GMT
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?
MasterGaurav (www.edujini-labs.com) - 16 Jun 2007 03:16 GMT
>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.

Signature

Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------

hsnkamal@yahoo.com - 25 Jun 2007 09:24 GMT
On Jun 16, 7:16 am, "MasterGaurav \(www.edujini-labs.com\)"
<gaurav.vaish.nos...@nospam.gmail.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
[quoted text clipped - 11 lines]
> 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
MasterGaurav (www.edujini-labs.com) - 26 Jun 2007 17:49 GMT
> 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.

Signature

Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.