Saturday, March 24, 2012
Strip Visual Studio META Tags Is Safe?
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/ie5"
And I am wondering if it is safe to remove them after I compile the
ASP.NET application, or if it is possible to have VS.NET 2003 not put
them in my .aspx pages in the first place.
Thanks.meta tags are not rendered, they are only used to provide information to the
server and the client. They can be deleted at will, if you don't need them.
Removing the target schema and client script meta tags will remove some
intellisense features on the development environment, but nothing contained
in a meta tag will affect the rendering of the page itself.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
"localhost" <primpilus@.cohort.ces> wrote in message
news:3ubf20p4i2t4k30u4je2hjmv5atl7g4e4v@.4ax.com...
>I have these in all of my pages:
> <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
> <meta name="CODE_LANGUAGE" Content="C#">
> <meta name=vs_defaultClientScript content="JavaScript">
> <meta name=vs_targetSchema
> content="http://schemas.microsoft.com/intellisense/ie5">
> And I am wondering if it is safe to remove them after I compile the
> ASP.NET application, or if it is possible to have VS.NET 2003 not put
> them in my .aspx pages in the first place.
> Thanks.
Hi Localhost,
Thanks for posting in the community!
From your description, you are wondering some infos on the <meta> tags
VS.NET has automatically put in the ASP.NET page when page is created and
whether it'll cause any problem if remove them, yes?
If there is anything I misunderstood, please feel free to let me know.
As for this problem, I agree to Chris's opinion, the meta tags commonly
tells web browsers basic host information about a site or the tools that
created the source files of the site. This information is also used by
search engines. For detailed info on the META tags, you may view the
following web references:
#META - Metadata
http://www.htmlhelp.com/reference/html40/head/meta.html
#HTML Tutorial -> META - Metadata
http://www.style-sheets.com/html_tutorial/head/meta.asp
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Strong Naming a dll and registering in GAC
I am working with Microsoft Configuration Application Blocks and whenever I
create a new app and have to use it, I have to reference it and it makes a
local copy in the bin directory.
so if i created 4 apps then there are local copies of these blocks...
I tried to use GACUtil to register these dlls but it gives me an error
saying that its not having a strong name, i tried sn tool but unsuccessful.
I have tried to strong name a dll but the way i did it was in an app where I
first created a strong name and then referenced it in the app before
compiling the dll and then used GAC to register it...
but this is some external dll...
I mean is my thought process right or I am totally off base...
Please advice,
Stephenstephen,
You cannot install an assembly in the GAC without a strong name so you need
to solve this problem first.
After that, you can put copies of strong named, GAC-ed assemblies in a
single folder and reference these from your various apps; you can turn off
the copy local feature, and the copy in the GAC will be automatically used.
Hope that helps,
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"stephen" wrote:
Quote:
Originally Posted by
>
Hi,
>
I am working with Microsoft Configuration Application Blocks and whenever I
create a new app and have to use it, I have to reference it and it makes a
local copy in the bin directory.
so if i created 4 apps then there are local copies of these blocks...
>
I tried to use GACUtil to register these dlls but it gives me an error
saying that its not having a strong name, i tried sn tool but unsuccessful.
I have tried to strong name a dll but the way i did it was in an app where I
first created a strong name and then referenced it in the app before
compiling the dll and then used GAC to register it...
but this is some external dll...
>
I mean is my thought process right or I am totally off base...
Please advice,
Stephen
>
>
>