Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 8th, 2006, 03:28 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default Page Refereshing Problem

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......
__________________
thanks......
 
Old December 8th, 2006, 07:29 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default

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......
 
Old December 8th, 2006, 07:51 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old December 8th, 2006, 08:42 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello Imar
actually i was not shouting as you said just write in capital letter okay!
anyway thanks to suggest all.

thanks......
 
Old December 8th, 2006, 08:47 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old December 8th, 2006, 09:22 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default

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......





Similar Threads
Thread Thread Starter Forum Replies Last Post
Login page problem mashour BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 November 18th, 2008 05:25 PM
Problem with Chapter 2 First Page xtiano77 ASP.NET 3.5 Basics 1 May 7th, 2008 01:00 AM
page jump problem netmastan Ajax 0 April 11th, 2007 04:55 PM
Page Layout Problem Spades Dreamweaver (all versions) 1 December 2nd, 2004 04:55 PM
Page Hits Problem eddiema Classic ASP Professional 3 October 10th, 2003 12:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.