Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-23-2012, 07:46 PM   PM User | #1
sharonc7
New to the CF scene

 
Join Date: Oct 2012
Location: Arizona, USA
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
sharonc7 is an unknown quantity at this point
Question can't get maskedinput to work in asp page

Hi,
I am trying to add a mask to my field txtCommercial i.e (999) 999-9999. I would appreciate any help you can give me. thank you. I have the following info on my asp page:

Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>  

02    

03 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  

04    

05 <html xmlns="http://www.w3.org/1999/xhtml">  

06 <head runat="server">  

07     <title>GDR Request Form</title>  

08     <script src="Scripts/jquery-1.8.2.js" type="text/javascript"></script>  

09     <script src="Scripts/jQuery.maskedinput.js" type="text/javascript"></script>  

10    

11          

12     <script language="javascript" type="text/javascript">  

13             jQuery(function ($) {  

14                 $("#txtCommercial").mask("(999) 999-9999");  

15             });   

16     </script>  

17 </head>  

18 <body>  

19  <table class="ftitle2">  

20           <tr>  

21              <td style="text-align:left" width="25px">  

22                 Commercial:</td>  

23              <td>  

24                 <asp:TextBox ID="txtCommercial" runat="server" Width="110px" ToolTip="Please Enter: (999) 999-9999"></asp:TextBox>  

25              </td>  

26  </table>  

27 </body>  

28 </html>
sharonc7 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:34 AM.


Advertisement
Log in to turn off these ads.