Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > Custom Attributes ignored

Reply
Thread Tools

Custom Attributes ignored

 
 
osigurdson
Guest
Posts: n/a
 
      05-09-2004
I am using vs.net 2003 and the openwave browser emulator 6.2.2. I have,
what I assume to be a fairly simple problem in that I would like to
constrain a users input to be in the format NN.NN where N is a numeric
digit.

I have set allowCustomAttributes="True" in web.config and I also set up a
device filter as follows:

<filter name="isUP6x" compare="Type" argument="Openwave 6.x Browser" />

I know that this filter is working, since the following aspx code renders
correctly in the emulator (i.e the this is a up6 browser is shown in the
emulator).

<mobile:TextBox id="TextBox2" runat="server" Alignment="Left">
<DeviceSpecific>
<Choice Filter="isUP6x" Text="this is a up6 browser"></Choice>
<Choice Text="Default"></Choice>
</DeviceSpecific>
</mobile:TextBox>

However, when I attempt to add certain attributes "style" or "format" which
are supported by the openwave browser, they appear to be stripped from the
output. For example:
<mobile:TextBox id="TextBox2" runat="server" Alignment="Left">
<DeviceSpecific>
<Choice Filter="isUP6x" Text="this is a up6 browser"
style="-wap-input-format:NN\.NN"></Choice>
<Choice Text="Default"></Choice>
</DeviceSpecific>
</mobile:TextBox>

In this case, the style element is not included in the input. I have tried
other attributes to see what is going on and certain ones will work. For
example accesskey="x" will not be stripped out.

How can I get asp.net to include all attributes that I specify in the output
and not only the ones that it sort of pre-approves of? I can get around
this by custom authoring a control and simply writing out the raw text, but
this seems to be the wrong direction.

Thanks in advance for any help that can be offerred.
owen


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
class attributes & data attributes james_027 Python 2 06-20-2007 03:12 PM
WebControl.Attributes.Add and custom attributes P4trykx ASP .Net 2 01-31-2007 04:33 PM
Parse reserved attributes as normal attributes Max XML 1 09-22-2006 12:04 PM
custom error page in webconfig is sometimes ignored on errors David Bartosik - MS MVP ASP .Net 0 06-21-2004 07:16 PM
Custom TextBox with custom attributes and properties question John Wright ASP .Net Building Controls 1 03-01-2004 02:01 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57