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

  • Home
  • SEARCH
  • 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 8006229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:26:26+00:00 2026-06-04T17:26:26+00:00

I am trying to implement AJax on Umbraco 5(jupiter), i have tried to create

  • 0

I am trying to implement AJax on Umbraco 5(jupiter), i have tried to create Surface controllers, which works great with normal post back but it do not provide the facility to use Mvc Ajax Controls i-e Ajax.BeginForm Etc…, I have now added a new MVC Area in the Application, i am able to send Post Back through Ajax form easily to the Controller’s Action but i WHAT should i return from this Action, As CurrentUmbracoPage is not accessible(because it is not a Surface Controller), my code is fairly simple,

@using (Ajax.BeginForm("HandleFollowsUs", "propertyDetails", new AjaxOptions { InsertionMode = InsertionMode.Replace, HttpMethod = "POST", LoadingElementId = "ajax-loader", UpdateTargetId = "fuError" }))
{
 <input type="image" style="border-width: 0px;" src="/images/btnSubmitN.jpg"  id="btn_submitEmail" /></span>

}
AND my ACTION is 
 [HttpPost]
    public ActionResult HandleFollowsUs(FormCollection collection) {
//Do Something
Return View();//////This is where i am confused.
}

If i return View, it is not in the New area, partial View will only return a bit portion of the Page, :/
Any Help would be appreciated,
Thanks,
Sher

  • 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-04T17:26:29+00:00Added an answer on June 4, 2026 at 5:26 pm

    Use Jquery Ajax instead and return a string, it wont effect the normal routing of Umbraco 5. Sample Code is as below

    function loadList(){
    $.ajax({
        type: "POST",
        url: "/en/propertydetails/searchListView",
        data: "loc=" + loc + "&startDate=" + startDate + "&endDate=" + endDate + "&bedrooms=" + bedrooms + "&adults=" + adults + "&children=" + children + "&offerCode=" + offerCode,
        error: function (xhr, status, error) {
            //alert('error');
        },
        success: function (response) {
            //do something with response
            populateSearchList(response);
        }
    });
    

    }

    And my Action is

    [HttpPost]
        public string searchListView(string loc, string endDate, string startDate, string bedrooms, string adults, string children, string offerCode)
        {
    //Do Something
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement back button on this full ajax website.. I tried jquery
I'm trying to implement TinyMCE in jQuery Tabs, which are loaded by AJAX In
I am trying to implement an ajax view to create an object and then
I'm using magento as my CMS, trying to implement ajax for pagination, I have
I'm trying to implement an ajax page loading icon, but of course I can't
I am trying to implement a simple request to Wikipedia's API using AJAX (XMLHttpRequest).
I'm trying to implement the HTML5 history feature to perform AJAX loading of page
I'm trying to implement authentication using jquery to make an ajax request to a
I'm trying implement A* Start path finding in my games(which are written with JavaScript,
I am trying implement a most recent widget into my tumblr post. So far,

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.