473,406 Members | 2,259 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,406 software developers and data experts.

Cant swith to Design view in ASPX file. Is this a bug?

Hello I have this code and It runs FINE
but vs.net 2003 doesnt let me switch to design mode

<asp:DataList id="datalistpartidos" runat="server" GridLines="Vertical"
CellPadding="3" BorderWidth="1px"
BorderColor="#999999" BackColor="White" BorderStyle="None">
<SelectedItemStyle Font-Bold="True" ForeColor="White"
BackColor="#008A8C"></SelectedItemStyle>
<AlternatingItemStyle
BackColor="Gainsboro"></AlternatingItemStyle>
<ItemStyle ForeColor="Black" BackColor="#EEEEEE"></ItemStyle>
<ItemTemplate>
<TABLE id="Table6" borderColor="navy" cellSpacing="0"
cellPadding="0" width="300" border="1">
<TR onClick="servOC(<%#
Container.DataItem("idpartido")%>,'/partidos.aspx?idpartido=<%#
Container.DataItem("idpartido")%>','#cad9ea')">
<TD borderColor="#ffffff"><%#
Container.DataItem("nombreequipo1")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("nombreequipo2")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("fecha")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("fechareal")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("horareal")%></TD>
<TD borderColor="#ffffff"></TD>
<TD borderColor="#ffffff"></TD>
</TR>
<TR style="display:none" id='ihtr<%#
Container.DataItem("idpartido")%>'>
<TD borderColor="#ffffff" colSpan="7"><iframe src=""
id='ihif<%# Container.DataItem("idpartido")%>' width="100%"></iframe></TD>
</TR>
</TABLE>
</ItemTemplate>
<FooterStyle ForeColor="Black" BackColor="#CCCCCC"></FooterStyle>
<HeaderStyle Font-Bold="True" ForeColor="White"
BackColor="#000084"></HeaderStyle>
</asp:DataList>

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/
Nov 19 '05 #1
7 1764
What does it say when you try and switch to design view?
Nov 19 '05 #2
Hi

I can confirm too that when a page contains dynamic binding phrases that
contain quotes - usually vs.net.2003 is having a hard time switching to
design view.

.......'<%# "..." %>'

Eric

"Luis Esteban Valencia" wrote:
Hello I have this code and It runs FINE
but vs.net 2003 doesnt let me switch to design mode

<asp:DataList id="datalistpartidos" runat="server" GridLines="Vertical"
CellPadding="3" BorderWidth="1px"
BorderColor="#999999" BackColor="White" BorderStyle="None">
<SelectedItemStyle Font-Bold="True" ForeColor="White"
BackColor="#008A8C"></SelectedItemStyle>
<AlternatingItemStyle
BackColor="Gainsboro"></AlternatingItemStyle>
<ItemStyle ForeColor="Black" BackColor="#EEEEEE"></ItemStyle>
<ItemTemplate>
<TABLE id="Table6" borderColor="navy" cellSpacing="0"
cellPadding="0" width="300" border="1">
<TR onClick="servOC(<%#
Container.DataItem("idpartido")%>,'/partidos.aspx?idpartido=<%#
Container.DataItem("idpartido")%>','#cad9ea')">
<TD borderColor="#ffffff"><%#
Container.DataItem("nombreequipo1")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("nombreequipo2")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("fecha")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("fechareal")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("horareal")%></TD>
<TD borderColor="#ffffff"></TD>
<TD borderColor="#ffffff"></TD>
</TR>
<TR style="display:none" id='ihtr<%#
Container.DataItem("idpartido")%>'>
<TD borderColor="#ffffff" colSpan="7"><iframe src=""
id='ihif<%# Container.DataItem("idpartido")%>' width="100%"></iframe></TD>
</TR>
</TABLE>
</ItemTemplate>
<FooterStyle ForeColor="Black" BackColor="#CCCCCC"></FooterStyle>
<HeaderStyle Font-Bold="True" ForeColor="White"
BackColor="#000084"></HeaderStyle>
</asp:DataList>

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/

