Showing posts with label following. Show all posts
Showing posts with label following. Show all posts

Saturday, March 31, 2012

Text box on same line as Radio Buttons

Using ASP.Net1.0
How can I get "Type of degree" and the following text box on the same line
as the radio buttons for "CollegeCompleted"?
I have tried <div style="float:left">, which works well for me in other
areas, but not in this case.
<HR>
College Name <span style="margin-left:162px;">
City/State <br>
<asp:TextBox id="College" columns = "35" runat=server/>
<asp:TextBox id="CollegeCity" columns = "35" runat=server/>
<br>Last Year Completed
<asp:RadioButtonList id="CollegeCompleted" RepeatDirection="horizontal"
Runat=server>
<asp:ListItem><font size="2"> 1</asp:ListItem>
<asp:ListItem><font size="2">2</asp:ListItem>
<asp:ListItem><font size="2">3</asp:ListItem>
<asp:ListItem><font size="2">4</asp:ListItem>
<asp:ListItem><font size="2">5</asp:ListItem>
</asp:RadioButtonList>
Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>
<HR>On Aug 17, 6:40 pm, "dancer" <dan...@.microsoft.com> wrote:
> Using ASP.Net1.0
> How can I get "Type of degree" and the following text box on the same lin
e
> as the radio buttons for "CollegeCompleted"?
> I have tried <div style="float:left">, which works well for me in other
> areas, but not in this case.
>

> College Name <span style="margin-left:162px;">
> City/State <br>
> <asp:TextBox id="College" columns = "35" runat=server/>
> <asp:TextBox id="CollegeCity" columns = "35" runat=server/>
> <br>Last Year Completed
> <asp:RadioButtonList id="CollegeCompleted" RepeatDirection="horizontal"
> Runat=server>
> <asp:ListItem><font size="2"> 1</asp:ListItem>
> <asp:ListItem><font size="2">2</asp:ListItem>
> <asp:ListItem><font size="2">3</asp:ListItem>
> <asp:ListItem><font size="2">4</asp:ListItem>
> <asp:ListItem><font size="2">5</asp:ListItem>
> </asp:RadioButtonList>
> Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>
>

Hi dancer,
You should add RepeatLayout="Flow" to RadioButtonList:
<asp:RadioButtonList id="CollegeCompleted"
RepeatDirection="horizontal"
Runat=server RepeatLayout="Flow">
<asp:ListItem><font size="2"> 1</asp:ListItem>
<asp:ListItem><font size="2">2</asp:ListItem>
<asp:ListItem><font size="2">3</asp:ListItem>
<asp:ListItem><font size="2">4</asp:ListItem>
<asp:ListItem><font size="2">5</asp:ListItem>
</asp:RadioButtonList>
Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>
Regards,
Alexander Kleshchevnikov
MCP
www.klalex.com
That worked well. THANK YOU.
"seigo" <seigo.ua@.gmail.com> wrote in message
news:1187365869.355627.265430@.w3g2000hsg.googlegroups.com...
> On Aug 17, 6:40 pm, "dancer" <dan...@.microsoft.com> wrote:
> Hi dancer,
> You should add RepeatLayout="Flow" to RadioButtonList:
> <asp:RadioButtonList id="CollegeCompleted"
> RepeatDirection="horizontal"
> Runat=server RepeatLayout="Flow">
>
> <asp:ListItem><font size="2"> 1</asp:ListItem>
>
> <asp:ListItem><font size="2">2</asp:ListItem>
>
> <asp:ListItem><font size="2">3</asp:ListItem>
>
> <asp:ListItem><font size="2">4</asp:ListItem>
>
> <asp:ListItem><font size="2">5</asp:ListItem>
>
> </asp:RadioButtonList>
>
> Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>
> Regards,
> Alexander Kleshchevnikov
> MCP
> www.klalex.com
>

Text Box Upper Case

