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
What are the security policy levels in .Net
What is typical about a windows process in regards to memory allocation in dot net?
Please explain what is heap and what is stack?
Differences between namespace, class, assembly?
What is delegation in .net?
Why is .net used?
What are the differences between user control and server control?
What method do you use to explicitly kill a users session? How?
Tell us what is the difference between struct and class?
How to implement datagrid in.net? How would you make a combo-box appear in one column of a datagrid? What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for datagrid methods. What is the access specifier used for that methods in the code behind file and why?
What versions of .net are there?
With these events, why wouldn't microsoft combine invalidate and paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?
Please explain when should you use .net web forms over asp.net mvc?
What are the new thee features of com+ services, which are not there in com (mts)?
Can you write a class without specifying namespace?