Click here to Skip to main content
15,908,115 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I Have a MVC View page like this which contains list of book details.

BName BCategory BDesc BPrice Action

Automobile Automobile Automobile Engineering 700 Edit | Delete
s Automobile s 5487 Edit | Delete



when i click on edit link it should move to page and the deatils of the book selected for edit should be shown in the corresponding controls
textbox for BName
dropdown for BCategory
textbox for BDesc
textbox for BPrice


what should i do?

PLease help!
Posted

1 solution

when you click on edit button then you should pass id to select query from codebehind like this...:)

SQL
Select * from TableName where id=@id


Then fill all the textboxes with the help of DataTable...:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900