Dear All,
How can I force the user to enter only UPPER CASE letters in a
text box
I tried the following in the form load event but doesn't work
TextBox.Text.ToUpper().
Any help much appreciated.
cheers,
Sunil SabirSunil
try
TextBox.Text = UCase(TextBox.Text)
Hope this helps,
Zeeshan Mustafa, MCSD
"Sunil Sabir" <SunilSabir@.discussions.microsoft.com> wrote in message
news:67A81DCD-87CD-45B8-8FEF-E0DF0035B702@.microsoft.com...
> Dear All,
> How can I force the user to enter only UPPER CASE letters in a
> text box
> I tried the following in the form load event but doesn't work
> TextBox.Text.ToUpper().
> Any help much appreciated.
> cheers,
> Sunil Sabir
Sunil,
Another way, if you want the user to see only upper case in the text box
would be to use a RegularExpressionValidator and set the regular expression
to: [A-Z] which will allow only upper case letters.
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"M. Zeeshan Mustafa" <zeeshan@.no-spm.please.zeeshan.net> wrote in message
news:evgx%231eXEHA.808@.tk2msftngp13.phx.gbl...
> Sunil
> try
> TextBox.Text = UCase(TextBox.Text)
> --
> Hope this helps,
> Zeeshan Mustafa, MCSD
>
> "Sunil Sabir" <SunilSabir@.discussions.microsoft.com> wrote in message
> news:67A81DCD-87CD-45B8-8FEF-E0DF0035B702@.microsoft.com...
>
>

Wednesday, March 28, 2012

Text boxes and read-only text

I'm wondering what standard/best practices are for the following scenario:
I have a page representing several fields for stored data. If the user has
sufficient access privileges, the page is rendered w/ read/write text boxes
and
they can edit the various fields as needed. However, if the user doesn't ha
ve
sufficient privileges (i.e. view only), the page is rendered w/ the text box
es
set to read-only. However, this results in a rather clunky looking page, an
d
if there is more text in a box than can be rendered w/i the specified box
height, then the user must scroll. Further, when printing the page, the tex
t
is clipped to the box.
So, my thought has been to re-design the page to use two different controls
for
each text field: a text box for read/write, and a label (static text) for
read-only. My thought that it will result in a much cleaner view page, and
printing will be as expected. The negative is that there are then two contr
ols
for each field, and I must hide/show the appropriate control depending on th
e
read-write/read-only status.
Is there a better way to do this that doesn't rely on two controls for each
control?
Thanks for any thoughts and insights.What is your browser base?
If you know that it is IE only..
check out contenteditable... basically it allows any html element to be
editable..
http://msdn.microsoft.com/library/d...enteditable.asp
so you could do
<div contenteditable="true">This text it editable</div>
for those that have read write..
then simply change the flag to false if it is readonly,
This means printing doesnt get cliped either.
To make it so that you can still reference input ins your code you can do
<div contenteditable="true" id="Body" onpropertychange="BodyInput.value =
this.innerText;">This text it editable</div>
<input type="hidden" name="BodyInput" value="">
then you simple get the data from the this.BodyInput.value property on the
server.
Not sure if this is what you are after but it may give you ideas as to where
to go from here.
"Julie" <julie@.nospam.com> wrote in message
news:40A1967F.D6ACF7C2@.nospam.com...
> I'm wondering what standard/best practices are for the following scenario:
> I have a page representing several fields for stored data. If the user
has
> sufficient access privileges, the page is rendered w/ read/write text
boxes and
> they can edit the various fields as needed. However, if the user doesn't
have
> sufficient privileges (i.e. view only), the page is rendered w/ the text
boxes
> set to read-only. However, this results in a rather clunky looking page,
and
> if there is more text in a box than can be rendered w/i the specified box
> height, then the user must scroll. Further, when printing the page, the
text
> is clipped to the box.
> So, my thought has been to re-design the page to use two different
controls for
> each text field: a text box for read/write, and a label (static text) for
> read-only. My thought that it will result in a much cleaner view page,
and
> printing will be as expected. The negative is that there are then two
controls
> for each field, and I must hide/show the appropriate control depending on
the
> read-write/read-only status.
> Is there a better way to do this that doesn't rely on two controls for
each
> control?
> Thanks for any thoughts and insights.
Darren Clark wrote:
> What is your browser base?
> If you know that it is IE only..
> check out contenteditable... basically it allows any html element to be
> editable..
> http://msdn.microsoft.com/library/d...enteditable.asp
> so you could do
> <div contenteditable="true">This text it editable</div>
> for those that have read write..
> then simply change the flag to false if it is readonly,
> This means printing doesnt get cliped either.
> To make it so that you can still reference input ins your code you can do
> <div contenteditable="true" id="Body" onpropertychange="BodyInput.value =
> this.innerText;">This text it editable</div>
> <input type="hidden" name="BodyInput" value="">
> then you simple get the data from the this.BodyInput.value property on the
> server.
> Not sure if this is what you are after but it may give you ideas as to whe
re
> to go from here.
Thanks for the link and info, I'll look into it.
And, yes, my target is IE.

