Solved

Combo Box update in Details View

Posted on 2008-06-09
3
921 Views
Last Modified: 2013-11-26
Im in Visual Studio 2005.  Using standard DETAILS View with a SQL Table Datasource in aspx page.  It works well  and fine however I've modified the INSERT TEMPLATE with a dropdown combo box, this dropdown has another SQL datasource containing and ID field and a NAME field for user to select from.
Then of course I want the users seletion to UPDATE the datasource.  

I need help with getting sample code to peform this update in the EVENT handler of the combo box as I understand the TEMPLATE will not perform the update.

thanks for any assistance.
0
Comment
Question by:bretbel
  • 2
3 Comments
 
LVL 10

Expert Comment

by:digitalZo
ID: 21749378
Can you post your code?
0
 

Author Comment

by:bretbel
ID: 21753182
Actually Im going to simplify this digitalZo.
In the INSERT ITEM TEMPLATE I've added the combo box dropdown (mentioned above) next to the text box thats bound to the datasource.  I just want the value from combo box to autofill into the text box.  This in VB is ordinarily very simple but I can't seem to get the syntax right to capture the value from one and place it in the other.
0
 
LVL 10

Accepted Solution

by:
digitalZo earned 250 total points
ID: 21757071
Something to get you started:

http://www.dotnetspider.com/resources/2314-How-place-DropDownList-DataGrid-fire-S.aspx

altho it is of datagridview and not detailsview.

i coded it for gridview in my app by changing the datagridview to gridview. you can try it that way for detailsview, if you want.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
A short film showing how OnPage and Connectwise integration works.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now