Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 11th, 2004, 11:00 AM
Authorized User
 
Join Date: Aug 2004
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default roles.aspx error

Hello,

the roles.aspx can't be viewed by vs.net designer. when I try to view it. I got a message "Couldn't Open in design view. Quote values differently inside a '<%..."Value" ...%> block."
what's this?
Thanks
marenela

 
Old September 12th, 2004, 08:25 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You made a mistake with your quotes, just like it says. Or else you made another mistake related to a data binding expression.

Eric
 
Old September 13th, 2004, 02:32 AM
Authorized User
 
Join Date: Oct 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Marenela,
I had the same problem. You have to replace the outer double quotes with single quotes:
<a href='EditRole.aspx?RoleID=<%# DataBinder.Eval(Container.DataItem, "RoleID") %>'>
Nigel

 
Old September 13th, 2004, 02:50 AM
Authorized User
 
Join Date: Aug 2004
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Nigel I got it.
Marenela

 
Old September 13th, 2004, 02:39 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That shouldn't be necessary, but it's great if it fixes your problem.

Anything inside the data-binding brackets, <% %>, is only seen on the server, and the result is sent to the browser. It's not an error to use quotes like this:

<a href="EditRole.aspx?RoleID=<%# DataBinder.Eval(Container.DataItem, "RoleID") %>">

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
error in web.config when using roles hertendreef ASP.NET 2.0 Professional 2 March 8th, 2008 05:47 AM
Error in AddEditArticle.aspx learningASP BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 May 31st, 2007 08:15 PM
DataList <a Href> Question in Roles.aspx bekim BOOK: ASP.NET Website Programming Problem-Design-Solution 5 October 5th, 2004 02:54 PM
Displaying roles.aspx in design view nigelhamilton BOOK: ASP.NET Website Programming Problem-Design-Solution 6 September 3rd, 2004 09:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.