Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > What does this runat=server means in this head element

Reply
Thread Tools

What does this runat=server means in this head element

 
 
Tony Johansson
Guest
Posts: n/a
 
      11-29-2010
Hello!

If we have this code snipped in an aspx file what does it mean
<head runat="server">
<title>Employee Information </title>
</head>

I know what runat=server means when you use it in server controller like
<asp:TextBox . . .

I mean that this code snipped
<head runat="server">
<title>Employee Information </title>
</head>
is not a server control.

//Tony



 
Reply With Quote
 
 
 
 
Jason Keats
Guest
Posts: n/a
 
      11-29-2010
Tony Johansson wrote:
> Hello!
>
> If we have this code snipped in an aspx file what does it mean
> <head runat="server">
> <title>Employee Information</title>
> </head>
>
> I know what runat=server means when you use it in server controller like
> <asp:TextBox . . .
>
> I mean that this code snipped
> <head runat="server">
> <title>Employee Information</title>
> </head>
> is not a server control.
>
> //Tony


It's probably there because the programmer forgot to delete it. He may
be used to doing (strange) things like...

<head runat = "server">
<title><%= Html.Encode(ViewData["Title"]) %></title>
<%this.RenderHeadItems();%>
<link rel="stylesheet" type="text/css"
href="Styles.css?v=<%=AssemblyVersionNumber()%>">
</head>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GeForce 7800 GTX Head-to-Head @ TrustedReviews Silverstrand Front Page News 0 09-12-2005 11:25 PM
Re: Can I get at contents of <head></head> programmatically? Karl ASP .Net 0 09-15-2004 06:09 PM
PHP and ASP.NET go HEAD to HEAD showme ASP .Net 13 07-10-2004 09:44 PM
Looking for a Multi-Head, Detachable-Head Camera Richard Alexander Digital Photography 9 05-26-2004 09:26 PM
Injecting code into the <head></head> section Brian W ASP .Net 10 07-02-2003 07:53 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57