Text boxes and read-only text

I'm wondering what standard/best practices are for the following scenario:

I have a page representing several fields for stored data. If the user has
sufficient access privileges, the page is rendered w/ read/write text boxes and
they can edit the various fields as needed. However, if the user doesn't have
sufficient privileges (i.e. view only), the page is rendered w/ the text boxes
set to read-only. However, this results in a rather clunky looking page, and
if there is more text in a box than can be rendered w/i the specified box
height, then the user must scroll. Further, when printing the page, the text
is clipped to the box.

So, my thought has been to re-design the page to use two different controls for
each text field: a text box for read/write, and a label (static text) for
read-only. My thought that it will result in a much cleaner view page, and
printing will be as expected. The negative is that there are then two controls
for each field, and I must hide/show the appropriate control depending on the
read-write/read-only status.

Is there a better way to do this that doesn't rely on two controls for each
control?

Thanks for any thoughts and insights.What is your browser base?

If you know that it is IE only..

check out contenteditable... basically it allows any html element to be
editable..
http://msdn.microsoft.com/library/d...enteditable.asp

so you could do
<div contenteditable="true">This text it editable</div>
for those that have read write..
then simply change the flag to false if it is readonly,

This means printing doesnt get cliped either.

To make it so that you can still reference input ins your code you can do

<div contenteditable="true" id="Body" onpropertychange="BodyInput.value =
this.innerText;">This text it editable</div>
<input type="hidden" name="BodyInput" value=""
then you simple get the data from the this.BodyInput.value property on the
server.

Not sure if this is what you are after but it may give you ideas as to where
to go from here.

"Julie" <julie@.nospam.com> wrote in message
news:40A1967F.D6ACF7C2@.nospam.com...
> I'm wondering what standard/best practices are for the following scenario:
> I have a page representing several fields for stored data. If the user
has
> sufficient access privileges, the page is rendered w/ read/write text
boxes and
> they can edit the various fields as needed. However, if the user doesn't
have
> sufficient privileges (i.e. view only), the page is rendered w/ the text
boxes
> set to read-only. However, this results in a rather clunky looking page,
and
> if there is more text in a box than can be rendered w/i the specified box
> height, then the user must scroll. Further, when printing the page, the
text
> is clipped to the box.
> So, my thought has been to re-design the page to use two different
controls for
> each text field: a text box for read/write, and a label (static text) for
> read-only. My thought that it will result in a much cleaner view page,
and
> printing will be as expected. The negative is that there are then two
controls
> for each field, and I must hide/show the appropriate control depending on
the
> read-write/read-only status.
> Is there a better way to do this that doesn't rely on two controls for
each
> control?
> Thanks for any thoughts and insights.
Darren Clark wrote:
> What is your browser base?
> If you know that it is IE only..
> check out contenteditable... basically it allows any html element to be
> editable..
> http://msdn.microsoft.com/library/d...enteditable.asp
> so you could do
> <div contenteditable="true">This text it editable</div>
> for those that have read write..
> then simply change the flag to false if it is readonly,
> This means printing doesnt get cliped either.
> To make it so that you can still reference input ins your code you can do
> <div contenteditable="true" id="Body" onpropertychange="BodyInput.value =
> this.innerText;">This text it editable</div>
> <input type="hidden" name="BodyInput" value="">
> then you simple get the data from the this.BodyInput.value property on the
> server.
> Not sure if this is what you are after but it may give you ideas as to where
> to go from here.

Thanks for the link and info, I'll look into it.

And, yes, my target is IE.

Monday, March 26, 2012

text length in pixels

Hi,

I am trying to resolve the following scenario:
We have a text box of fixed width that by default should display only 1 line
of text without a scrollbar indicator.
If there are multiple lines of text then we need to to indicate that by
displaying a button alongside the textbox that the user can click on to
expand the height of the text box. The height would be, say, 4 lines of
text. If there are more than 4 lines of text then we need to display a
vertical scrollbar.
To be able to achieve this, it seems, we need to be able to compare the
length of the text with that of the textbox. If we can somehow get the
length in pixels that would solve part of the problem?

Any ideas would be greatly appreciated...

Thanks, VishalInstead of trying to accomplish this by pixels (the hard way), try this:

