Can't get away from: "Could not open in Design View. Quote values differently inside a '<% ... "value" ... %>' block."

I keep getting this error message when I try to switch to design view. This is the code that is causing it.

OnClick="javascript:void(0);ToggleRowDisplay(this,'row<%# DataBinder.Eval(Container.DataItem, "Equipment_ID") %>');"

When I take out this section I can go into design view without a problem.
Any ideas??
5/6/2004 5:11:21 PM 72751 articles. 3 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 57
Get it on Google Play
Get it on Apple App Store

is the word row has to be there?
mess with the best...die like the rest
5/7/2004 12:01:07 AM

Similar Artilces:

"Could not open in Design View. Quote values differently inside a '<% ... "value" ... %>' block." 1.1 2003 i am working on someone else's project ... (and not sure under what conditions it was created) for many of the .aspx pages , when i attempt to view in "design" mode, i receive message "Could not open in Design View. Quote values differently inside a '<% ... "value" ... %>' block." what could be going on? Typically this happens when you have double quotes inside double quotes. Try to use double quotes outside and single quotes inside. Also, if you have <% %> as an attribute value, try to enclose it in...

Could not open in design view. Quote values differently inside a '<%..."value"...%>' block
All i am trying to do is open the flash object inside an aspx page, but trying to pass the session("username") to it. I have the code and when i try to go into the design mode of my aspx form, it says the following: Could not open in design view. Quote values differently inside a '<%..."value"...%>' block <PARAM NAME="Movie" VALUE="GroupChat/GroupEngine.swf?LoginName=<%=Session("username")%>"><PARAM NAME="Src" VALUE="GroupChat/GroupEngine.swf?LoginName=<%=Session("username")%>"> Can you please tell me how can i pass my session("username") to the flash object....

Error: Could not open in Design view. Quote values differently inside a '<%.."value"...%>'block.
I have this code for my datagrid ----------------------------------------------- <asp:TemplateColumn HeaderText="Title" Visible="true" runat="server" SortExpression="title" > <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "title") %> </ItemTemplate> </asp:TemplateColumn> ------------------------------------------------------------------------- it just work fine and compile no error... but when I want to swtich from HTML view to Design View,...

Cound not open in design view.Quote values differently inside a '<% .."value" ...%>' block ????
I have datagrid with :<asp:TemplateColumn>      <ItemTemplate>       <a class=linkgray href="javascript:var win=open('AskItemID.aspx?ItemId=<%# Container.DataItem("ItemID")%>','_blank','status=yes,scrollbars=no,resizable=0')">Edit</a>      </ItemTemplate></asp:TemplateColumn>It occur above error message when i move to design mode ,not HTML modeCound not open in design view.Quote values differently inside a '<% .."value" ...%>' block ????How can i solv...

