473,396 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

refreshing a webpage.

Hi,

I would like to refresh a webform when a user clicks on a cancel button.

I have a webform that contains 5 or 6 drop down list boxes, textboxes,
checkboxes.
These were populated with a user account information.

The user can edit the textboxes, change the selected item in the drop down
list, etc.

They can press save, to save the account in the database. or with the cancel
button
return to the original values when the account first loaded.

I'd like to refresh the page with the original data, hopefully without
having to hit the database again for the record data.

thanks

Chris
Nov 19 '05 #1
3 976
two choices, that I see.
If you dont want to hit the DB again you need to store all the original
values and manually reset each item to its value.
Second is to do a Redirect to the same page, fooling the IsPostBack and
forcing it to rebuild itself.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Chris" wrote:
Hi,

I would like to refresh a webform when a user clicks on a cancel button.

I have a webform that contains 5 or 6 drop down list boxes, textboxes,
checkboxes.
These were populated with a user account information.

The user can edit the textboxes, change the selected item in the drop down
list, etc.

They can press save, to save the account in the database. or with the cancel
button
return to the original values when the account first loaded.

I'd like to refresh the page with the original data, hopefully without
having to hit the database again for the record data.

thanks

Chris

Nov 19 '05 #2
Open your Toolbox and expand the HTML tab within the ToolBox. You will see
something called a Reset Button. See if this is helpful.

Regards,

Trevor Benedict R
MCSD

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com...
Hi,

I would like to refresh a webform when a user clicks on a cancel button.

I have a webform that contains 5 or 6 drop down list boxes, textboxes,
checkboxes.
These were populated with a user account information.

The user can edit the textboxes, change the selected item in the drop down
list, etc.

They can press save, to save the account in the database. or with the
cancel
button
return to the original values when the account first loaded.

I'd like to refresh the page with the original data, hopefully without
having to hit the database again for the record data.

thanks

Chris

Nov 19 '05 #3
thanks,

The reset button works great. However, some of my form behavior will require
additional logic for my particular situation. This a great foundation to
start on 90% of what I am looking for.

thanks again

Chris

"Trevor Benedict R" wrote:
Open your Toolbox and expand the HTML tab within the ToolBox. You will see
something called a Reset Button. See if this is helpful.

Regards,

Trevor Benedict R
MCSD

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com...
Hi,

I would like to refresh a webform when a user clicks on a cancel button.

I have a webform that contains 5 or 6 drop down list boxes, textboxes,
checkboxes.
These were populated with a user account information.

The user can edit the textboxes, change the selected item in the drop down
list, etc.

They can press save, to save the account in the database. or with the
cancel
button
return to the original values when the account first loaded.

I'd like to refresh the page with the original data, hopefully without
having to hit the database again for the record data.

thanks

Chris


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: DevilZAngel | last post by:
Hi all I am writing a simple chat application in asp.net. Problem is that, when other user sends a message, I want my testbox (which shows the messages) to refresh automatically, without using...
3
by: John Ortt | last post by:
I appologise for reposting this but I have been trying to find a solution all week with no avail and I was hoping a repost might help somebody more knowledgable than myself to spot the message... ...
31
by: Greg Scharlemann | last post by:
Given some recent success on a simple form validation (mainly due to the kind folks in this forum), I've tried to tackle something a bit more difficult. I'm pulling data down from a database and...
3
by: GraVity via DotNetMonster.com | last post by:
Hello all I am new to asp.net or web programming I have a requirement, I have to submit a document to another server using my webpage, there is a perticular protocol for doing that. This protocol...
3
by: dave | last post by:
I want to be able to have my webpage to continually refresh automatically every so many seconds. When it refreshes, I want it to refresh to the bottom of the screen. To accomplish this, I am...
1
by: Loading name... | last post by:
hey asp.net 2.0 I have a GridView on my webpage. This GridView get its data from a SqlDataSource. On the same webpage I've added textbox and a button - so the user can add records to the...
3
by: user | last post by:
Hi, let's say a page loads on a browser. Without refreshing the page, multiple textboxes within the page gets real time data @ a few seconds interval. what is the logic behind to achieve...
5
by: chimambo | last post by:
Hi all, I have a problem with maintaining data without refreshing manually in my system. I have a system which carries data across several pages. But if a user wants to go back to the previous...
3
by: =?Utf-8?B?Z296ZXI2MQ==?= | last post by:
Something happened to my development environment and I'm getting an error that hasn't happened before. Not knowing why the error is popping up is preventing me from figuring out what in my...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.