When you click on your 'Add' link button, the EVENTTARGET and EVENTARGUMENT
form items are set to process that command on your page.
Whenver you refresh your page, your browser is sending the previous form
values (including the target and argument) to the server and your page will
simply process the command over again.
You should not refresh/reload ASP.NET pages as the postback process means
that unpredictable results can occur.
--
Philip Q
Microsoft MVP [ASP.NET]
"Sabari" <sa*************@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi,
I have an interesting problem in DataGrid.I have a footer in the
Datagrid which has a textbox and a link button and im adding values to
the grid.Everything seems to work fine until this point.After adding
the value i bind the data to control.now if refresh my browser the
value that i added recently gets added again.This happens everytime i
refresh the same page.
Im adding the values in the grids Itemcommand by finding out the
commandname of the eventargs.Is this the right way to do.Have anyone
come across this.
Regards
Sabari