i hv problem in gridview. In gridview i have two template field.
in one template field there is label which showing questions stored in databse. and other template field contains Textbox. i want to store the value entered in the textbox but there is problem when i tried to stored the question and the value entered in the textbox in another table...it only storing the question displayed on the label not the value stored in the textbox.
try to solve my problem...............
Thanks
Loading
CrishPosted May 14, 2010, 9:16 AM
I think your gridview is refreshed when you tried for saving data.
Please write (!Page.IsPostback) in page load event then bind GridView.
thanks
Don't forget to Mark Do you like this Answer that solved your problem!
CrishPosted May 14, 2010, 2:09 PM
wc
thanks
Deepak PandeyPosted May 14, 2010, 10:32 AM
fro the answer.........
u r right the page is refresed when i clicked on submit button and every time textbox got erased it stores nothing........
for that i hv to use if(!ispostback) .......
this was the my mistake.........
thanks again for ur support...........
Deepak