Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
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 April 26th, 2005, 10:39 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default I want text boxes and values to disappear in asP

Please help me here, I am trying to delete the text boxes and values on the client side when user hit delete button. On the server side the record is deleted.
 rsDelete.Delete ''Here the records gets deleted on theserver side
 strDateFrom=0 ' I am confused here what will I do to clear the values and text boxes on the client side

 
Old April 26th, 2005, 10:57 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

How about:

myTextBox.Text = String.Empty
myLabel.Text = String.Empty
 
Old April 26th, 2005, 01:07 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In my previous problems I used
 inthourly rate=0. It cleared the value in the textbox. I tried doing the same pattern, it didnot work. Also the prevouis helper told me to do this
myTextBox.Text = String.Empty
myLabel.Text = String.Empty
I didnot understand what myTextBox.Text =String.Empty stand. Can you explain all the things what does it stand for?

 
Old April 26th, 2005, 04:38 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

My apologies, I missed the reference to 'client side' in your first post.

Clearing values of HTML elements is a client-side javascript issue. Not really a .NET issue.

This is usually done in the client-side code with something like this:
   <htmlelement>.value = ""

-Peter
 
Old April 26th, 2005, 04:55 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Please help me here, I am stuck here for a while
I want to clear the values and disappear textboxes on theclient side after the delete button is hit. I am delDateFrom="" to clear the values from the textbox, it doesnot work.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare values of several drop boxes, notify user SoC Javascript How-To 1 April 21st, 2005 10:17 AM
text boxes do not disappear in an aspI shoakat ASP.NET 1.0 and 1.1 Basics 6 November 10th, 2004 09:20 AM
text boxes do not disappear in an asp shoakat Classic ASP Databases 1 November 6th, 2004 01:51 PM





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