TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Phaneendra Chakravaram
NA
490
99.7k
how to restruct keypress event textbox
Apr 28 2016 3:09 PM
hi friends how to restruct keypress in textbox (i mean to avoid manual keypress) here i posted my code actually i restructed keypress event pageload using jquery..but i want when ever user enter textbox we have to restucted keypress plz give me quick reply.
<asp:TextBox runat="server" ID="txtDOB" Enabled="false"></asp:TextBox>
<asp:CalendarExtender runat="server" ID="CalDOB" Format="dd/MM/yyyy" TargetControlID="txtDOB" />
<asp:RequiredFieldValidator runat="server" ControlToValidate="txtDOB" ID="reqDOB" Display="None"
ErrorMessage="Required Date Of Birth" ValidationGroup="emppersonel" ValidateRequestMode="Enabled"></asp:RequiredFieldValidator>
<asp:ValidatorCalloutExtender runat="server" ID="ValidatorCalloutExtender1" TargetControlID="reqDOB"
HighlightCssClass="highlightReq">
</asp:ValidatorCalloutExtender>
heremy jquerycode
.................................
$(document).ready(function ($) {
$('#<%=txtDOB.ClientID%>').keypress(function () {
return false;
});
......................
above code is working pageload textbox keypress restructed .but my requirement is i have to restructed anytime(the text box is callenderextender i meen we have to select date by using calenderextender)
Reply
Answers (
1
)
pass information intto an iframe via Post in ASP.NET?
Data table date validation