for the textbox if i want to allow only numbers.what ever
the characters u enter it should not take.which event u used?

Answer Posted / yusuf khan

You will also use ajax FilteredTextBoxExtender and in filter
type allows only number like this

<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:TextBox ID="TextBox1" runat="server">
</asp:TextBox>
<asp:FilteredTextBoxExtender
ID="FilteredTextBoxExtender1" runat="server"
TargetControlID="TextBox1" FilterType="Numbers">
</asp:FilteredTextBoxExtender>

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between vb.net and vc#.net?

542


What is Complex Class in .NET?

603


Sql Queries: A Table will be given Omiting Duplicate rows and adding a new column

1932


Explain soap and xml?

556


What operating systems does the .net framework run on?

552






Please explain what is the difference between constants and read-only variables?

576


If you are executing these statements in commandobject. Select * from table1; select * from table2? How you will deal result set? 42. How do you sort a dataset.

540


Please explain what garbage collection is and how it works. Provide a code example of how you can enforce garbage collection in .net?

541


Explain how do assemblies find each other?

575


Name the classes that are introduced in the system.numerics namespace.

629


Can you edit data in repeater control? How?

565


Explain the main components in .net?

559


What is difference between .net and .net core?

543


Explain how to spawn a thread?

539


Explain what is the difference between web application and enterprise application?

543