I spent a few hours trying to figure out this issue and I narrowed it down to VS 2005 having a problems with CSS.
In a project I started recently I have an ASP.NET page that anytime I go into design mode and drop a control on the page VS 2005 will freeze with devenv going to 100% and sometimesy VS 2005 crashes if it does not I have to kill the devenv process.
This happens anytime I go to design view or drop a control on the page. I found that when I removed my references to my .css file the problem stopped and I could add controls and go into design view. Then if I add my css link back in the IDE freezes again.
This code is no different that what I would have done in VS 2003. Can anyone help me out on this issue?
Thank you,
Patrick
Here is the HTML
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FinancialEval.aspx.cs" Inherits="IntranetForms.Financials.FinancialEval" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Financial Evaluation Request</title>
<link href="../RequestFormsStyles.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../SpellCheck/spell.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div id="fMainBodySecion" runat="server">
<span class="fLargeCentered"> Financial Evaluation Request</span>
<span class="fHorizontalLine"></span>
<br /><br />
<div class="fEntrySection">
<span class="fNoValidatorSpace"></span>
<span class="fColHeaders">Your Name</span>
<span class="fNoValidatorSpace"></span>
<span class="fColHeaders">Your Email Address</span>
<br />
<asp:RequiredFieldValidator ID="ValYourName" CssClass="fValidatorAsterisk" runat="server" ControlToValidate="txtYourName" ErrorMessage="Enter Your Name">*</asp:RequiredFieldValidator>
<asp:TextBox ID="txtYourName" runat="server" CssClass="fTxtBoxLarge"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" CssClass="fValidatorAsterisk" runat="server" ControlToValidate="txtYourEmail" ErrorMessage="Your email address is not valid" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
<asp:TextBox ID="txtYourEmail" runat="server" CssClass="fTxtBoxLarge"></asp:TextBox>
<asp:RequiredFieldValidator ID="ValNoEmail" runat="server" ErrorMessage="Enter your email address" ControlToValidate="txtYourEmail" CssClass="fValidatorAsterisk">*</asp:RequiredFieldValidator><br /><br />
<span class="fNoValidatorSpace"></span>
<span class="fColHeaders">Underwriter Name</span>
<span class="fNoValidatorSpace"></span>
<span class="fColHeaders">Underwriter Code</span><br />
<asp:RequiredFieldValidator ID="ValUnderName" CssClass="fValidatorAsterisk" runat="server" ErrorMessage="Enter Underwriter Name" ControlToValidate="txtUnderWriterName">*</asp:RequiredFieldValidator>
<asp:TextBox ID="txtUnderWriterName" runat="server" CssClass="fTxtBoxLarge"></asp:TextBox>
<asp:RequiredFieldValidator ID="ValUnderCode" cssClass="fValidatorAsterisk" runat="server" ControlToValidate="txtUnderWriterCode" ErrorMessage="Enter Underwriter code">*</asp:RequiredFieldValidator>
<asp:TextBox ID="txtUnderWriterCode" runat="server" CssClass="fTxtBoxLarge"></asp:TextBox>
<br /><br />
<span class="fNoValidatorSpace"></span>
<span class="fColHeaders">CSC</span><br />
<asp:CompareValidator id="valCSC" CssClass="fValidatorAsterisk" runat="server" ControlToValidate="DDLCSC"
ValueToCompare="Select" Operator="NotEqual" ErrorMessage="Enter a CSC">*</asp:CompareValidator>
<asp:DropDownList ID="DDLCSC" runat="server" CssClass="fDDLBoxLarge"> </asp:DropDownList>
<br /><br />
<span class="fNoValidatorSpace"></span>
<span class="fColHeaders">Company Name</span><br />
<asp:RequiredFieldValidator ID="ValCompany" cssClass="fValidatorAsterisk" runat="server" ControlToValidate="txtCompany" ErrorMessage="Enter Company Name">*</asp:RequiredFieldValidator>
<asp:TextBox ID="txtCompany" runat="server" CssClass="fTxtBoxLarge"></asp:TextBox>
<asp:CheckBox ID="cboxSplRisk" runat="server" Text="Special Risk" />
<asp:CheckBox ID="cboxRush" runat="server" Text="Rush" />
<br /><br />
<span class="fNoValidatorSpace"></span>
<span class="fCommentBoxHeader">Comments</span><br />
<span class="fNoValidatorSpace"></span>
<asp:TextBox ID="ftxtComments" runat="server" MaxLength="10000" TextMode="MultiLine"></asp:TextBox>
<br />
<asp:Panel ID="pnlHide2" runat="server">
<span class="fNoValidatorSpace"></span>
<a href="http://forums.asp.net/AddPost.aspx?ForumID=138#" onclick=checkSpelling();">Check Spelling</a>
</asp:Panel>
</div>
<!-- In a panel that will be set to visible=false to hide it -->
<br />
<div class="fEntrySection">
<asp:Panel ID="pnlHide" runat="server">
<span class="fNoValidatorSpace"></span>
<span class="fCommentBoxHeader">Attach Supporting Documentation</span><br />
<span class="fNoValidatorSpace"></span>
<asp:FileUpload CssClass="fBtns" ID="FileUpload1" runat="server" /><br />
<span class="fNoValidatorSpace"></span>
<asp:FileUpload CssClass="fBtns" ID="FileUpload2" runat="server" /><br />
<span class="fNoValidatorSpace"></span>
<asp:FileUpload CssClass="fBtns" ID="FileUpload3" runat="server" /><br />
<span class="fNoValidatorSpace"></span>
<asp:Button ID="btnSubmitForm" runat="server" CssClass="fBtns" OnClick="btnSubmitForm_Click" Text="Submit" />
</asp:Panel>
<span class="fNoValidatorSpace"></span>
<asp:Label ID="lblFilesHeader" Cssclass="fColHeaders" runat="server" Visible="false" Text="Files Uploaded"></asp:Label><br />
<span class="fNoValidatorSpace"></span>
<asp:Label ID="lblFiles1" runat="server" Visible="false"></asp:Label><br />
<span class="fNoValidatorSpace"></span>
<asp:Label ID="lblFiles2" runat="server" Visible="false"></asp:Label><br />
<span class="fNoValidatorSpace"></span>
<asp:Label ID="lblFiles3" runat="server" Visible="false"></asp:Label><br />
</div>
</div>
<asp:ValidationSummary ID="ValSum" runat="server" DisplayMode="List" ShowMessageBox="True" ShowSummary="False" />
</form>
</body>
</html>
Here is the CSS
body
{
text-align: center;
font-size: 80%;
font-family: Verdana;
margin-top: 3px;
}
a
{
font-size: 100%;
color: #000099;
font-family: Verdana;
text-decoration: underline;
padding-right: 3px;
padding-left: 3px;
border-left: #dcdcdc 1px dashed;
border-left: #dcdcdc 1px dashed;
}
a:hover
{
text-decoration: underline;
color: #666633;
font-family: Verdana;
font-size: 100%;
}
.fLargeCentered
{
text-align: center;
font-size: 130%;
font-family: Verdana;
}
#fMainBodySecion
{
margin: 0 auto;
width: 710px; /* border: 1px solid #999999;*/
text-align: center;
border-right: #dcdcdc thin dashed;
border-top: #dcdcdc thin dashed;
border-left: #dcdcdc thin dashed;
border-bottom: #dcdcdc thin dashed;
}
.fHorizontalLine
{
display: inline-block;
border-right: #dcdcdc 1px dashed;
border-top: #dcdcdc1px dashed;
border-left: #dcdcdc 1px dashed;
border-bottom: #dcdcdc 1px dashed;
width: 100%;
}
.fEntrySection
{
width: 445px;
text-align: left;
}
.fColHeaders
{
width: 171px;
background-color: #C6E2FF;
text-align: left;
display: inline-block;
padding-left: 3px;
}
.fNoValidatorSpace
{
width: 14px;
text-align: left;
display: inline-block;
}
.fValidatorAsterisk
{
width: 9px;
text-align: left;
display: inline-block;
}
.fCommentBoxHeader
{
width: 358px;
background-color: #C6E2FF;
text-align: left;
display: inline-block;
padding-left: 3px;
}
#ftxtComments
{
width: 355px;
height: 105px;
}
.fTxtBoxLarge
{
text-align: left;
width: 168px;
}
.fDDLBoxLarge
{
text-align: left;
width: 172px;
}
.fBtns
{
font-size: 90%;
font-family: Verdana;
}
SURFThru.com