Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- function ShowData(xMaterial, xDescription, xPGIDate, xAll, xPod, xLot) {
- $.ajax({
- type: 'POST',
- url: "/POD/Index",
- data: { Material: xMaterial, Description: xDescription, PGIDate: xPGIDate, All: xAll, cbPod: xPod, cbLot: xLot },
- dataType: "html",
- success: function (evt) {
- $('#PODList').html("");
- $('#PODList').html(evt);
- },
- error: function (err) {
- alert(err.statusText);
- }
- });
- }
- }
- [HttpPost]
- public PartialViewResult Index(string Material = "", string Description = "", DateTime? PGIDate = null, bool All = true, bool cbPod = false, bool cbLot = false)
- {
- try
- {
- List<POD> Model = new List<POD>();
- //Some code
- return PartialView("_Index", Model);
- }
- catch (Exception ex)
- {
- throw ex;
- }
- }
- <div id="PODList"></div>
- <script src="~/Scripts/customScript/POD.js"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement