473,403 Members | 2,183 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Can't switch to Design View in VS.Net 2003

I've a repeater and here is a piece of HTML when I use, I can't switch back
to Design view:
<a href=default.aspx?id=<%#container.dataitem("id")%> Some Link</a>

I get this error message:
Could not open in design view. Place quotes around a '<% %>' used as an
attribute value or within a <SELECT> element.

well, actually I used <% %> as an attribute value, why I shouldn't?
would you suggest an alternative?
Nov 18 '05 #1
2 1619
Try placing quotes around <% %> :-)
Like this:
<a href='default.aspx?id=<%#container.dataitem("id")% >'>Some Link</a>

Tomas Petricek
Microsoft C# MVP

-----Original Message-----
From: Saber [mailto:saber[--AT--]maghalat.com]
Posted At: Saturday, July 31, 2004 11:29 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: Can't switch to Design View in VS.Net 2003
Subject: Can't switch to Design View in VS.Net 2003

I've a repeater and here is a piece of HTML when I use, I can't switch
back
to Design view:
<a href=default.aspx?id=<%#container.dataitem("id")%> Some Link</a>

I get this error message:
Could not open in design view. Place quotes around a '<% %>' used as an
attribute value or within a <SELECT> element.

well, actually I used <% %> as an attribute value, why I shouldn't?
would you suggest an alternative?
Nov 18 '05 #2
Thanks dear MVP :)
sorry for such simple question!

"Tomas Petricek" <to***@eeeksoft.net> wrote in message
news:Og*************@TK2MSFTNGP09.phx.gbl...
Try placing quotes around <% %> :-)
Like this:
<a href='default.aspx?id=<%#container.dataitem("id")% >'>Some Link</a>

Tomas Petricek
Microsoft C# MVP

Nov 18 '05 #3

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

Similar topics

4
by: Jacobo Rodriguez Villar | last post by:
Hello, I have two problems with design view in VStudio 2003: First, if I close a solution with a form in design view, next time that I want start the vstudio, it hangs up before loading the...
1
by: rt | last post by:
hi, iam using vs 2003 ,one of my .aspx all my connections,datadapter,command objects in Design view are missing????? i closed and reopen also, but there is no redline in code editor. i cant...
7
by: chrisn | last post by:
Do real developers use the design view? Thought it would be interesting to start a debate on this subject. According to all the MCP materials (yes, I know a bit mickey mouse), the design view...
4
by: anton.hopen | last post by:
ASP.NET 2.0 master pages are great. However, I want to edit an ASPX page in FrontPage for aesthetic styling reasons. The ASPX page is linked to a master page so it naturally has a...
6
by: Col | last post by:
Hi - I'm working in a database that someone else created. They set up the switchboard so that it can't be minimized nor can you switch to design view. It's been a hassle because I'm testing stuff...
7
by: zwasdl | last post by:
When I swtich to design view from data view, the query results are lost, and I have to run again to get it. Is there an option in access to keep the data when I switching views? I know I can copy...
3
by: prakashwadhwani | last post by:
When my application starts 2 toolbars still remain open 1) Form View and 2) Formatting (Form/Report) Toolbar Also ... Access's default Menu-Bar also remains open. How to switch it off at...
12
by: | last post by:
Is it fine to call another method from Switch? Eg. Switch (stringVar) { case ("a"): somVar = "whatever"; Another_Method(); //call another method return;
8
by: mlwerth | last post by:
Dear Access Group: This is the most basic and most embarrassing of questions, but I cannot find where to change the data type of a text field that I have in Access 2003 to a number field. I've...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.