Nov 19 '05 #3
Design Mode cant be opened. Different values of single quotes inside a block
'<% ... "value" ... %>'

This is spanish translation.

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/
"Scott Simons" <Scott.Simons.At.MealMagic.Com.Remove.This> escribió en el
mensaje news:E5**********************************@microsof t.com...
What does it say when you try and switch to design view?

Nov 19 '05 #4
WJ
By default, only .ASPX is needed for IIS to run it. However, for VS.Net to
open a .ASPX in "design" mode, not html mode, it requires code behind and
resource files of the .ASPX file. Unless you damaged the .ASPX file, but
likely not because you indicated that it is still working.

John
Nov 19 '05 #5
try this..

<asp:DataList id="datalistpartidos" runat="server" GridLines="Vertical"
CellPadding="3" BorderWidth="1px"
BorderColor="#999999" BackColor="White" BorderStyle="None">
<SelectedItemStyle Font-Bold="True" ForeColor="White"
BackColor="#008A8C"></SelectedItemStyle>
<AlternatingItemStyle BackColor="Gainsboro"></AlternatingItemStyle>
<ItemStyle ForeColor="Black" BackColor="#EEEEEE"></ItemStyle>
<ItemTemplate>
<TABLE id="Table6" borderColor="navy" cellSpacing="0" cellPadding="0"
width="300" border="1">
<TR
onClick='servOC("<%#Container.DataItem("idpartido" )%>","/partidos.aspx?idpartido=<%#Container.DataItem("idp artido")%>","#cad9ea")'>
<TD borderColor="#ffffff"><%#Container.DataItem("nombr eequipo1")%></TD>
<TD borderColor="#ffffff"><%#Container.DataItem("nombr eequipo2")%></TD>
<TD borderColor="#ffffff"><%#Container.DataItem("fecha ")%></TD>
<TD borderColor="#ffffff"><%#Container.DataItem("fecha real")%></TD>
<TD borderColor="#ffffff"><%#Container.DataItem("horar eal")%></TD>
<TD borderColor="#ffffff"></TD>
<TD borderColor="#ffffff"></TD>
</TR>
<TR style="display:none" id='ihtr<%#Container.DataItem("idpartido")%>'>
<TD borderColor="#ffffff" colSpan="7"><iframe src="" id='ihif<%#
Container.DataItem("idpartido")%>' width="100%"></iframe>
</TD>
</TR>
</TABLE>
</ItemTemplate>
<FooterStyle ForeColor="Black" BackColor="#CCCCCC"></FooterStyle>
<HeaderStyle Font-Bold="True" ForeColor="White"
BackColor="#000084"></HeaderStyle>
</asp:DataList>

"Luis Esteban Valencia" wrote:
Hello I have this code and It runs FINE
but vs.net 2003 doesnt let me switch to design mode

<asp:DataList id="datalistpartidos" runat="server" GridLines="Vertical"
CellPadding="3" BorderWidth="1px"
BorderColor="#999999" BackColor="White" BorderStyle="None">
<SelectedItemStyle Font-Bold="True" ForeColor="White"
BackColor="#008A8C"></SelectedItemStyle>
<AlternatingItemStyle
BackColor="Gainsboro"></AlternatingItemStyle>
<ItemStyle ForeColor="Black" BackColor="#EEEEEE"></ItemStyle>
<ItemTemplate>
<TABLE id="Table6" borderColor="navy" cellSpacing="0"
cellPadding="0" width="300" border="1">
<TR onClick="servOC(<%#
Container.DataItem("idpartido")%>,'/partidos.aspx?idpartido=<%#
Container.DataItem("idpartido")%>','#cad9ea')">
<TD borderColor="#ffffff"><%#
Container.DataItem("nombreequipo1")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("nombreequipo2")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("fecha")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("fechareal")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("horareal")%></TD>
<TD borderColor="#ffffff"></TD>
<TD borderColor="#ffffff"></TD>
</TR>
<TR style="display:none" id='ihtr<%#
Container.DataItem("idpartido")%>'>
<TD borderColor="#ffffff" colSpan="7"><iframe src=""
id='ihif<%# Container.DataItem("idpartido")%>' width="100%"></iframe></TD>
</TR>
</TABLE>
</ItemTemplate>
<FooterStyle ForeColor="Black" BackColor="#CCCCCC"></FooterStyle>
<HeaderStyle Font-Bold="True" ForeColor="White"
BackColor="#000084"></HeaderStyle>
</asp:DataList>

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/