quote values differently inside a '<% ..."value" ...%>' block
Hi,I am using a databound ScheduleGeneral control, The hyperlink (shown in red) works fine for normal data,but if my data contains single quot(') within it, then the url eliminates charaters after that quot. For example, if Program= The Planet's Animals, then it returns "MaterialLib.aspx?id=The Planet" If I replace the outer enclosing quotes(ie.<a href='mycode') with double quote("), it works fine, but I get the error message "values differently inside a '<% ..."value" ...%>' block .Please HELP! Thanks in advance. **********************************...

Error:Could not Open in design View Quotes values Differently inside a '<% value %>' block
Hi , I am facing this problem when I am trying to use javascript . My code goes like this : text='> I have tried with double quotes , single qoutes ,, etc .. But can't find the solution ,, If i create a javascript function for opening the window then it gives error CS2016: ) Expected Can Anybody help me Out Thanks Poonam Try putting a \ in front of any single quotes in your javascript string. Thanks .. But Now I am not using JavaScript ,, I am just adding attribute  target=_blank .....

what's the different from "<page src="">" and "<page codeBehind="">"
what's the different from "<page src="">" and "<page codeBehind="">" Thank YOU how to make session' life longer? Thank You This very question was asked only 5 days ago. Searching the forums would have yielded the answer you require. However, see this thread. Steven BeyRecursion: see Recursion You can set a new value for the Session Timeout in your web.config file. Or, you can do it in a page through this property: Session.Timeout Note that if you choose the second method, the timeout will only be modified on this page,...

Why Response.Write("<script>"newWind.aspx','report','');</script>") not working?
I need to open a new web browser of url=newWind.aspx and tried the code below; Response.Write("<script>'newWind.aspx','report','');</script>")However nothing happens, what can I do to make it work? Try RegisterClientScriptBlock("OpenWin","<script language=javascript>'newWind.aspx','report','');</script>")I think that is the name of it...Also look at RegisterStartupScriptBlock (I think)MajorCats Thanks. But, it was same difference. Is there anything that blocks the new browser from showing up in the setting of IE or system?   &nbs...

How to escape '<' character in "string" of appSettings value="string'?
Pleae help. I am trying to figure out how to escape '<' and '>' in the string of the value attribute of appSetting element in the web.config file.Thanks!Bernie Try &lt; and &gt;Darrell Norton, MVPDarrell Norton's BlogPlease mark this post as answered if it helped you! Thanks! I got it right this time. BernieThanks!Bernie...

<img src='<%=PathPrefix + "Comm/Images/sp.gif" %>' height="8" width="20">- What is PathPrefix
<img src='<%=PathPrefix + "Comm/Images/sp.gif" %>' height="8" width="20"> What is PathPrefix ?-----------------------------------------------Please click Mark as Answer if this helped. PathPrefix is a public shared variable in the code behind file of this pageDo mark as answer if it helpsBest RegardsAli Sufyan ButtSoftware EngineerElectronic Solutions Pvt. Limited...

I'm getting an error using NavigateURL ='<%# Eval("Url") %>', it works when using NavigateURL="intro.aspx"
I'm getting an error using NavigateURL ='<%# Eval("Url") %>', it works when I use NavigateURL="intro.aspx" Server Error in '/orthoassist' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. Requested URL: /orthoassist/intro.aspx <asp:HyperLink runat="server" ID="hl1" Text=...

help with: BackColor='<%#iif((eval("timecode") = 1),"#993366","#993366") %>'
I have a panel and I wish to toggle its background color based on a databound value.  the expression returns all OK. Butit reutrns a string and it creates a casting error it returns "#993366" BackColor='<%#iif((eval("timecode") = 1),"#993366","#993366") %>' I know it is the declaration... something to do with the # in the <%# or ???   Hi That's the problem when you type it in there directly. It's a pain in the ass to debug/manage.Maybe you can take a look at this example. You add a function in your code-be...

Can I pass a parameter in here: Response.Write("<script language='Javascript'>'ReportUmpireGrading.aspx')</script>")
HelloI am using this line of code to start a page for my report but I now need to pass  string parameters to that new page being popped-up. Response.Write("<script language='Javascript'>'ReportUmpireGrading.aspx')</script>")Can I do it?ThanksI think, therefore I am Is this what you are after??? Response.Write("<script language='Javascript'>'ReportUmpireGrading.aspx?q" & asdf & "&e=" & sdfg &"')</script>") | Twitter epascarello | LinkedIn Response.Write is evil. What A1ien51 has written is correct...

How to get XML attribute value from smart tag e.g '<thistag value = "xyz" />'
Hi all, I am still new in C# xml progamming.... I will like to retrieve the values of an xml tag attibutes with multiple start/abrreviated tags.....  E.g..... My string XML looks like  the following..... : <root> <persons>    <person name = 'name1' age='21'/>   <person name = 'name2 ' age='22'/>     <person name = 'name3' age='23'/>   </persons> </root> I want to loop through all person tag and  retrieve the name a...

Web resources about - Can't get away from: "Could not open in Design View. Quote values differently inside a '<% ... "value" ... %>' block." -

Resources last updated: 1/16/2016 6:28:07 PM