A textbox that does not have any styling applied to it will use a font where
different characters are different widths (capital W is wider than lower
case l). So, pick a number of characters that you consider to be one full
line of text. You can programmatically check the number of characters in a
textbox and when you reach your one line limit, you can change the rows
property of the textbox to 4. The vertical scroll bar is built in, so you
don't have to worry about enabling it when needed.

"Vishal Gupta" <vishalg_99@.hotmail.com> wrote in message
news:eqX6Zmr3DHA.2112@.TK2MSFTNGP10.phx.gbl...
> Hi,
> I am trying to resolve the following scenario:
> We have a text box of fixed width that by default should display only 1
line
> of text without a scrollbar indicator.
> If there are multiple lines of text then we need to to indicate that by
> displaying a button alongside the textbox that the user can click on to
> expand the height of the text box. The height would be, say, 4 lines of
> text. If there are more than 4 lines of text then we need to display a
> vertical scrollbar.
> To be able to achieve this, it seems, we need to be able to compare the
> length of the text with that of the textbox. If we can somehow get the
> length in pixels that would solve part of the problem?
> Any ideas would be greatly appreciated...
> Thanks, Vishal
Check out the .NET Framework Class Library for:

Graphics.MeasureString Method (String, Font)

"Scott M." <s-mar@.BADSPAMsnet.net> wrote in message
news:%233OjMrr3DHA.3656@.TK2MSFTNGP11.phx.gbl...
> Instead of trying to accomplish this by pixels (the hard way), try this:
> A textbox that does not have any styling applied to it will use a font
where
> different characters are different widths (capital W is wider than lower
> case l). So, pick a number of characters that you consider to be one full
> line of text. You can programmatically check the number of characters in
a
> textbox and when you reach your one line limit, you can change the rows
> property of the textbox to 4. The vertical scroll bar is built in, so you
> don't have to worry about enabling it when needed.
>
> "Vishal Gupta" <vishalg_99@.hotmail.com> wrote in message
> news:eqX6Zmr3DHA.2112@.TK2MSFTNGP10.phx.gbl...
> > Hi,
> > I am trying to resolve the following scenario:
> > We have a text box of fixed width that by default should display only 1
> line
> > of text without a scrollbar indicator.
> > If there are multiple lines of text then we need to to indicate that by
> > displaying a button alongside the textbox that the user can click on to
> > expand the height of the text box. The height would be, say, 4 lines of
> > text. If there are more than 4 lines of text then we need to display a
> > vertical scrollbar.
> > To be able to achieve this, it seems, we need to be able to compare the
> > length of the text with that of the textbox. If we can somehow get the
> > length in pixels that would solve part of the problem?
> > Any ideas would be greatly appreciated...
> > Thanks, Vishal

Saturday, March 24, 2012

Text Message Data

HI Guys,
I am quite puzzled at the following issue:

I have a .net application linked to SQL database in back end. In database we
have records for clients and their associated Projects.There is a need that
came up and the company wants us to provide SMS based functionality where an
exec can type in keyword on their phone and send it and recieve small
description regarding the client and project on their phone similar to Google
SMS.

Can someone please tell me how this can be done?

Thanks a million in advance.

Manny=?Utf-8?B?TWFubnkgQ2hvaGFu?= <MannyChohan@.discussions.microsoft.com>
wrote in news:044285CD-21E8-492B-8203-0EA9891CB4E3@.microsoft.com:

> I have a .net application linked to SQL database in back end. In
> database we have records for clients and their associated
> Projects.There is a need that came up and the company wants us to
> provide SMS based functionality where an exec can type in keyword on
> their phone and send it and recieve small description regarding the
> client and project on their phone similar to Google SMS.
> Can someone please tell me how this can be done?

Here are a couple options:

1. Easiest - SMS Gateway (google search SMS gateways, ClickATel is one
example).
Gateways allow you to send messages via serveral formats, through
e-mail, web service, sockets, or through SMS messaging protocols

2. Hook a SMS compatible phone to your server and send messages via the
phone using an ActiveX (or .NET) object

3. Interface directly with your mobile phone company's SMS gateway
(IP*Works has such a component)

I would choose option #1... while slightly expensive (about 5 - 10c a
message), you get high reliability and ease of interface.

For SMS to propogate between networks (say for example AT&T and Verizon)
there needs to be a peering contract between the two companies. If there
is no peering, no messages with get through. Large commerical SMS
providers do the peering internally and route the messages to the proper
outbound gateway to ensure delivery.

