You need to use an <asp:Literal /> instead.  The Label emits a <SPAN> </SPAN> 
and that would not be good to put into the title.

When you use an <asp:Literal /> everything you put in the text goes in there 
raw.

And you still use it like literal.Text (literal being the name of the control 
in the ID="literal").

HTH.

Ben Miller

  ----- Original Message ----- 
  From: Usman Ghani 
  To: [email protected] 
  Sent: Sunday, December 26, 2004 5:34 AM
  Subject: RE: [AspNetAnyQuestionIsOk] Label.text= html code


  Yes I am trying to do something similar

    _____  

  From: Mahboob Ahmed [mailto:[EMAIL PROTECTED] 
  Sent: Saturday, December 25, 2004 10:43 AM
  To: [email protected]
  Subject: RE: [AspNetAnyQuestionIsOk] Label.text= html code




  hi,
  u can use this code
  here mytitle is field name which is in the data table

  <head><title><%=mytitle%></title>
  </head>


  ....................................................................

  >From: "Usman Ghani" <[EMAIL PROTECTED]>
  >Reply-To: [email protected]
  >To: <[email protected]>
  >Subject: [AspNetAnyQuestionIsOk] Label.text= html code
  >Date: Fri, 24 Dec 2004 21:13:31 +0300
  >
  >Hi All,
  >
  >
  >
  >I have a web page reply.aspx, I have a label control on it. Ok what I want
  >to do is that I want to read from a data table using a datareader and then
  >display the value in the label as html, I mean using asp script sytax. I
  >canot explain well here but it's like having an html code to be placed in
  >the text value of label. Reading from database not a problem but how it 
  >will
  >be inserted in the label as html code is something where I need help.
  >
  >
  >
  >Thanks,
  >
  >
  >
  >Usman
  >
  >
  >
  >[Non-text portions of this message have been removed]
  >

  _________________________________________________________________
  Express yourself instantly with MSN Messenger! Download today it's FREE! 
  http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/









  Yahoo! Groups Sponsor



  ADVERTISEMENT

  <http://us.ard.yahoo.com/SIG=1294kc0ov/M=295196.4901138.6071305.3001176/D=gr
  oups/S=1705006764:HM/EXP=1104049069/A=2128215/R=0/SIG=10se96mf6/*http:/compa
  nion.yahoo.com> click here



  <http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=
  :HM/A=2128215/rand=224541147> 



    _____  

  Yahoo! Groups Links

  *      To visit your group on the web, go to:
  http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
    
  *      To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
  <mailto:[EMAIL PROTECTED]
  e> 
    
  *      Your use of Yahoo! Groups is subject to the Yahoo!
  <http://docs.yahoo.com/info/terms/>  Terms of Service. 



  [Non-text portions of this message have been removed]


        Yahoo! Groups Sponsor 
         
        Get unlimited calls to

        U.S./Canada
       
       


------------------------------------------------------------------------------
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
      
    b.. To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]
      
    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to