473,387 Members | 1,771 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,387 software developers and data experts.

check empty(textbox)

in the textbox, if the user press "space bar". textbox.textlength return
non-zero answer,
I need to declare a variable strTextbox = trim(textbox.text) , then check
strtextbox = ""
Any simple method to check the textbox ???
thanks a lot


Nov 21 '05 #1
1 1489

"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:Oe**************@TK2MSFTNGP11.phx.gbl...
in the textbox, if the user press "space bar". textbox.textlength return
non-zero answer,
I need to declare a variable strTextbox = trim(textbox.text) , then check
strtextbox = ""
Any simple method to check the textbox ???


If TextBox.Text.Trim().Length = 0 Then
Nov 21 '05 #2

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

Similar topics

5
by: orahm | last post by:
I have 2 textboxes and one button and I don't know why my code doesn't work. All I'm trying to do is write a number 1 into the textbox with the focus. so if the user puts the cursor in textBox1 and...
2
by: Xendor | last post by:
Hi, i am a noobie in asp.net and i have the following problem. I use an Form with a textbox to enter a mail-adress. In this textbox a valid email-adress should be entered. But when i leave the...
0
by: Tomas | last post by:
When I use a __doPostBack to submit a page to the server the last textbox on the page always contains a CRLF. I've used HttpRequest.SaveAs to dump the entire request (IIS 6) to disk and the body of...
0
by: Neil Young | last post by:
Hello group, I'm referring to a "rather old thread" (April 21st 2005). Because I also ran into problems with ASP.NET 2.0 formview and DBNull, but found a way around, I would like to share my...
3
by: NH | last post by:
How can I check the value of a textbox has no more than 2 decimal places? I already check that the value is numeric, but how do I check that it is not 0.223 or .022 etc. I only want to allow up...
1
by: paulmac106 | last post by:
Hi, I have a gridview based on a SQL stored procedure. I then want to let the user filter the results by 4 textboxes. When all 4 textboxes have "some" search criteria the gridview works fine,...
2
by: MRW | last post by:
I'm looking for a function that will take the value of a textbox and see if it an integer or string. Basically, I'm trying to add a simple search form with two overloaded functions. If the...
1
by: Brad Pears | last post by:
I am using vb.net 2005 and SQL server 2000. In my table I have a date field of type "smalldatetime". In my vb application, the user may or may not enter a date value into the appropriate text box....
17
by: Beany | last post by:
Hi, i have a subform within a form. i have a combobox in the form that populates the subform after a selection. i have two textboxes that show some info from the subform, ie Number of items...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.