views:

31

answers:

2

hi, 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.

A: 

well, query for the writer corresponding to the name data, and retrieve it's value. it's quite simple

Catalin Florea
it is not quite simple for me......that's why i posted it.....
user
then try this example: http://www.codeguru.com/csharp/csharp/net30/article.php/c15489 . it's quite straightforward
Catalin Florea
+1  A: 

Its simple.

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.

KMan
since i m new i need some code snippets .....thanks anyways
user