470,612 Members | 2,219 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,612 developers. It's quick & easy.

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.

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

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

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

i try:
{-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

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

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by Philipp Lenssen | last post: by
7 posts views Thread by BBFrost | last post: by
2 posts views Thread by SJ | last post: by
11 posts views Thread by Keith | last post: by
4 posts views Thread by InnoCreate | last post: by
1 post views Thread by =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post: by
7 posts views Thread by cj2 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.