Nov 19 '05 #6
Hi Luis,

Your problem might be here:

<TR onClick="servOC(<%#
Container.DataItem("idpartido")%>,'/partidos.aspx?idpartido=<%#
Container.DataItem("idpartido")%>','#cad9ea')">

The "idpartido" in the DataItem() is enclosed in quotes. But the entire
onClick code is also enclosed in quotes. So these would either need to be
""idpartido"" or 'idpartido' for it to work. I think. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Luis Esteban Valencia" <lu*******@haceb.com> wrote in message
news:O3*************@TK2MSFTNGP11.phx.gbl...
Hello I have this code and It runs FINE
but vs.net 2003 doesnt let me switch to design mode

<asp:DataList id="datalistpartidos" runat="server" GridLines="Vertical"
CellPadding="3" BorderWidth="1px"
BorderColor="#999999" BackColor="White" BorderStyle="None">
<SelectedItemStyle Font-Bold="True" ForeColor="White"
BackColor="#008A8C"></SelectedItemStyle>
<AlternatingItemStyle
BackColor="Gainsboro"></AlternatingItemStyle>
<ItemStyle ForeColor="Black" BackColor="#EEEEEE"></ItemStyle>
<ItemTemplate>
<TABLE id="Table6" borderColor="navy" cellSpacing="0"
cellPadding="0" width="300" border="1">
<TR onClick="servOC(<%#
Container.DataItem("idpartido")%>,'/partidos.aspx?idpartido=<%#
Container.DataItem("idpartido")%>','#cad9ea')">
<TD borderColor="#ffffff"><%#
Container.DataItem("nombreequipo1")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("nombreequipo2")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("fecha")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("fechareal")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("horareal")%></TD>
<TD borderColor="#ffffff"></TD>
<TD borderColor="#ffffff"></TD>
</TR>
<TR style="display:none" id='ihtr<%#
Container.DataItem("idpartido")%>'>
<TD borderColor="#ffffff" colSpan="7"><iframe src=""
id='ihif<%# Container.DataItem("idpartido")%>' width="100%"></iframe></TD>
</TR>
</TABLE>
</ItemTemplate>
<FooterStyle ForeColor="Black" BackColor="#CCCCCC"></FooterStyle> <HeaderStyle Font-Bold="True" ForeColor="White"
BackColor="#000084"></HeaderStyle>
</asp:DataList>

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/

Nov 19 '05 #7
eXCELENT

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/
"vinay" <vi***@discussions.microsoft.com> escribió en el mensaje
news:16**********************************@microsof t.com...
try this..

<asp:DataList id="datalistpartidos" runat="server" GridLines="Vertical"
CellPadding="3" BorderWidth="1px"
BorderColor="#999999" BackColor="White" BorderStyle="None">
<SelectedItemStyle Font-Bold="True" ForeColor="White"
BackColor="#008A8C"></SelectedItemStyle>
<AlternatingItemStyle BackColor="Gainsboro"></AlternatingItemStyle>
<ItemStyle ForeColor="Black" BackColor="#EEEEEE"></ItemStyle>
<ItemTemplate>
<TABLE id="Table6" borderColor="navy" cellSpacing="0" cellPadding="0"
width="300" border="1">
<TR
onClick='servOC("<%#Container.DataItem("idpartido" )%>","/partidos.aspx?idpar
tido=<%#Container.DataItem("idpartido")%>","#cad9e a")'> <TD borderColor="#ffffff"><%#Container.DataItem("nombr eequipo1")%></TD>
<TD borderColor="#ffffff"><%#Container.DataItem("nombr eequipo2")%></TD>
<TD borderColor="#ffffff"><%#Container.DataItem("fecha ")%></TD>
<TD borderColor="#ffffff"><%#Container.DataItem("fecha real")%></TD>
<TD borderColor="#ffffff"><%#Container.DataItem("horar eal")%></TD>
<TD borderColor="#ffffff"></TD>
<TD borderColor="#ffffff"></TD>
</TR>
<TR style="display:none" id='ihtr<%#Container.DataItem("idpartido")%>'>
<TD borderColor="#ffffff" colSpan="7"><iframe src="" id='ihif<%#
Container.DataItem("idpartido")%>' width="100%"></iframe>
</TD>
</TR>
</TABLE>
</ItemTemplate>
<FooterStyle ForeColor="Black" BackColor="#CCCCCC"></FooterStyle>
<HeaderStyle Font-Bold="True" ForeColor="White"
BackColor="#000084"></HeaderStyle>
</asp:DataList>

