473,326 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Numeric format to a mobile textbox using xhtml & ASP.NET1.1

How to apply a numeric format to a textbox using xhtml? I know you have to
use the "-wap-input-format" style tag in css. I can get this to work in a
regular xhtml page, however, I've been unsuccessful in getting it to work in
asp.net 1.1

The following code has allowCustomAttributes set and works fine for labels,
but not for textboxes. This is because it is building span tags around the
control. I need to embed the class tag inside the input tag.

********
<HEAD>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="http://schemas.microsoft.com/Mobile/Page"
name="vs_targetSchema">
</HEAD>
<body>
<mobile:form id="Pedido" runat="server">
<mobile:Label id="Label1" runat="server"
StyleReference="bold">Cliente:</mobile:Label>
<mobile:TextBox id="txtCliente" runat="server"
StyleReference="numeric"></mobile:TextBox>
<mobile:Command id="cmdOK" runat="server"
Format="Link">OK</mobile:Command>
</mobile:form>
<mobile:stylesheet id="StyleSheet1" runat="server">
<mobile:Style Name="bold">
<DeviceSpecific>
<Choice Filter="isXHTML-mp" Font-Bold="True"> </Choice>
</DeviceSpecific>
</mobile:Style>
<mobile:Style Name="numeric">
<DeviceSpecific>
<Choice Filter="isXHTML-mp"> </Choice>
</DeviceSpecific>
</mobile:Style>
</mobile:stylesheet>
</body>
********

I previously define the device filter "isHTML-mp" of type Equality
Comparison with Preferred Rendering Type in Compare and xhtml-mp in Argument.
I have this information from the OpenWave Emulator in the OpenWave SDK 6.2.2.
I also try create the filter "isHTML-basic" for my Sony Ericsson T616 mobile
phone.

In the section:
<DeviceSpecific>
<Choice Filter="isXHTML-mp" ----HERE---- > </Choice>
</DeviceSpecific>

i try:
Format="NNN"
format="NNN"
wmlFormat="NNN"
wmlformat="NNN"
{-wap-input-format: "NNN"}
-wap-input-format: "NNN"

but when I write one of this options the browser in the emulator and the
phone gives a HTTP Error: 500 Internal Server Error

Thanks.
Jul 21 '05 #1
1 4607
Can somedy help me with this problem? Thanks!
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Philipp Lenssen | last post by:
Sometimes, mobile sites pop up, like this new one: http://mobile.answers.com/ (The source is funny -- absolute font-sizes, JavaScript, inline styles... and this is supposed to be the *accessible*...
7
by: BBFrost | last post by:
I'm receiving decimal values from database queries and placing them on a report page. The users want to see the following .... Db Value Display Value 123.3400 123.34...
2
by: SJ | last post by:
I'm trying to develop a mobile application using XHTML and i want to use server side scripting. Can i use asp.net with XHTML to do this? Also, which is supported more widely? XHTML or WML? ...
11
by: Keith | last post by:
I apologize for those of you who think I'm posting on the same topic. It is not that I don't appreciate all of your comments - and I'm definitely reading them all - but I think I have a differing...
1
by: Jose Gonzalez | last post by:
How to apply a numeric format to a textbox using xhtml? I know you have to use the "-wap-input-format" style tag in css. I can get this to work in a regular xhtml page, however, I've been...
4
by: InnoCreate | last post by:
Hi everyone, I've developed a couple of asp.net1.1 websites and these are viewable using my mobile phone. I've now moved over to asp.net2 and i'm unable to view asp.net2 websites on my phone. I've...
1
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Hi. I have Mobile site that I'm building. My problem is that all of my pages are built as Mobile ASPX pages, but occasionally, I need to use controls which are not mobile. Most specifically, the...
1
by: santosh singh | last post by:
for mobile browser i used the following code : Response.ContentType = "application/vnd.wap.xhtml+xml"; Response.AppendHeader("Content-Disposition","attachment; filename=SailBig.jpg");...
7
by: cj2 | last post by:
I saw a MS demo a few years back where they developed a web page and the software automatically rendered it for different devices. Is this what I'm looking for? http://www.asp.net/mobile/ ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.