List Info

Thread: problems emitting HTML coding ...




problems emitting HTML coding ...
user name
2007-01-08 13:46:24
I testing something with a mobile webform. I am trying to
test whether I
can emit a table.  So I dropped a label on the form and I
wanted to set
the text of the label to my code.  Unfortunatley, it is HTML
Encoding it
(apparently), because it is converting the < to &lt
and the > to &gt...
so .. any ideas how I can do this? I thought I had done this
before, but
can't remember how.

 

String str = "<table width=100 border
=0><tr><td>test</td><td> another
value </td><tr><td>line
2</td><td> line 2
value</td></tr></table>";

        lblToday.Text = str;

 

Stacey 

 


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

problems emitting HTML coding ...
user name
2007-01-08 13:54:08
Don't use a label, use a literal.

Jacob Mattison
Web Developer
Johnson & Wales University

> -----Original Message-----

> I testing something with a mobile webform. I am trying
to 
> test whether I can emit a table.  So I dropped a label
on the 
> form and I wanted to set the text of the label to my
code.  
> Unfortunatley, it is HTML Encoding it (apparently),
because 
> it is converting the < to &lt and the > to
&gt... so .. any 
> ideas how I can do this? I thought I had done this
before, 
> but can't remember how.

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

problems emitting HTML coding ...
user name
2007-01-08 14:09:43
Unless I am missing something the asp:literal is not valid
on a mobile
control.

Thanks.
 
Stacey
-----Original Message-----
From: Discussion of building .NET applications targeted for
the Web
[mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of Jacob Mattison
Sent: Monday, January 08, 2007 8:54 AM
To: DOTNET-WEBDISCUSS.DEVELOP.COM
Subject: Re: [DOTNET-WEB] problems emitting HTML coding ...

Don't use a label, use a literal.

Jacob Mattison
Web Developer
Johnson & Wales University

> -----Original Message-----

> I testing something with a mobile webform. I am trying
to 
> test whether I can emit a table.  So I dropped a label
on the 
> form and I wanted to set the text of the label to my
code.  
> Unfortunatley, it is HTML Encoding it (apparently),
because 
> it is converting the < to &lt and the > to
&gt... so .. any 
> ideas how I can do this? I thought I had done this
before, 
> but can't remember how.

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

problems emitting HTML coding ...
user name
2007-01-08 14:25:03
Ah, yes. Sorry about that.  I think you want to use a
TextView control
in that environment.

Jacob

> -----Original Message-----

> 
> 
> Unless I am missing something the asp:literal is not
valid on 
> a mobile control.
> 
> Thanks.
>  
> Stacey
> -----Original Message-----
> From: Discussion of building .NET applications targeted
for 
> the Web [mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of 
> Jacob Mattison
> Sent: Monday, January 08, 2007 8:54 AM
> To: DOTNET-WEBDISCUSS.DEVELOP.COM
> Subject: Re: [DOTNET-WEB] problems emitting HTML coding
...
> 
> Don't use a label, use a literal.

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )