Server tag is not well formed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kamiii
    New Member
    • Aug 2012
    • 8

    Server tag is not well formed

    please tell me how can I handle this error when I am using this code :



    <asp:ImageButto n ID="btnDelete" runat="server" OnClick="btnDel ete_Click" ImageUrl="~/Images/icon/deletebuttonoff .png"
    CausesValidatio n="False" OnClientClick= return confirm('are u sure ?') />
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    You need quotes around your OnClientClick event:

    <asp:ImageButto n ID="btnDelete" runat="server" OnClick="btnDel ete_Click" ImageUrl="~/Images/icon/deletebuttonoff .png"
    CausesValidatio n="False" OnClientClick=" return confirm('are u sure ?')" />

    Comment

    • ariful alam
      New Member
      • Jan 2011
      • 185

      #3
      I am agree to Frinavale....

      in every server-side tag, every attribute value must be in between ("") double quotes.

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Please see this thread: Alert with "yes" and "now" as button text for help with your second question.

        -Frinny

        Comment

        Working...