473,503 Members | 12,003 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visual Studio .Net webform designer question

Hi,

I have the following template column inside a datagrid:

<asp:TemplateColumn>
<ItemTemplate>
<a href="#" onclick="window.open('Respond.aspx?CaseNumber=<%#
Databinder.eval(container.dataitem, "CaseNumber") %>','newwin')">Respond</a>
</ItemTemplate>
</asp:TemplateColumn>

This is fine in VS.Net webform designer's HTML View. But when I try to
switch to Design mode I got the following error message:

Could not open in Design View. Quote values differently inside a '<%
...."value"... %>' block.

The template column actually works at run time, I can click on it and a new
window pops up.

Any Ideas?

TIA
Nov 18 '05 #1
1 1122
This is an annoyance...try:

onclick='<%# "window.open('Respond.aspx?CaseNumber=" +
Databinder.eval(container.dataitem, "CaseNumber") + "','newwin')"%>'>

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Ed Chiu" <Ed****@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
Hi,

I have the following template column inside a datagrid:

<asp:TemplateColumn>
<ItemTemplate>
<a href="#" onclick="window.open('Respond.aspx?CaseNumber=<%#
Databinder.eval(container.dataitem, "CaseNumber") %>','newwin')">Respond</a> </ItemTemplate>
</asp:TemplateColumn>

This is fine in VS.Net webform designer's HTML View. But when I try to
switch to Design mode I got the following error message:

Could not open in Design View. Quote values differently inside a '<%
..."value"... %>' block.

The template column actually works at run time, I can click on it and a new window pops up.

Any Ideas?

TIA

Nov 18 '05 #2

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

Similar topics

6
2083
by: VR | last post by:
Hi, I read about Master Pages in ASP.Net 2.0 and after implementing some WinForms Visual Inheritance I tryed it with WebForms (let's say .aspx pages, my MasterPage does not have a form tag itself...
8
6252
by: WT | last post by:
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS
1
2320
by: Nathan Sokalski | last post by:
Visual Studio 2005 unexpectedly stopped generating the *.designer.vb files for *.aspx and *.ascx files. After a few days of frustration trying to fix this, I noticed that it had the following...
4
2624
by: Goran Djuranovic | last post by:
Hi all, I am experiencing a strange thing happening with a "designer.vb" page. Controls I manually declare in this page are automatically deleted after I drop another control on a ".aspx" page. -...
0
7067
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
7264
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
7316
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
7449
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
5562
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
4992
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
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
371
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.