Results 1 to 3 of 3

Thread: Conversion to 2005 error

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2005
    Posts
    625

    Conversion to 2005 error

    This code in one of my asp.net files is rejected. It says
    "Cannot switch views. This end tag has no starting tag".
    <a has the squiggly underline. As you can see it DOES have an end tag.
    How can I turn off this kind of "error" checking.


    <a href="../cons/order/promo1.aspx">
    <asp:Image id="imgGroovy" runat="server" ImageUrl="./images/groovy.jpg"></asp:Image></CENTER>
    </a>

  2. #2
    Hyperactive Member kayos's Avatar
    Join Date
    Apr 2004
    Location
    Largo, Florida
    Posts
    306

    Re: Conversion to 2005 error

    take that </center> tag out of between the end of your asp:Image and the </a>


    If this post helps, please RATE MY POST!

    Using Visual Studio 2005 SE

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Conversion to 2005 error

    Dont use the obsolete <center> tag. Use either the css style ("ALIGN: center") or standard (align=center) property depending on your contol.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width