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 6833387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:58:19+00:00 2026-05-26T22:58:19+00:00

In my application I have a layout page for viewing the project: This page

  • 0

In my application I have a layout page for viewing the project:

This page have 4 sub-pages (Details, Photos, addresses and comments).

Example:

/myproject = Open the details page

/myproject/Photos = Open the Photos page

/myproject/Addresses = Opens the page addresses

/myproject/Comments = Open the page of comments

Question

How to use # to load pages via ajax to the URL?

Example

/myproject = Open the details page

/myproject#Photos = Open the Photos page

/myproject#Addresses = Opens the page addresses

/myproject#Comments = Open the page of comments

In page layout where I have four buttons, click on the photo for example, the page would be loaded via ajax. and url go

from /myproject

to /myproject#Photos

Resume

How to use ‘#’ in asp.net MVC?

  • 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-26T22:58:19+00:00Added an answer on May 26, 2026 at 10:58 pm

    They are generally called URL fragments and are used as bookmarks on a page to navigate to different sections of that page. When clicked they will scroll down the currently loaded page to the matching tag name. I would recommend against using them as paths to different pages.

    You can use them as bookmarks by specifying the fragment in the Htmlhelper:

    @Html.ActionLink("My Photos", "Action", "Controller", null, null, "Photos", null, null)
    

    Then in your Photos partial that represents the Photos sub-page, set the html id attribute to “Photos” in the div or label or whatever represents the beginning of the Photos partial. The link created with the @Html.ActionLink will look for a html element ID that matches the word you typed into the fragment.

    See LinkExtensions.ActionLink Method for more details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two libraries and a single application assembly project layout and I'm wondering
In a tomcat JSP application I have this directory layout: webapps/ myProjectName/ index.jsp WEB-INF/
I have the following page layout in my application: <Grid x:Name=ContentPanel Grid.Row=1> <ScrollViewer x:Name=ScrollViewer1
I have an application.html.erb file which sets out layout for every pages in my
I have the following in my application layout page <body> <div class=container showgrid> <%=
I have an application layout in my rails app to give a default header/footer
I have an application that has a primary layout of portrait (it is fixed
I am using Tiles within my web-application. I have a standard-layout (standard.jsp) within the
I'm currently working out the layout of a WPF Application and seem to have
I have a ASP.NET MVC2 application with a master page. The master page renders

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.