"Luis Esteban Valencia" wrote:
Hello I have this code and It runs FINE
but vs.net 2003 doesnt let me switch to design mode

<asp:DataList id="datalistpartidos" runat="server" GridLines="Vertical"
CellPadding="3" BorderWidth="1px"
BorderColor="#999999" BackColor="White" BorderStyle="None">
<SelectedItemStyle Font-Bold="True" ForeColor="White"
BackColor="#008A8C"></SelectedItemStyle>
<AlternatingItemStyle
BackColor="Gainsboro"></AlternatingItemStyle>
<ItemStyle ForeColor="Black" BackColor="#EEEEEE"></ItemStyle>
<ItemTemplate>
<TABLE id="Table6" borderColor="navy" cellSpacing="0"
cellPadding="0" width="300" border="1">
<TR onClick="servOC(<%#
Container.DataItem("idpartido")%>,'/partidos.aspx?idpartido=<%#
Container.DataItem("idpartido")%>','#cad9ea')">
<TD borderColor="#ffffff"><%#
Container.DataItem("nombreequipo1")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("nombreequipo2")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("fecha")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("fechareal")%></TD>
<TD borderColor="#ffffff"><%#
Container.DataItem("horareal")%></TD>
<TD borderColor="#ffffff"></TD>
<TD borderColor="#ffffff"></TD>
</TR>
<TR style="display:none" id='ihtr<%#
Container.DataItem("idpartido")%>'>
<TD borderColor="#ffffff" colSpan="7"><iframe src=""
id='ihif<%# Container.DataItem("idpartido")%>' width="100%"></iframe></TD> </TR>
</TABLE>
</ItemTemplate>
<FooterStyle ForeColor="Black" BackColor="#CCCCCC"></FooterStyle> <HeaderStyle Font-Bold="True" ForeColor="White"
BackColor="#000084"></HeaderStyle>
</asp:DataList>

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/

Nov 19 '05 #8

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

Similar topics

4
by: pmud | last post by:
Hi I have a website (ASP.NET project using C# ) which is already put up on the server. I need to make some modification to some web pages.So the project files were copied to the a different server...
2
by: Joe Ochinero | last post by:
I've been trying to view my .aspx pages in Design View, but I'm unable to find where to activate the tabs that allow you to toggle between HTML and Design View. Please Help!
7
by: Lian | last post by:
Hi every body I have a problem with accesses and visual studio. I've just installed XP and I can't get a connection with the Data base. I have this error and I don't know how to fix it The...
0
by: Tony Lewis | last post by:
I'm running IIS on a Windows 2k server and have just installed the .NET framework 1.1 so I can deploy ASP.NET applications on my server through .NET Studios. All my normal ASP applications run fine...
1
by: Nick | last post by:
Hi, I have asked this question in a few guises recently, and not had much response. But I dont think what I am asking is too obscure, so I am hoping I just need to rephrase. When a view is...
1
by: Donnie | last post by:
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 ...
17
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but...
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...
2
by: dotnetgal | last post by:
Hi I am new to ASP.Net.I have created a file system based web application.I tried to view it in browser.I can do so when i do http://localhost:portno/<project name>.However I cannot view it when...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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,...
0
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...

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.