473,385 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 1863
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"...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.