473,411 Members | 2,013 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,411 software developers and data experts.

Textbox maxlength property in vb.net 2003

h
Hi,

I have set my textbox's maxlength property to 1 , however it allow more than
one word. Is there any settings that I am missing ?
Thanks in advance

Hardik Shah

Apr 27 '06 #1
3 4829
From the documentation for TextBox.MaxLength:

"This property is only applicable when the TextMode property is set to
TextBoxMode.SingleLine or TextBoxMode.Password."

--
======================
Clive Dixon
Digita Ltd. (www.digita.com)
"h" <ha********@hotmail.com> wrote in message
news:Ou**************@TK2MSFTNGP03.phx.gbl...
Hi,

I have set my textbox's maxlength property to 1 , however it allow more
than
one word. Is there any settings that I am missing ?
Thanks in advance

Hardik Shah

Apr 27 '06 #2
h
first of all thanks for your reply.

I could not found textmode property for textbox(vb.net), can u explain me in
detail.

Hardik Shah

"Clive Dixon" <cl*******************@digita.noluncheonmeat.com > wrote in
message news:#c**************@TK2MSFTNGP05.phx.gbl...
From the documentation for TextBox.MaxLength:

"This property is only applicable when the TextMode property is set to
TextBoxMode.SingleLine or TextBoxMode.Password."

--
======================
Clive Dixon
Digita Ltd. (www.digita.com)
"h" <ha********@hotmail.com> wrote in message
news:Ou**************@TK2MSFTNGP03.phx.gbl...
Hi,

I have set my textbox's maxlength property to 1 , however it allow more
than
one word. Is there any settings that I am missing ?
Thanks in advance

Hardik Shah


May 1 '06 #3
Look again.

http://msdn.microsoft.com/library/de...tModeTopic.asp

The textbox can be rendered in the html as either an input tag or a
textarea tag. The input tag does have a maxlength property, the textarea
doesn't. If you use TextBoxMode.Multiline it will be rendered as a
textarea tag, and does not support MaxLength.

h wrote:
first of all thanks for your reply.

I could not found textmode property for textbox(vb.net), can u explain me in
detail.

Hardik Shah

"Clive Dixon" <cl*******************@digita.noluncheonmeat.com > wrote in
message news:#c**************@TK2MSFTNGP05.phx.gbl...
From the documentation for TextBox.MaxLength:

"This property is only applicable when the TextMode property is set to
TextBoxMode.SingleLine or TextBoxMode.Password."

--
======================
Clive Dixon
Digita Ltd. (www.digita.com)
"h" <ha********@hotmail.com> wrote in message
news:Ou**************@TK2MSFTNGP03.phx.gbl...
Hi,

I have set my textbox's maxlength property to 1 , however it allow more
than
one word. Is there any settings that I am missing ?
Thanks in advance

Hardik Shah


May 1 '06 #4

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

Similar topics

9
by: Lovely Dola | last post by:
I have set the MaxLength property of a textbox in a form to 5 at design time. When I change the MaxLength back to 0 during run-time under some condition (for example, after clicking a command...
0
by: Edward Mitchell | last post by:
I have a database with text string fields defined by varchar(nnn). When I request from the user the text from a textbox, I'd like to set the maximum number of characters in the textbox to the...
4
by: Rodrigo DeJuana | last post by:
Howdy, I'm new to this .net stuff and really have little to no training. Im trying to create a new page for a web form, so i have been pretty much jsut coping code. I having some issue with...
14
by: Adam Clauss | last post by:
I've an application which is using a multiline textbox to log the status of a fairly long procedure. "Updates" are made to the status by calling textbox.AppendText. As my task is fairly lengthy,...
1
by: mg | last post by:
I have a MultiLine TextBox (WebForm - C#) with the MaxLength property = 1000 but am able to type in an unlimited number of characters. Is there a way to limit the number of characters that can be...
4
by: hardcoded | last post by:
I have a textbox with TextMode set to MultiLine. I also have the MaxLength set to 255. This maxlength value seems to get ignored as the user can enter unlimited characters. Does the multiline...
1
by: Miguel Dias Moura | last post by:
Hello, i added an ASP.Net input text form in a page: <td> <asp:TextBox ID="CV" Rows="15" runat="server" TextMode="MultiLine" Columns="66" ToolTip="Insert your CV" MaxLength="2000" /> </td> ...
6
by: Neven Klofutar | last post by:
Hi, Is there a way to limit this field, because "maxlength" seems to be working only for singleline ? thanx, Neven
3
by: engineer | last post by:
Hi, I'm trying to control the maxlength property of a textbox in javascript. But it's not going into effect.This is my code HTML <input type=text id="txt_search_string" class=formtext...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.