Couple catches - if you're in North America, many carriers do not
consider SMS to be mission critical... you might notice things from
message slowdowns (takes hours for delivery to occur) to messages
outright disappearing! Also different commerical providers (depending on
where they're located and how their peering is setup) will affect their
delivery times and reliability.

--
Lucas Tam (REMOVEnntp@.rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Text Message Data

HI Guys,
I am quite puzzled at the following issue:
I have a .net application linked to SQL database in back end. In database we
have records for clients and their associated Projects.There is a need that
came up and the company wants us to provide SMS based functionality where an
exec can type in keyword on their phone and send it and recieve small
description regarding the client and project on their phone similar to Googl
e
SMS.
Can someone please tell me how this can be done?
Thanks a million in advance.
Mannyexamnotes <MannyChohan@.discussions.microsoft.com>
wrote in news:044285CD-21E8-492B-8203-0EA9891CB4E3@.microsoft.com:

> I have a .net application linked to SQL database in back end. In
> database we have records for clients and their associated
> Projects.There is a need that came up and the company wants us to
> provide SMS based functionality where an exec can type in keyword on
> their phone and send it and recieve small description regarding the
> client and project on their phone similar to Google SMS.
> Can someone please tell me how this can be done?
Here are a couple options:
1. Easiest - SMS Gateway (google search SMS gateways, ClickATel is one
example).
Gateways allow you to send messages via serveral formats, through
e-mail, web service, sockets, or through SMS messaging protocols
2. Hook a SMS compatible phone to your server and send messages via the
phone using an ActiveX (or .NET) object
3. Interface directly with your mobile phone company's SMS gateway
(IP*Works has such a component)
I would choose option #1... while slightly expensive (about 5 - 10c a
message), you get high reliability and ease of interface.
For SMS to propogate between networks (say for example AT&T and Verizon)
there needs to be a peering contract between the two companies. If there
is no peering, no messages with get through. Large commerical SMS
providers do the peering internally and route the messages to the proper
outbound gateway to ensure delivery.
Couple catches - if you're in North America, many carriers do not
consider SMS to be mission critical... you might notice things from
message slowdowns (takes hours for delivery to occur) to messages
outright disappearing! Also different commerical providers (depending on
where they're located and how their peering is setup) will affect their
delivery times and reliability.
Lucas Tam (REMOVEnntp@.rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
[url]http://members.ebay.com/aboutme/spot18/[/url]

Text on the button does not display

Hello,

I am new to Dot Net. In the following code, the text on the button does not display. However, if I add the following for the button control, it does display.

Text ="Confirm"

Also, instead of using <asp:/> I tried using the following and the text still did not display and I get the error message: "'Click' is not a member of 'ASP.SimpleForm_aspx'"

<p><button id="mybutton" OnServerClick="Click" runat="server"> Confirm</button></p>

<html>
<head>
...
</head>
<body>
<form runat="server">
<h2>Take the Survey!</h2>
<p>Name:<br />
<input type="text" id="txtName" runat="server" /></p>
<p>Email:<br />
<input type="text" id="txtEmail" runat="server" /></p>
<p>Which server technologies do you use?<br />
<select id="servermodel" runat="server" multiple="true">
<option>ASP.NET</option>
<option>JSP</option>
</select></p>
<p>Do you like .NET so far?<br />
<select id="likedotnet" runat="server">
<option selected>Yes</option>
<option>No</option>
</select></p>
<asp:button id="mybutton" OnServerClick="Click" Confirm runat="server" />
</form>
</body>
</html>

Thanks in advance

Number one: The asp button has a field called text. This is what sets the text that appears on the button. This value has to be set for the text to display.

Number two: you have onserverclick as your click command. This should just be onclick="Click".

Hope this helps


When you tell your button, onServerClick="Click" your telling it, to execute a sub or function called "Click" which doesnt exist in your example.

To get the text of your button to show up, do this.

<asp:ButtonText="MyButton"runat="server"ID="Button1"/>


Msamford and Freakyuno,

Thanks a lot for your response. I tried playing with the code.

As requested by you, when I try any one of the following within the aspx code the display works fine and when I click on the "Confirm" button I see "Done" at the bottom of the screen.

<asp:button id="mybutton" Text="Confirm" OnServerClick="Click" runat="server"/>

<asp:Button Text="Confirm" runat="server" ID="Button1" />

However, when I use the following line of code, I see that the output is exactly the same but when I click on the "Confirm" button, I see an "Error on Page" at the bottom of the screen instead of "Done". I tried the following Code Behind for the event handler.

<p><button id="mybutton" OnClick="Click" runat="server">Confirm</button></p>

CodeBehind

<script runat="server" language="C#>
void Click(Object s, EventArgs e){
Response.Write(mybutton.ID);
}
</script>

Code Behind

//First off we import some useful namespaces
using System;
using System.Web.UI;
using System.Web.UI.WebControls;

//All code-behind classes generally inherit from Page
public class SimpleForm3 : Page
{
// Declare the presentation elements on the ASPX page
protected Button mybutton;

//Here's the Click Handler just as it appeared before
public void Click(Object s, EventArgs e){

}
}

I am not sure why. Thanks in advance!!!


Hello,

I added the C# code inside a server-side script block within the header tag of the aspx page. Also, s I am trying to grasp html controls and web forms, I believe the OnServerClick specifies the asp dot net handler for clicks on the button for html controls?

SimpleForm.aspx

<html>
<head>
<script runat="server" language="C#">
void Click(Object s, EventArgs e){
Response.Write("Your name is: " + txtName.Value + "<br />");
Response.Write("Your e-mail is: " + txtEmail.Value + "<br />");
Response.Write("You like to work with: " + servermodel.Value + "<br />");
Response.Write("You like NET: " + likedotnet.Value);
}
</script>
</head>
<body>
<form runat="server">
<h2>Take the Survey!</h2>
<p>Name:<br />
<input type="text" id="txtName" runat="server" /></p>
<p>Email:<br />
<input type="text" id="txtEmail" runat="server" /></p>
<p>Which server technologies do you use?<br />
<select id="servermodel" runat="server" multiple="true">
<option>ASP.NET</option>
<option>JSP</option>
<option>PHP</option>
<option>CGI</option>
<option>ColdFusion</option>
</select></p>
<p>Do you like .NET so far?<br />
<select id="likedotnet" runat="server">
<option selected>Yes</option>
<option>No</option>
</select></p>
<p><button id="mybutton" OnServerClick="Click" runat="server">Confirm</button></p>
</form>
</body>
</html>

Thanks

dotnetnew123


dotnetnew123 wrote:

However, when I use the following line of code, I see that the output is exactly the same but when I click on the "Confirm" button, I see an "Error on Page" at the bottom of the screen instead of "Done". I tried the following Code Behind for the event handler.

<p><button id="mybutton" OnClick="Click" runat="server">Confirm</button></p>

the problem here is you have no asp: in your tag. Therefore when you click the button it is not accessing your servercode. The only way to access the click event is to have the servercontrol properly written with <asp:button ...></asp:button>


Other folks have given you the answer on this, but I'll try since you don't seem to be doing what they advise. Some of my advice might be moot since it could be just a cutting and pasting error, but here we go:

You don't have the @.Page declaration at the top of your document (above even the <html> tag). I just tried your code as-is but with the added page tag and it works just fine.


Thanks all. It works fine now!

Thursday, March 22, 2012

TextArea Length ??

Hi
I am using Textarea type.I want to set maximum length to the textarea.
I am using following code for the same,but it is not working,
<textarea name="txtDescription" cols=10 rows=3 axlength=50></textarea>
<asp:TextBox Font-Names="verdana" Runat="server" ID="tforumtext"
TextMode="MultiLine" Height="100" Width="300" Font-Size="10"
MaxLength="100">
</asp:TextBox>
But it is not working,it
Help me in the same
Samir (S.E INDIA).Maxlength property is not supported for textarea control. For workaround,
check out this faq
http://www.extremeexperts.com/Net/t...ineTextBox.aspx
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"Samir Patel" <sneelm@.yahoo.co.in> wrote in message
news:uParhhszEHA.2624@.TK2MSFTNGP11.phx.gbl...
> Hi
> I am using Textarea type.I want to set maximum length to the textarea.
> I am using following code for the same,but it is not working,
> <textarea name="txtDescription" cols=10 rows=3 axlength=50></textarea>
> <asp:TextBox Font-Names="verdana" Runat="server" ID="tforumtext"
> TextMode="MultiLine" Height="100" Width="300" Font-Size="10"
> MaxLength="100">
> </asp:TextBox>
> But it is not working,it
> Help me in the same
> Samir (S.E INDIA).
>