473,738 Members | 8,397 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4867
From the documentation for TextBox.MaxLeng th:

"This property is only applicable when the TextMode property is set to
TextBoxMode.Sin gleLine or TextBoxMode.Pas sword."

--
=============== =======
Clive Dixon
Digita Ltd. (www.digita.com)
"h" <ha********@hot mail.com> wrote in message
news:Ou******** ******@TK2MSFTN GP03.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******** ******@TK2MSFTN GP05.phx.gbl...
From the documentation for TextBox.MaxLeng th:

"This property is only applicable when the TextMode property is set to
TextBoxMode.Sin gleLine or TextBoxMode.Pas sword."

--
=============== =======
Clive Dixon
Digita Ltd. (www.digita.com)
"h" <ha********@hot mail.com> wrote in message
news:Ou******** ******@TK2MSFTN GP03.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.Mul tiline 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******** ******@TK2MSFTN GP05.phx.gbl...
From the documentation for TextBox.MaxLeng th:

"This property is only applicable when the TextMode property is set to
TextBoxMode.Sin gleLine or TextBoxMode.Pas sword."

--
=============== =======
Clive Dixon
Digita Ltd. (www.digita.com)
"h" <ha********@hot mail.com> wrote in message
news:Ou******** ******@TK2MSFTN GP03.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
11448
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 button), I can still only enter at most 5 characters into the textbox. So how can I reset the textbox to allow unlimit text to be entered?
0
680
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 "nnn" that was used in the varchar(...) statement in the field definition. i.e. Field1 varchar(25) NOT NULL and in the .aspx file: <asp.textbox id=Field1 runat="server" />
4
2922
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 some textboxes not updating when i a hit save. for example I have this code in my aspx.cs file: declared:
14
7607
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, I go well past the default max text length of the textbox. According to the documentation, setting MaxLength = 0 will increase this to basically the limit of available memory. So, in the form designer, I set the MaxLength property equal to 0. ...
1
466
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 typed into this TextBox?
4
8167
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 textbox not support maxlength? How can I make the work? TIA
1
1129
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> I wanted to set a limit of 2000 chars. I inserted MaxLength="2000" in my
6
1651
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
3048
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 maxlength=100 /> JavaScript if(var_selection = 'C') document.getElementById('txt_search_string').MaxLength = '6' ;
0
8969
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9263
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.