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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:34:23+00:00 2026-06-12T21:34:23+00:00

Let me be more specific..What i want to do is that when i click

  • 0

Let me be more specific..What i want to do is that when i click a submenu for example say XYZ is a sub menu of a main menu ABC..when i click XYZ it loads via ajax on the main page i.e ABC..the ajax part is done i dnt how to call it via menu….i’ll paste my code to b more clear..

<li>@Html.ActionLink("About Us", "Index", "AboutUs")
    <ul>
        <li>@Html.ActionLink("Vision & Misson", "Index", "AboutUs")</li>
        <li>@Html.ActionLink("Our Ethics", "Index", "AboutUs")</li>
    </ul>
</li>

this is an about us page, normaly it is directed to its INDEX page when about us is clicked..HOw ever when you hover on ABout US a drop down menu opens showing to more options:
vision and mission
our ethics……currently both of them are directed to index
what i want is that when i click vision and mission, it should open the partial view of vision and mission directly on the index page of about us…
similarly when ‘our ethics’ page is clicked it should directly call the partial view ‘our ethics’ and display it on index page of about us

  • 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-06-12T21:34:24+00:00Added an answer on June 12, 2026 at 9:34 pm

    Change your @Html.ActionLink to @Ajax.ActionLink

    <li>@Html.ActionLink("About Us", "Index", "AboutUs")
        <ul>
            <li>@Ajax.ActionLink("Vision & Misson", "VisionAndEthics", new AjaxOptions {
                    InsertionMode = InsertionMode.Replace, UpdateTargetId = "divTarget"
                })</li>
            <li>@Ajax.ActionLink("Our Ethics", "OurEthics", new AjaxOptions {
                    InsertionMode = InsertionMode.Replace, UpdateTargetId = "divTarget"
                })</li>
        </ul>
    </li>
    

    The insertion mode property is set to replace and the UpdateTargetId property is the id of the HTML container you want to put the result in.

    Then in your controller

    public PartialViewResult VisionAndEthics() {
        return PartialView("VisionAndMission");
    }
    
    public PartialViewResult OurEthics() {
        return PartialView("OurEthics");
    }
    

    This way you could also handle clients with javascript turned off by extending this solution.

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

Sidebar

Related Questions

To be more specific, let's say we have a collection sorted by properties P1
Let's say I have 3 or more peers connected to the same WiFi Access
I want to let TextBox control TextChanged event fire only when there are more
Let's say I don't have photoshop, but I want to make pattern files (.pat)
Let's say you have a bug that was found in functional testing of a
I want to pass a method around and store it. Let's say the method
So there is a common problem that I have found in bash. Let's say
(if the question is more appropriate for RackOverflow please let me know) I've setup
Edit 2: Actually SomeEventHandler is more concise than OnSomeEventHandler : If I let Visual
back again with some more SQLAlchemy shenanigans. Let me step through this. My table

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.