AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 how to update database using gridview with dropdownlist in asp.net with c#
Posted by neha purani on  2/21/2011 9:18:23 PM Category: Asp.Net 2.0
Add to my favorites
Email to friend
I have one table Subcategory in which category from the category table comes. I need to use category name for adding record in subcategory table. How can i do that?

Post Your Reply Post New Question

 Viewer's Reply
Adding SubCategory Based on Category
Answered By Moderator1 on 3/11/2011 9:51:25 PM
Hi,

You can list out the Category in a dropdown. The user needs to select the Category and input the SubCategory description, then click "Add" button. Then you can insert the record into the subcategory table and display in gridview.
 
Use Foreign Key
Answered By self innovator on 12/9/2011 10:49:14 PM
use foreign key in your tables.

By Selecting the Category pass the selected values as a parameter to your (SP) then load the sub category dropdown with selected category.
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Washington Technology
Take Advantage of Oracle's 2 Day DBA Course
Integrating Silverlight 4 with SharePoint 2010 - Free 42 Page Sample Chapter