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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:50:44+00:00 2026-05-16T18:50:44+00:00

In have a controller class that handle a Contact object. In this controller I

  • 0

In have a controller class that handle a Contact object. In this controller I have defined some actions like the two I am showing here

public ActionResult Edit(int id)
{
    ContactModel cm = loadContactModel(id);
    cm.ModelState = ModelStateEnum.Edit;
    return PartialView("Contact", cm);
}

public ActionResult AddAddress(int id)
{
    AddressModel am = new AddressModel() { ModelState = ModelStateEnum.Add };
    return PartialView("Address", am);
}

The first load the Contact Detail view to edit a contact and the second load an Address detail view to add an Address to a Contact. On the UI side I have, in the same page, a button and an anchor that respectively call the same javascript function, this one

function loadDialog(action, id, title) {
    $("#contactPanel").dialog("option", "title", title);
    var urlAction = action;
    if (id != "") urlAction = urlAction + "/" + id;
    $.ajax({
        type: "get",
        dataType: "html",
        url: urlAction,
        data: {},
        success: function(response) {
            $("#contactPanel").html('').html(response).dialog('open');
        }
    });
}

This function simply load a jQuery dialog and set its content to what is returned back from the ajax call.

The problem is that when I call the AddAddress action I get HTTP/1.1 500 Internal Server Error.

I have used Fiddler to look at the http request and this is what I see

alt text

Any suggestion???

  • 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-16T18:50:45+00:00Added an answer on May 16, 2026 at 6:50 pm

    Ok!!! Found the problem: there was a compile error inside the second view object.
    Looking at the detials of the response I have got to the problem!!!

    🙂

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

Sidebar

Related Questions

I have a controller that looks like this: public class PageController : Controller {
I have this controller in Code Igniter that begins with class MyController extends CI_Controller
Say I have a class ObjectA (a view controller for example), that does this
I have a view controller class that has to implement several protocols. Too keep
I have the problem that my view controller class has too many delegates and
In my MVC3 application, I have a queries class specific to each controller that
I have this controller: public class StandingsController : Controller { public ViewResult Index(int id)
Here is my use case I have a search model with two actions search_set
I'd like to have one route that gives the option of two urls but
I have a TransferHandler class that is used to handle file drag and drop.

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.