You must Sign In to post a response.
  • Category: ASP.NET

    How solve problem mvc

    public PartialViewResult GetCountryGradeData(string SelectedCountry)
    {
    int EmpMasterId = 0;
    string RoleId = "";
    if (Session["userMasterId"] != null)
    {
    EmpMasterId = Convert.ToInt32(Session["userMasterId"]);
    }


    if (Session["RoleId"] != null)
    {
    RoleId = Session["RoleId"].ToString();
    }

    DataTable dt = new DataTable();
    dt = GetGradeData(EmpMasterId, RoleId, Convert.ToInt32(SelectedCountry));
    TempData["GradeSummary"] = dt;
    return PartialView("_GradeSummary_Partial", dt);
    }
    <div class="table-responsive" style="display:block;" id="showData">

    </div>
    function GeographyIndexChanged() {
    var SelectedCountry = $('.ddlGeography option:selected').val();

    $.ajax({
    url: '@Url.Action("GetCountryGradeData", "Summary")',
    contentType: "application/json; charset=utf-8",
    type: "POST",
    data: JSON.stringify({ 'SelectedCountry': SelectedCountry }),
    datatype: "html",
    success: function (t) {
    $("#showData").html(t)
    },
    error: function () {
    $("#showData").html("Data for this Country Not Found")
    }
    });
    }
  • #770008
    Hi
    What is your issue?

    can you share Full source code i will check and let you know

    Name : Dotnet Developer-2015
    Email Id : kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.


  • Sign In to post your comments