Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Mobile / January 2005

Tip: Looking for answers? Try searching our database.

Using ASP.net to set Text Box field to Numerics only

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sue - 30 Dec 2004 15:29 GMT
Hello,

We are in the process of implementing our third party customized application
to use Blackberry which I believe uses HTML.  Is there a way that we can get
an ASP.net Mobile text box to work with only numeric data? In order for the
user to enter a number, they have to hit the shift numlock key, and we want
to prevent the user from having to do this. On Yahoo's weather site this is
supported with the zipcode field. I believed this is done on their site using
WML. Is there a way that we can connect the ASP.net mobile web pages to WML?
Is there any other way that this can be done?

By the way, I've already tried the numeric property of text box = 'true".  
This didn't work, and I believe that is because Blackberry's use HTML not WML
or at least the 3rd party app we are using uses HTML.

Thanks in advance for your time and your help.
JuanDG - 03 Jan 2005 16:06 GMT
well, the numeric property of the mobile text box only works when the device
accessing the site request a WML page, because this "numeric" property exist
only in WML.
If you need to do it for HTML, you need to use JavaScript, although I'm not
sure if the Blackberry supports JavaScript.

Finally, by "3rd party app" you are talking about a browser?? it's not very
clear

--

Juan David Gomez A.
Microsoft Certified Professional
Analista de Desarrollo - PSL S.A.
Web and Wireless Banking
Medellin - Colombia

> Hello,
>
[quoted text clipped - 20 lines]
>
> Thanks in advance for your time and your help.
Sue - 06 Jan 2005 23:19 GMT
Thanks Juan,

Actually the version of Blackberry that we are using the newer version does
support JavaScript I believe.  The only question now is how would I complete
this in JavaScript?  I am new to the programming arena.  

I did see some javascript out on the net that uses keycodes.  Do you know if
keycodes work on Blackberry?  I am unsure whether the keycodes are the same
or not as that of a keyboard.  I was able to get it to work pointing the
web.config - device filter to use WML, but they don't want to use WML here
because then you lose the functionality of drop down boxes.

Any tips on how to complete this?

Thanks for all your help!
Sue

> well, the numeric property of the mobile text box only works when the device
> accessing the site request a WML page, because this "numeric" property exist
[quoted text clipped - 37 lines]
> >
> > Thanks in advance for your time and your help.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.