By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,323 Members | 1,329 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,323 IT Pros & Developers. It's quick & easy.

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

P: n/a
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 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=""
<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
Share this Question
Share on Google+
1 Reply

P: n/a
Can somedy help me with this problem? Thanks!
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.