473,397 Members | 1,985 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,397 software developers and data experts.

Design View cause Vistual Studio to crash

I have a default page thet causes Visual Studio to crash when opening it in
design view. I have narrowed it down to the template colum but have no idea
how to prevent this happening. The page compliles and functions correctly.

Here is the ASPX code
<%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="false"
Inherits="OCS.DefaultPage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Offce Coffee Order System</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<LINK href="ocs.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<table cellSpacing="2" cellPadding="2" width="740" border="0">
<tr>
<td width="5%"> </td>
<td class="PropGroup">Office Coffee Product Selection
</td>
</tr>
<tr>
<td> </td>
<td class="PropGroup"><b>Client: </b>
<asp:label id="NameIs" Runat="server"></asp:label></td>
</tr>
<tr>
<td> </td>
<td>
<form id="Form1" method="post" runat="server">
<p class="PropGroup">Please select product to order</p>
<asp:datagrid id="ProductsGrid" Runat="server" CssClass="grid"
AutoGenerateColumns="False" CellPadding="2"
BorderWidth="1px">
<FooterStyle CssClass="PropGroup"></FooterStyle>
<AlternatingItemStyle CssClass="gridalternate"></AlternatingItemStyle>
<ItemStyle CssClass="griditem"></ItemStyle>
<HeaderStyle CssClass="PropGroup"></HeaderStyle>
<Columns>
<asp:BoundColumn Visible="False"
DataField="ProductID"></asp:BoundColumn>
<asp:BoundColumn DataField="Description" HeaderText="Product">
<HeaderStyle Width="150px"></HeaderStyle>
</asp:BoundColumn>
<asp:TemplateColumn>
<HeaderStyle Width="50px"></HeaderStyle>
<HeaderTemplate>
<u>Order</u>
</HeaderTemplate>
<ItemTemplate>
<%# setOrder (DataBinder.Eval (Container.DataItem, "ProductID")) %>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>
</form>
</td>
</tr>
<tr>
<td> </td>
<td><asp:label id="Output" Runat="server"></asp:label></td>
</tr>
<tr align="center">
<td colSpan="2"><br>
<hr align="center" width="98%" noShade SIZE="1">
<span class="copywright">Copyright © 2004 </span><SPAN
class="copywright"> Office Coffee Systems Design by <a
href="http://www.plum.co.nz">Plum Software Ltd</a>
</SPAN>
<P></P>
</td>
</tr>
</table>
</body>
</HTML>

and here is the function called in the template column
public string setOrder (object ProductID)
{
return "<a href=\"Order.aspx?ProductID=" + ProductID.ToString()+ "\">Add
to basket</a>";
}

any ideas as to what to do?
Nov 19 '05 #1
1 1673
Hi Tim,

In case in helps, your code doesn't crash on my system.

You might want to reinstall VS.NET or call Microsoft Support in case they've
seen this before.

Ken
"Timothy Elvidge" <Ti************@discussions.microsoft.com> wrote in
message news:39**********************************@microsof t.com...
I have a default page thet causes Visual Studio to crash when opening it
in
design view. I have narrowed it down to the template colum but have no
idea
how to prevent this happening. The page compliles and functions correctly.

Here is the ASPX code
<%@ Page language="c#" Codebehind="default.aspx.cs"
AutoEventWireup="false"
Inherits="OCS.DefaultPage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Offce Coffee Order System</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<LINK href="ocs.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<table cellSpacing="2" cellPadding="2" width="740" border="0">
<tr>
<td width="5%"> </td>
<td class="PropGroup">Office Coffee Product Selection
</td>
</tr>
<tr>
<td> </td>
<td class="PropGroup"><b>Client: </b>
<asp:label id="NameIs" Runat="server"></asp:label></td>
</tr>
<tr>
<td> </td>
<td>
<form id="Form1" method="post" runat="server">
<p class="PropGroup">Please select product to order</p>
<asp:datagrid id="ProductsGrid" Runat="server" CssClass="grid"
AutoGenerateColumns="False" CellPadding="2"
BorderWidth="1px">
<FooterStyle CssClass="PropGroup"></FooterStyle>
<AlternatingItemStyle CssClass="gridalternate"></AlternatingItemStyle>
<ItemStyle CssClass="griditem"></ItemStyle>
<HeaderStyle CssClass="PropGroup"></HeaderStyle>
<Columns>
<asp:BoundColumn Visible="False"
DataField="ProductID"></asp:BoundColumn>
<asp:BoundColumn DataField="Description" HeaderText="Product">
<HeaderStyle Width="150px"></HeaderStyle>
</asp:BoundColumn>
<asp:TemplateColumn>
<HeaderStyle Width="50px"></HeaderStyle>
<HeaderTemplate>
<u>Order</u>
</HeaderTemplate>
<ItemTemplate>
<%# setOrder (DataBinder.Eval (Container.DataItem, "ProductID")) %>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>
</form>
</td>
</tr>
<tr>
<td> </td>
<td><asp:label id="Output" Runat="server"></asp:label></td>
</tr>
<tr align="center">
<td colSpan="2"><br>
<hr align="center" width="98%" noShade SIZE="1">
<span class="copywright">Copyright © 2004 </span><SPAN
class="copywright"> Office Coffee Systems Design by <a
href="http://www.plum.co.nz">Plum Software Ltd</a>
</SPAN>
<P></P>
</td>
</tr>
</table>
</body>
</HTML>

and here is the function called in the template column
public string setOrder (object ProductID)
{
return "<a href=\"Order.aspx?ProductID=" + ProductID.ToString()+ "\">Add
to basket</a>";
}

any ideas as to what to do?


Nov 19 '05 #2

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

Similar topics

2
by: Ray | last post by:
Stop me if you've heard this, but I am running Access 2002 and all of a sudden, if I design a particular form (it's been working fine for ages), Access crashes rather than open it in design view. ...
12
by: Raed Sawalha | last post by:
I have the following table which i can not switcha to design view error message said Could not open in Design view. Quote values differently inside a '<% ...."value"... %>' block. and the...
4
by: Nathan Sokalski | last post by:
When editing an ASP Table, Visual Studio does not allow me to edit it in Design View. This makes it harder to add elements, because I must add every element either by using Design View to create...
6
by: M | last post by:
I binding controls to a dataset at design time. I find the checkboxs will cause the program crash when one of these databinding fields is dbnull. The only way for me is not set databindings for...
8
by: Brett | last post by:
I have a form with a Form1_Load() Subprocedure and no other code. For some reason, the design view does not come up. If I add a new form, the design view does come up. The form does appear when...
2
by: youngster94 | last post by:
I was dragging a third party component from the toolbar to drop on form1, when for some reason Visual Studio gave me an unrecoverable error and told me to save my work and restart VS. After...
9
by: Reidar | last post by:
Is it possible to have the source in one window and the design in another window and perhaps the code in a third window? reidarT
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
4
by: Ken Fine | last post by:
I've been living with a frustrating issue with VS.NET for some months now and I need to figure out what the problem is. Hopefully someone has run into the same issue and can suggest a fix. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.