472,950 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Help: Why <mobile:label> doesn't render HTML tag?

Hi,

I have a mobile form:
===
<body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm">
<mobile:Form id=Form1 runat="server">
<mobile:label runat="server" id="lblT" />
</mobile:Form>
</body>
===

In the code behind page, I have:
===
protected System.Web.UI.MobileControls.Form Form1;
protected System.Web.UI.MobileControls.Label lblT;

private void Page_Load(object sender, System.EventArgs e)
{
lblT.Text="<a href=\"/default.aspx\">default</a>";
}
===

But when I run the page, the mobile:label displays the source code of the hyperlink as:
<a href=\"/default.aspx\">default</a>

It seems that mobile:label doesn't render HTML tag.

Would you please tell me why mobile:label behave like this? Are there ways that can
allow mobile:label to render HTML tag properly?

Thank you

Hongbo
Dec 28 '05 #1
1 1831
because a label is for rendering text, not html controls. use a link, or generic

-- bruce (sqlwork.com)
"Hongbo" <ho****@goodoffices.com> wrote in message news:ul**************@TK2MSFTNGP11.phx.gbl...
Hi,

I have a mobile form:
===
<body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm">
<mobile:Form id=Form1 runat="server">
<mobile:label runat="server" id="lblT" />
</mobile:Form>
</body>
===

In the code behind page, I have:
===
protected System.Web.UI.MobileControls.Form Form1;
protected System.Web.UI.MobileControls.Label lblT;

private void Page_Load(object sender, System.EventArgs e)
{
lblT.Text="<a href=\"/default.aspx\">default</a>";
}
===

But when I run the page, the mobile:label displays the source code of the hyperlink as:
<a href=\"/default.aspx\">default</a>

It seems that mobile:label doesn't render HTML tag.

Would you please tell me why mobile:label behave like this? Are there ways that can
allow mobile:label to render HTML tag properly?

Thank you

Hongbo
Dec 28 '05 #2

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

Similar topics

11
by: Henrry Pires | last post by:
Hello to all I'm trying to make a webcontrol. I need to put on it 4 butons and one label but i have no idia how to make it. I already wrote some windowsformrs controls and it is very diferent...
2
by: rufpirat | last post by:
Hello I'm in the middle of trying to build an "AD phone book", and this being my first try at asp.net, I have a few questions that I hope some of you might be able to help with: 1. Is it...
2
plumpnation
by: plumpnation | last post by:
I have now got this bulky piece of script working, it reads the form correctly, which sends the request to the web service using SOAP. It conforms to their DTD and the web service then responds and...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
0
by: shamirza | last post by:
When was .NET announced? Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and...
4
by: bleachie | last post by:
Hi, My e-mail form seems to work fine in IE7 but doesn't work in FireFox2.0 - it just goes to the index.php instead of echoing the completed message. Hope someone can help me out. Form.html...
1
by: David C | last post by:
I have posted this question, which I think is very simple on several sites, and nobody seems to know what I am talking about. At my wits end here. Please help. I am putting together a site...
9
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hi, I downloaded the sample application that the Microsoft video ASPNETAJAXForWinMobile described but it doesn't work on my Windows Mobile 6 emulator. After enabling the script error reporting...
2
by: kheitmann | last post by:
OK, so I have a blog. I downloaded the "theme" from somewhere and have edited a few areas to suit my needs. There are different font themes within the page theme. Long story short, my "Text Posts"...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.