Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Actually i am using one gridview for displaying fee details in that it will display all the fee types,amount,amount to pay. and one text box will be present on the gridview of every row in that we have enter the amount and at the bottom i am having submit button if i click it should insert the fee details with entered amount into the table. below roughly i will show my gridview presentation

Fee_type     |amount  |paid_amount| amount_to_pay  | textbox
reg_fee      |1000    |  500      |   500          |  400
admission_fee|2000    |  1000     |   1000         |  5000
tutuion_fee  |2000    |  900      |   1100         |
transport_fee|1000    |  800      |   200          |  100

think that like above design i will display details in a gridview under textbox column i will enter the amount i will click on submit button i should insert the details. here my problem is i should save according to the fee the amount should be saved .in which gridview event the text box event will fire...
Updated 10-Mar-13 20:18pm

1 solution

In the Html Source use "Eval" Method. Eg =
<asp.textbox id="txt1" text="<%#Eval("id")%>"></asp.textbox>
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