Reputation: 77
there are two tables in database.
one is 'books'
with 4 columns
pkid,title,price,writer(int)
and other is 'persons'
with columns
pkid, name,value(int).
one asp.net page is there with text boxes named
title,price,writer and a submit button.
i want that on filling that writer txtbox with some name which is available in 'persons'
table and clicking that submit button it will store integer 'value'
in 'books'
writer column.
Upvotes: 1
Views: 769
Reputation: 9986
Its simple.
DropDownList
DropDownList
with all of the persons available in your Persons
table, when your page loads.update table set
like query.But before all of this, I would suggest you go through basic crud operations using asp.net and how they are achieved. Here are some asp.net quick start tutorials.
Upvotes: 1