Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) 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 May 2nd, 2005, 07:16 PM
Authorized User
 
Join Date: Mar 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to create a "Clear Button"

Hi Imar,

Could you please tell me how to create a "Clear Button" for the form in ASP.net?
I've already had submit and cancel buttons been taken care of.

Thanks Imar
 
Old May 3rd, 2005, 02:48 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

A form reset button's implementation is fully a client side action, so there is no need for a server side ASP.NET button.

The old way should do the trick:

<input type="reset" name="Reset" value="Reset" />

Alternatively, you can add a normal button that submits back to the server and then in the OnClick reset whatever control you want to reset.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: She Is Not Alone by Sonic Youth (Track 3 from the album: Sonic Youth) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create runtime Checkbox button ? piscarian VB.NET 0 November 18th, 2007 08:27 PM
create own button in asp.net thillaiarasu ASP.NET 2.0 Professional 2 July 24th, 2007 06:10 PM
create "expand all" button. roy_mm Reporting Services 0 November 28th, 2006 08:42 AM
How to create a button drag and drop?? DefoxLion General .NET 0 March 2nd, 2005 02:44 AM
When I hit save button the selected employee clear shoakat Classic ASP Databases 6 September 16th, 2004 01:41 AM





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