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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:54:46+00:00 2026-05-11T06:54:46+00:00

I am using ASP .NET to display a JQuery dialog that has a few

  • 0

I am using ASP .NET to display a JQuery dialog that has a few input fields. I now need these fields to submitted to an action method like how a normal HTML submit button would work on an ASP .NET MVC application. How do I accomplish this?

  • This is my form data:

All form fields are required.

<%Html.BeginForm('AddUser', 'User'); %> <fieldset>     <label for='name'>Name</label>     <input type='text' name='name' id='name' />     <label for='email'>Email</label>     <input type='text' name='email' id='email' value='' />     <label for='password'>Password</label>     <input type='password' name='password' id='password' value='' /> </fieldset> <%Html.EndForm(); %> 

‘

  • And this is my script:
    $(function() {         $('#dialog').dialog({             bgiframe: true,             height: 400,             width: 600,             modal: true,             buttons: {                 'Create user account': function() {                    $(this).dialog('close');                 },                 Cancel: function() {                     $(this).dialog('close');                 }             }         });     });
  • 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. 2026-05-11T06:54:47+00:00Added an answer on May 11, 2026 at 6:54 am

    Add a line to your code that submits the form:

    $(function() {      $('#dialog').dialog({          bgiframe: true,          height: 400,          width: 600,          modal: true,          buttons:          {              'Create user account': function() {                  $('#yourDialogFormID').submit(); // add this line                  $(this).dialog('close');               },              Cancel: function() {                   $(this).dialog('close');               }        }     });  }); 

    You can set the ID by giving the Html.BeginForm() method an argument for htmlAttributes (type object if I remember the structure correctly – look for it in the overload methods in IntelliSense).

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

Sidebar

Related Questions

Using ASP.NET MVC + jQuery : I need to use some values owned by
I am using Asp.net with jquery I wanted to display information for a specific
I am using ASP.NET MVC with jQuery. I have the following MVC Action that
I want to display a circular progress indicator using jquery in asp.net when textbox
I am using the JQuery Datatables plugin in an ASP.NET MVC project to display
I am using modal dialog of jQuery UI with my ASP.Net application. The page
I have to build a registration form using asp.net mvc 3 jquery validate. That
I'm using an asp.net chart control to display a pie chart, image below. http://i39.tinypic.com/ndtzx1.png
I want to display user ratings in my asp.net site using bars and ratings.
Using ASP.NET 3.5 and jQuery UI. When a user clicks the Search button, a

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.