|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Help: Why <mobile:label> doesn't render HTML tag?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 because a label is for rendering text, not html controls. use a link, or generic
-- bruce (sqlwork.com) "Hongbo" <hon***@goodoffices.com> wrote in message news:ulrupA8CGHA.4016@TK2MSFTNGP11.phx.gbl... I have a mobile form:Hi, === <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
Other interesting topics
Resources and class libraries
ViewState: why? Nested asp.net application Allow multiple image swap onmouseover What caused the postback? Basic formatting for HTML in ASP.NET 1.1 ? Access to a HiddenFiled in a Content control from javaScript masking url in datagrid hyperlink column in status bar Scrollbar in gridview Erro no start pag |
|||||||||||||||||||||||