0

I'm Working with Asp .Net Mvc3,following is my jQuery,

$('#ddlVertical').change(function () {
    var vertical = $("#ddlVertical").val();
    $.get("Vertical", {
        "vertical": $.trim(vertical)
    },

    function (data) {
        $("#Vertical").html(data);
    })
});

when i change the dropdown old data getting loaded.i want the Partial view to get loaded with new data.when changing dropdown the page should get reloaded.how can i do this?

Cœur
  • 37,241
  • 25
  • 195
  • 267
user2514925
  • 931
  • 8
  • 33
  • 56
  • Can you show your controllers code? – Sarcastic Oct 28 '13 at 13:19
  • public ActionResult Vertical(string vertical = null) { AssoModel objAssoModel = new AssoModel(); try { objAssoModel=objAssoModel.GetVerticalAccessDetailvertical); return PartialView("Vertical", objAssoModel); } catch (Exception ex) { ILogManager LogManager = new LogManager(); var frame = new StackFrame(0); LogManager.CallLogging(frame, ex.Message, ex.StackTrace); return RedirectToAction("Error", "Common"); } } – user2514925 Oct 29 '13 at 05:33
  • while changing dropdown option the viewpage displays the values from cache once i refresh the page only i'm getting the updated value how can i perform this refresh the page using code – user2514925 Oct 29 '13 at 05:51

0 Answers0