Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Text Control FORCE uppercase?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00833159
Message ID:
00833253
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform