Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 November 5th, 2004, 07:06 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default text boxes do not disappear in an aspI

When user hits delete button, to make boxes clear off from
web, but text boxes donot get cleared. When checking in datbase
the values are gone. Please explain me the reason

 
Old November 6th, 2004, 08:12 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

How are you clearing the text boxes?
 
Old November 8th, 2004, 11:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Shoakat,

Is this .Net related or Classic ASP related? I see the same being posted on Classic ASP forum too. Make sure that you post on the relavant topic so as to get the right assitance.

Link to the thread that was posted on Classic ASP forum - text boxes do not disappear in an asp

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old November 8th, 2004, 12:54 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am using java script.{ document.thisForm.txtboxes.value="";
return true;}

 
Old November 8th, 2004, 01:25 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Chance are the actual form name on the page is not "thisForm". Double check this in the source HTML.
 
Old November 9th, 2004, 12:42 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I checked the form name is ok

 
Old November 10th, 2004, 09:20 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I'm confused...

You say you are using javascript to clear the text boxes. You also say "When checking in datbase the values are gone."

Are you saying that when you click the button, the database values get removed but the text doesn't get removed from the text boxes? This makes no sense. If you are trying to clear the text boxes with javascript then how is it possible that the database could be affected? Are you sure this isn't a postback button?

Let's start from the beginning again: can you post the relevant pieces of code for this problem?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Cycling through all text boxes sjf905 C# 2 September 21st, 2006 12:43 AM
Rich Text Boxes speedlearner Pro VB 6 2 July 2nd, 2006 09:02 AM
I want text boxes and values to disappear in asP shoakat ASP.NET 1.0 and 1.1 Basics 4 April 26th, 2005 04:55 PM
text boxes do not disappear in an asp shoakat Classic ASP Databases 1 November 6th, 2004 01:51 PM
HELP with text boxes on webpage rwheeleragco Javascript How-To 1 November 2nd, 2004 04:32 AM





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