Moving label option: Error Creating Control - my labelThe server tag is not well

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • priyasomu
    New Member
    • Jul 2012
    • 1

    Moving label option: Error Creating Control - my labelThe server tag is not well

    I tried to move label option in asp.net 2008 version but I cant..I gave this code in html part:
    Code:
    <asp:Label ID ="my label" runat="server" style="position:absolute;display:block;" </asp:label>
    But I am getting message as Error Creating Control - my label The server tag is not well formed.
    Last edited by Frinavale; Jul 27 '12, 01:24 PM. Reason: Fixed some grammar and added code tags.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    You are missing the closing >.

    You have:
    Code:
    <asp:Label ID ="my label" runat="server" style="position:absolute;display:block;" </asp:label>
    It should be:
    Code:
    <asp:Label ID ="my label" runat="server" style="position:absolute;display:block;"> </asp:label>
    -Frinny

    Comment

    Working...