Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Combo Box update in Details View

Posted on 2008-06-09
3
Medium Priority
?
941 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 750 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

783 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