Hi
Basically I have this
In my Asp.net controller
public ActionResult RenderMyView()
{
data = // some data to used in rendering my partial view
return PartialView("PartialView", data);
//edit
I also return a json result if an error occurs. Say if I get an SQLException I will return a json result back and not render any partialview.
}
My ParitalView renders a table and the "data" is basically columns from the database. So it takes the information in the data my generates a table with that many rows.
This is in my java script file and is activated when a drop down list item is changed.
$.getJSON('RenderMyView', { 'field': field}, function(response)
{
$('#id').after('<div>' + response + '</div>');
});
So what this does is calls RenderMyView what renders a partialView and adds the response code to my page.
So this is my thinking. It goes to my controller and renders and returns that PartialView. Once it gets rendered it is just html. So it is sending back html and then I add that html code into a div.
This works as I expect on Firefox but no other browser works. I tired Opera, Google chrome, IE 8, Safari none of them work.
I have no clue why since I don't have my trusty firebug.
I tired to use IE 8 firebug clone but for some reason it does not go into this part
$('#id').after('<div>' + response + '</div>');
I put break points on every line but after it goes to the server its like thats the end of the debugging it never goes back to the debugger and no errors are occurring on the server side since I am walking through it with the VS2008 debugger and nothing crashes.
Edit
It seems to not go into the response part at all. Like I put an alert box there and it never gets triggered.