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

The Archive Base Latest Questions

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

I have a MVC beginform (with JQUERY UI MOBILE AND AJAX.) When the user

  • 0

I have a MVC beginform (with JQUERY UI MOBILE AND AJAX.) When the user clicks submit,
I would like **<div data-role="page" id="two">** to display on the page.

@using (Html.BeginForm())
{

<div data-role="page" id="one">
<div data-role="header">Header stuff</div><!-- /header -->
<div data-role="content" >  
<div class="ui-body ui-body-b">
.....DATA......
<input type="submit" value="Submit" />
</div></div><div>

<div data-role="page" id="two">
<div data-role="header">Header stuff2</div><!-- /header -->
<div data-role="content" >  
<div class="ui-body ui-body-b">
FINISH
</div></div><div>



}
  • 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-06T02:34:25+00:00Added an answer on June 6, 2026 at 2:34 am

    I just ran into this and found out I cannot return the anchor tag from MVC’s controllers. So, I redirect users from a parameter that the controller passes back:

    if( getParameterByName("anchorID") != null) { 
        location.href = '#' + getParameterByName("anchorID");
    } 
    
    function getParameterByName(name) { 
        var match = RegExp('[?&]' + name + '=([^&]*)') 
                        .exec(window.location.search); 
        return match && decodeURIComponent(match[1].replace(/\+/g, ' ')); 
    

    Then you should be able to get your div to view after clicking the submit.

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

Sidebar

Related Questions

I have an ASP.Net MVC Ajax.BeginForm that submits and updates my page properly when
I have an ASP.NET MVC form laid out something like this: @using (Html.BeginForm(null, null,
I have the following view definition in my asp.net mvc website: <% Using Ajax.BeginForm(UsrCtlChangePassword,
I have an ASP.NET MVC site that uses both Microsoft Ajax [ Ajax.BeginForm() ]
We have a ASP.NET MVC 3 application that uses unobtrusive jQuery validation. The page
I have an MVC view with a form built with the Ajax.BeginForm() helper method,
I have this code in mvc 3 razor @using (Html.BeginForm(MyAction, MyController)) { <input type=text
When you have an ASP.Net MVC form created by Html.BeginForm(), how do fields inside
In my ASP MVC 3 application, I have this form @using (Html.BeginForm()) { <input
I have an ASP.Net MVC Page with a very simple form on it: One

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.