473,486 Members | 2,429 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help: Could not open aspx page in Design View

Hello
I'm receiving the following error message when I try to view an aspx page in Design view
"Could not open in Design View. Quote values differently inside a '<%... "value" ... %>' block

Below is the html in the page using the <%..."value" ...%> syntax

<ItemTemplate><tr><td style="background:white;font-weight:bold;font-style:italic;" width="20%"><%# DataBinder.Eval(Container, "DataItem.ReportName") %></td><td style="background:white;" width="60%"><%# DataBinder.Eval(Container, "DataItem.Description") %></td><td style="background:white;" width="10%"><%# DataBinder.Eval(Container, "DataItem.First_Name") %><%# DataBinder.Eval(Container, "DataItem.Last_Name") %></td><td width="10%"><a href="#" onclick="showReport(<%# DataBinder.Eval(Container, "DataItem.ReportID") %>);">view</a> |
<a href="..\CustomReportMaker.aspx?id=<%# DataBinder.Eval(Container, "DataItem.ReportID") %>&mode=edit">edit</a></td></tr></ItemTemplate><AlternatingItemTemplate><tr><td style="background:#E4EBF5;font-weight:bold;font-style:italic;" width="20%"><%# DataBinder.Eval(Container, "DataItem.ReportName") %></td><td style="background:#E4EBF5;" width="60%"><%# DataBinder.Eval(Container, "DataItem.Description") %></td><td style="background:#E4EBF5;" width="10%"><%# DataBinder.Eval(Container, "DataItem.First_Name") %><%# DataBinder.Eval(Container, "DataItem.Last_Name") %></td><td width="10%"><a href="#" onclick="showReport(<%# DataBinder.Eval(Container, "DataItem.ReportID") %>);">view</a> |
<a href="..\CustomReportMaker.aspx?id=<%# DataBinder.Eval(Container, "DataItem.ReportID") %>&mode=edit">edit</a></td></tr></AlternatingItemTemplate

--------------------------------------------------------------------------------

Does anyone know how to fix this error? Maybe I'm missing something obvious
Thanks for any help or suggestions

Donni

Nov 18 '05 #1
1 1858
Hmmm...

Looking at the following line:
<a href="#" onclick="showReport(<%# DataBinder.Eval(Container,
"DataItem.ReportID") %>);">view</a>

You should single quote the onclick='showReport(<%#
DataBinder.Eval(Container,"DataItem.ReportID")%>)'

and any other place you use the same; If you have any Text="<%#
DataBinder.........%>" you will also want to replace those double quotes
with single quotes: Text = '<%# DataBinder........%>'

You also have some a href="" with the DataBinder encapsulated within them.
You'll need to replace the double quotes with single quotes there as well.

Hope this helps.
David Young

"Donnie" <an*******@discussions.microsoft.com> wrote in message
news:54**********************************@microsof t.com...
Hello,
I'm receiving the following error message when I try to view an aspx page in Design view: "Could not open in Design View. Quote values differently inside a '<%... "value" ... %>' block"
Below is the html in the page using the <%..."value" ...%> syntax:

<ItemTemplate><tr><td style="background:white;font-weight:bold;font-style:italic;" width="20%"><%#
DataBinder.Eval(Container, "DataItem.ReportName") %></td><td
style="background:white;" width="60%"><%# DataBinder.Eval(Container,
"DataItem.Description") %></td><td style="background:white;" width="10%"><%#
DataBinder.Eval(Container, "DataItem.First_Name") %><%#
DataBinder.Eval(Container, "DataItem.Last_Name") %></td><td width="10%"><a
href="#" onclick="showReport(<%# DataBinder.Eval(Container,
"DataItem.ReportID") %>);">view</a> | <a href="..\CustomReportMaker.aspx?id=<%# DataBinder.Eval(Container, "DataItem.ReportID")
%>&mode=edit">edit</a></td></tr></ItemTemplate><AlternatingItemTemplate><tr>
<td style="background:#E4EBF5;font-weight:bold;font-style:italic;"
width="20%"><%# DataBinder.Eval(Container, "DataItem.ReportName") %></td><td
style="background:#E4EBF5;" width="60%"><%# DataBinder.Eval(Container,
"DataItem.Description") %></td><td style="background:#E4EBF5;"
width="10%"><%# DataBinder.Eval(Container, "DataItem.First_Name") %><%#
DataBinder.Eval(Container, "DataItem.Last_Name") %></td><td width="10%"><a
href="#" onclick="showReport(<%# DataBinder.Eval(Container,
"DataItem.ReportID") %>);">view</a> | <a href="..\CustomReportMaker.aspx?id=<%# DataBinder.Eval(Container, "DataItem.ReportID")
%>&mode=edit">edit</a></td></tr></AlternatingItemTemplate>
-------------------------------------------------------------------------- -------
Does anyone know how to fix this error? Maybe I'm missing something obvious. Thanks for any help or suggestions.

Donnie

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
14800
by: Thue Tuxen Sørensen | last post by:
Hi everybody ! I´m maintaining a large intranet (approx 10000 concurrent users) running on one IIS box and one DB box with sqlserver 2000. Currently there is 2,5 GB Ram, 1 1400 mhz cpu and 2...
3
1618
by: Justnew | last post by:
Hei All Can some body help me here: I have a database name Customers, I a trying to connect to SQL server through vb.net using asp.net webform. I want to connect to the server programatically...
2
2821
by: Alex | last post by:
Hi all, I'm writing a small web application which searches a database based on a date field, and populates a datagrid control with the results. The datagrid control has selection buttons added...
2
1574
by: Nicky | last post by:
hey, all This is a piece of code in my DataGrid, I just want to show a link in this column. So I do it like this: <asp:TemplateColumn HeaderText="De-active"> <ItemTemplate> <a...
1
2208
by: billy | last post by:
Ok, here's the situation... I have a user control that contains two textboxes (one for a from date/time and one for a to date/time) and two image buttons. The user control itself is supposed to...
53
4594
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code,...
0
5518
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
13
3512
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
9
2319
by: Jonathan Wood | last post by:
I've spent days trying to come up with a solution. I'd appreciate it if anyone can help. My site requires all users to log on. There are three different roles of users, and each user type will...
0
7105
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7132
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7180
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7341
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5439
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4870
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4564
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
266
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.