|
Subject:
|
Page Refereshing Problem
|
|
Posted By:
|
MunishBhatia
|
Post Date:
|
12/8/2006 2:28:26 AM
|
Hello to All i have a problem in .asp that i have two text boxes on my formton register the user one is getting user name another is password and save button which after clicking save date in database. it is working properly. on same page i have gridview which is displaying nama and passowrd of the table in two columns-also working properly. my save button is not redirected to any other page. My problem is after entering the data and clicking on save button then it remains there but if i referesh page without changing data then even it enters one more row in data grid with same data. each time i press F5 to referesh each time one row increase. i also apply FillUser() on page load plz tell me how to get rid of this problem
thanks......
|
|
Reply By:
|
MunishBhatia
|
Reply Date:
|
12/8/2006 6:29:38 AM
|
IS ANYBODY TO ANSWER MY ABOVE PROBLEM? if i referesh the page after saving the record once then again i referesh it makes one same entry in database. plz tell
thanks......
|
|
Reply By:
|
Imar
|
Reply Date:
|
12/8/2006 6:51:49 AM
|
Relax, relax, no need to shout. You should be a little patient. Expecting a reply within 4 hours and then start shouting if you don't get one isn't the best way to make friends around here.......
For a technically cool, but difficult approach, take a look at this: http://msdn2.microsoft.com/en-us/library/ms379557(VS.80).aspx
Alternatively, at the end of the Save method, redirect the browser to the same page, so it loads again. If the page is then refreshed, all that is refreshed is the fresh copy, not the save action.
Imar --------------------------------------- Imar Spaanjaars http://Imar.Spaanjaars.Com Everyone is unique, except for me. Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004 Want to be my colleague? Then check out this post.
|
|
Reply By:
|
MunishBhatia
|
Reply Date:
|
12/8/2006 7:42:58 AM
|
Hello Imar actually i was not shouting as you said just write in capital letter okay! anyway thanks to suggest all.
thanks......
|
|
Reply By:
|
Imar
|
Reply Date:
|
12/8/2006 7:47:08 AM
|
Writing in ALL CAPS is often considered as shouting....
http://www.dtcc.edu/cs/rfc1855.html
Imar --------------------------------------- Imar Spaanjaars http://Imar.Spaanjaars.Com Everyone is unique, except for me. Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004 Want to be my colleague? Then check out this post.
|
|
Reply By:
|
MunishBhatia
|
Reply Date:
|
12/8/2006 8:22:17 AM
|
i read some part of document and it said writing in upper cases looks as shouting . It looks! Any way sir, i will takee care of these standards and will read it.
thanks......
|