Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6606361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:23:15+00:00 2026-05-25T19:23:15+00:00

How can I put meta tag to work only for one page. If I

  • 0

How can I put meta tag to work only for one page. If I want to put it .aspx file, where is right place.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:23:16+00:00Added an answer on May 25, 2026 at 7:23 pm

    Since you haven’t said yet, I’m assuming you’re using the Razor engine (the “default” for new MVC3 projects). In that case, you just need to insert a new section into your layout view, and only render that section if you need to insert a meta tag.

    For example, working from the stock New ASP.NET MVC 3 Project template, you would edit your Views\Shared\_Layout.cshtml file, and before the closing </head> tag, do something like this:

        @this.RenderSection("MetaContent", false)
    </head>
    

    Then, in any of your views that you needed to, add this:

    @section MetaContent
    {
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    }
    

    If you’re still using the ASPX layout engine for some reason, you can accomplish the same thing using the <asp:ContentPlaceHolder> tags in your master page and <asp:Content> tags in your views.

    EDIT:

    Since you’re using the ASP.NET Forms layout engine still, here’s the same basic idea as above in aspx syntax:

    In your master page, you add the tag:

        <asp:ContentPlaceHolder ID="MetaContent" runat="server" />
    </head>
    

    And in your .aspx views, you add a new content section (you should already have at least two — a title and a body):

    <asp:Content ID="Meta" ContentPlaceHolderID="MetaContent" runat="server">
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    </asp:Content>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We can put our file say one.txt in txt folder available in tomcat->webapp folder.
Is there a place when I can put default imports for all my modules?
Can one use jQuery to clone() a meta title? Basically I am trying to
I can put python doctests in the bodies of each function, which I sometimes
how i can put multiple buttons in scroll view with according to my requirement?
In C++ you can put a member in a base class and a member
I know I can put escaped HTML tags in string resources. However, looking at
Where are all of the places you can put CSS style information on an
I'm trying to understand when I can put certain objects into a users session
Here is the way I can put float value to the stack(in C#): ILGenerator

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.