Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Text Control FORCE uppercase?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00833159
Message ID:
00833253
Views:
21
Thanks Cathi, I'm having a hard time finding the WEB equivalent for:

System.Windows.Forms.KeyEventArgs e)

When I get to System.Web.UI.???

System.Web.UI.HtmlControls.HtmlForm.ReferenceEquals e)

Any pointers for this WEB version?

Thanks.

__Stephen


>Hi Stephen,
>
>To force the text entered to be uppercase, you can use the following code for the KeyUp event:
>
>
>private void mmtextBox1_KeyUp(object sender,
>     System.Windows.Forms.KeyEventArgs e)
>{
>	this.mmtextBox1.Text = this.mmtextBox1.Text.ToUpper();
>	mmtextBox1.SelectionStart = mmtextBox1.Text.Length;
>	base.OnKeyUp(e);
>}
>
>
>
>>I have a WEB MmTextBox that needs to FORCE uppercase in data being typed in.
>>
>>I am already doing :
>>
>>MmTextBox1.Text = dsGetDepapplCL.Tables["depappl"].Rows[0]["ap_part"].ToString().ToUpper() ;
>>MmTextBox1.DataBind();
>>
>>in my save, but that's not good enough.
>>
>>Any ideas?
>>
>>TIA
>>
>>__Stephen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform