.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Force textBox input to be upper case

Posted By:      Posted Date: October 16, 2010    Points: 0   Category :WPF


How can i force my textbox to write all the input in upper case only?



View Complete Post

More Related Resource Links

Enter the date on the WPF DatePicker input textbox instead

When i type in the date on the date picker and check it on an lostfocus event and i try to read the text or selecteddate its blank?  Am i missing something.  I assumed typing in 5/11/2010 on the input box would either show up on the controls Text or the SelectedDate, but i may be missing something   Thanks

How to force a textbox to have insert mode off in WPF 4 vb.net.

I need my textboxs on my WPF form to act like the traditional insert key function where you could override characters as you type and not insert them. IE I need to turn off the defualt insert characters feature. It also has to be able to be turned on when needed. Thank you for reading, hope you can help!~Justin

Error 15401 when adding AD logins in upper case to a sql 2008 server

We are repeatedly getting Error 15401 when adding couple AD logins in upper case(DOMAIN_NM\USR_NM) to a sql 2008 server with the latin1_general, binary sort collation.  Lower case (DOMAIN_NM\usr_nm) works fine.  All the other servers, even the ones with the same collation, it is the opposite, upper case works and not the lower case.  Looked for duplicate SIDs in the domain, on the sql server, did not find any.  Any idea what's going on?. 

Using HTML5 new input types with .NET TextBox control


Hi here's my problem.


I'm building a iPhone, iPad website I'd like to use the new HTML 5 input types: http://www.w3.org/TR/html-markup/input.number.html so a numeric keyboard will pop.


I'm using a ASP .NET TextBox :

<asp:TextBox ID

how to Input data from textbox to unknown size of array or arraylist?


I am fresh to asp.net. I m using vb to write it. Could someone who is professional guide me?

I want to input data from textbox to "unknown size" array or arraylist, and bind it to gridview.

I have more than 1 data to input. Do i need to use loop to bind?

Thank you for your kind attention and patient.

Textbox in Gridvew Control not saving keyed in input


 Hi, Can anyone help with this;

I have a textbox in a item template field in a gridview control and a button field as a regular column

See columns below:

<tr valign<

How do you get a textbox/input or a javascript to postback?


I am using a Yahoo UI dual slider.  The dual slider changes values based on what you slide.  It uses javascript and sends this value back to a Input type="text" textbox. 

I want to be able to do a automatic postback and call the server function "protected void zoom(object sender, EventArgs e)"  each time the slider value changes.

So what I did was:

<asp:TextBox type="text" id="demo_from"  runat="server"
OnTextChanged="Zoom" AutoPostBack="true">

But the problem is, it WILL not fire the server-side event unless I manually click the textbox and press "ENTER".  Then the event will fire (during debug).

So how can I get the event to auto-fire each time the slider value changes?


How to input line breaks and formating in textbox with multilines ?


I have a web form in which anyone can fill out the information and i recieve the information.

<asp:TextBox ID="Body" runat="server" Columns="55" Height="101px" Rows="30" TextMode="MultiLine"

The problem is while entering the information in this text box, if anyone used enter line or different line or any kind of formatting, as a result i don't get the formatted page or with lines. I see only a paragraph which is very difficult to read and understand.

How to make my textbox compatible with all kind of formatting options so that even if someone paste information from word etc in the text box , i should get the formatter information just like the user pasted the information in the text box...

How can you check the user is owned of the web site that is input in textbox?


Hi Experts.

In the most web sites when you want to register in any web sites, you must provide your information such as First name, last name, email and etc. Then the web site create a confirm link and send it to your mail. If you input your mail correctly, you can check it in your inbox of your mail and click on it to your registration is completed.

In this scenario, the users should input their mails correctly because the web sites will send the confirm link to it. In other words the mail that the users input must be owned of user else if they can't click on the confirm link.

Suppose you want the users input their web sites instead of their emails address in your web site, Now How can you check the user is owned of the web site that is input in the textbox?

I hope you understand my question else if tell me to describe it more.

With Regards. Mojtaba

Add textbox and change ActionLink to use textbox input


How do I add a textbox for user input in the view and then change the link below to user the user input instead of the hard coded ID?

<%= Html.ActionLink("click me", "Index", new { id = 10057 } ) %>

TextBox MaxLength Property not enforced for Tablet PC Input Panel using Writing Pad


I have developed a sizeable Wpf application to target the XP Tablet PC 2005, running on a UMPC. However I have hit a serious issue with the TextBox MaxLength property when using the Tablet Input panel to input hand writing recognition to my application.


When using keyboard or Input Panel text input, the MaxLength property is enforced as you might expect. However if the writing pad is used and the MaxLength is exceeded an Exception of type 'System.ExecutionEngineException' is thrown, and the application terminates.


Code Snippet

<TextBox Name="textBox1" MaxLength="25" />



I have built a simple test application to demonstrate that the problem is not isolated to my particular application.


I would be grateful i

replce lower case to upper cas


hi All,


i have to replace the first character after each space by a upper character


'Korea,democratic people's republic of'              is to be replaced by


'Korea,democratic People's Republic Of'




All TextBox controls in ASP.NET UpdatePanel won't accept any input after post-back


 My code behind is VB.NET. I use ASP.NET UpdatePanel like the following. However, after the post-back, all textbox in UpdatePanel won't accept any input, except when I move the mouse over and click on the TextBox.

  • Here's why I use UpdatePanel:

    During the post-back, after inserting data into DB, set all TextBox text property to String.Empty

    After the form is submitted, the Panel pStudent should be refresh , not the entire page

    and the TextBox txtId is set in focus again.

It's very strange that this happened to me today. I used UpdatePanel before many time I never had such problem.

Can anyone show me why  all TextBox controls in UpdatePanel won't accept any input after the post-back even though the textbox is focused , only when you move mouse click in them? 

    <asp:UpdatePanel ID="upPOS" runat="server">
            <asp:Panel ID="pStudent" runat="server" CssClass="InContentInfoLight" 
        DefaultButton="btnSubmit" GroupingText="Cafeteria - POS">
                <br />
                <div class ="divleftcolumn-six">
                    ID Number :
                    <asp:TextBox ID

Use regex to change upper case to lower case

Hi, I'd like to change any upper case letters in a string to lower case using Regex.  Does anyone have a solution?

reg exp for check input textbox ip address with padded leading zeros


Hi all!

I'm new in this forum...

I want a regexp to check a input textbox with a ip address ipv4 with all the controls for a valid ip address but:

for example: is not correct for me but i want only or ....

is it possible only with regular expressions?



Using a CompareValidator to check input is a valid date

The CompareValidator can do more than just compare two controls. You can also compare it against several of the main .net data types such as Date, Integer, Double and Currency.

To do this you would set Operator="DataTypeCheck" and instead of setting the ControlToCompare or ValueToCompare attributes as you normally would you use the Type="Date" (or any of the data types I have listed above).

Visual Case Tool - UML Tutorial

The Class Diagram

The class diagram is core to object-oriented design. It describes the types of objects in the system and the static relationships between them.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend