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

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

1935


What is the use of design pattern?

567


Explain how to produce an assembly?

581


What is common language specification (cls)?

646


What are the different types of remote object creation mode in .net?

575






How server form post-back works?

582


What are the main components in .net?

529


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

516


What is manifest in .net?

611


What are Attributes in .NET?

585


What is .net latest version?

549


Where does the gac exist ?

579


Explain the different types of proxy patterns?

688


Please explain what is the .net framework and how does it work?

518


What is reflection in microsoft .net context?

575