|
Simple, try this If (!IsPostback) { DoMethodsForFirstTime(); SecondMethod(); IntilizeComponent(); } This is postback(Boolean) will be set to
true when a page has executed for the first time and false if its been run for
the first time. Hope this helps J From:
Hi Everyone, i have a data entry form, on save click record gets inserted
in databse. Now if i refresh this page usign F5 or by any other way...new
record gets inserted in databse with same values, i want to stop this i also want to clear values of all controls on click of
save, and if user refresh the page nothing should happen.... For this, i do not want to put validation on database
end... How can i do this.... Thanks in advance... With Regards, VCLABS, YAHOO! GROUPS LINKS
|
- [Microsofts_C_Sharp] Page Refresh Problem..... Pankaj Tyagi
- RE: [Microsofts_C_Sharp] Page Refresh Problem....... Rob
- Re: [Microsofts_C_Sharp] Page Refresh Problem....... vallabhaneni jaipal
- Re: [Microsofts_C_Sharp] Page Refresh Problem... Pankaj Tyagi
- Re: [Microsofts_C_Sharp] Page Refresh Problem....... Pankaj Tyagi
- RE: [Microsofts_C_Sharp] Page Refresh Problem....... realhossam
- Re: [Microsofts_C_Sharp] Page Refresh Problem... Pankaj Tyagi
- Re: [Microsofts_C_Sharp] Page Refresh Pro... ahmed
- Re: [Microsofts_C_Sharp] Page Refresh... Pankaj Tyagi
- Re: [Microsofts_C_Sharp] Page Refresh... realhossam
- Re: [Microsofts_C_Sharp] Page Re... Pankaj Tyagi
