19 Comments

  • It's still one of the crappy bugs in the ASP.NET editor IMHO. Also when you include databinding statements in the strings of a html tag, it can't show the designer. MS should have solved this years ago.

  • Yep. It does suck :)

  • Thanks Guys , the above change from " to ' on an image tag helped me get back to the design view.



    Thanks again,



    Raj

  • cool ! I was having this problem too, thank you guys for posting the answer !!









    Erik


  • Hi,



    Yes, this is a weak bit of the IDE..



    In the above example, it may be better to use an image server control and set the Image URL in the page_load event. Only really works if the URL is static, won't work if an application setting is used to populate the ImageURL.



  • hi,

    Any one send me the solution

    veera.sekhar@inucom.com

  • Sekhar, it must be some other piece of code, I can't see anything wrong with it. And Please, don't flood the comments section, will ya?

    I would also advise you to try out the various newsgroups out there.

  • Thanks for this small but important information. Im finally able to get into my design view, though still using Dreamweaver to design.



    Best,

    Anders

  • I have the same problem of shekar:



    <body onload='javascript: footerFocus('<% = viewState.Item("footerFocus") %>')'>



    or



    <body onload="javascript: footerFocus('<% = viewState.Item("footerFocus") %>')">



    doesn't allow me to show the design mode...



    If someone have a solution...

  • Just get rid of quotes eclosing javascript, like this



    <body onload=javascript: footerFocus('<% = viewState.Item("footerFocus") %>')>

  • A little addition. Also get rid of all the spaces.

  • but what is the solution

  • i people thanks!!!!!! it's so stupid and i lost so time..lol

  • Thanks guys! the single quote thing has just made my day :)

  • You can also use Response.Write to output whatever is needed (you might need to double the quotes in some cases).



    <%

    Response.Write("<body onload='javascript: footerFocus('" & viewState.Item("footerFocus") & "')'>")

    %>

  • Still weird that I had to replace " with ' while the code example came from the web....makes you wonder how the creator managed it....oh well, problem solved....

  • Great Tip, thanks Roy!



    Sonu

  • How do you fix it for something like



    <asp:TemplateColumn HeaderText="Company" SortExpression="companyName">

    <ItemTemplate>

    <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.companyName") %>'>

    </asp:Label>

    </ItemTemplate>

    <EditItemTemplate>

    <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.companyName") %>' ID="Label3">

    </asp:Label>

    </EditItemTemplate>

    </asp:TemplateColumn>

    If you remove the single quotes and you get a different error message that tells you to put the item in single quotes.

  • Yet another "thank you".

    This solved my problem like a charm.

Comments have been disabled for this content.