Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 28th, 2003, 04:02 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Visual Studio deleting meta http-equiv

Hi

Visual Studio (7.0.9466) is deleting the following line from my web page when opening it from the Solution Explorer window.

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


For example:
- create an empty webpage and paste in the HTML below;
- save the page to your webserver;
- close the page in Visual Studio;
- reopen the page in Visual Studio from Solution Explorer window;
- note the <meta... line is missing!


<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Blah blah</title>
</head>

<body>

</body>
</html>


Regards
Darren
 
Old November 1st, 2003, 11:03 PM
Authorized User
 
Join Date: Jun 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sempf
Default


I think that is one of the many, many HTML editor bugs in 1.0. For the record, it doesn't do that in Everett (2003). Possible to upgrade? Lots of other bugs fixed too.

Bill Sempf
Effective Visual Studio .NET
 
Old November 1st, 2003, 11:59 PM
Authorized User
 
Join Date: Nov 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried your problem, but a little differently, and it seems to work.

In an existing Visual Studio ARP.NET 1.0 program, while running it in Visual Studio, I added a new html file named tryit.htm.
Then I replaced the DOCTYPE line with the following 2 lines and left the HTML tag in place. Next I pasted in your meta http-equiv line.
It works fine. It compiles. It remains there after closing Visual Studio. And its still there when I open Visual Studio.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0//EN"
   "http://www.w3org/TR/REC-html40/strict.dtd">
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 7.0">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<TITLE></TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>

However, I sure would NOT recommend using this file in anything running on the web.

Sandy

Sandy





Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio VS. Visual Web Developer expr Astrocloud BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 November 23rd, 2008 03:10 PM
FTP in Visual Studio 2005 Pro (Visual Basic) shoopes VB How-To 1 June 29th, 2006 02:08 PM
Visual Studio 2003 vs. Visual Studio 2005 eitanbarazani C# 2005 4 May 9th, 2006 01:34 AM
Visual Studio .net2003 and Visual Studio 2005 Gert Visual C++ 1 January 24th, 2006 05:10 AM
Visual studio 6 or visual studio .NET chaitannyam Visual C++ 1 November 13th, 2005 09:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.