Solved

Combo Box update in Details View

Posted on 2008-06-09
3
917 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
Comment Utility
Can you post your code?
0
 

Author Comment

by:bretbel
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
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.…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
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…

763 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

12 Experts available now in Live!

Get 1:1 Help Now