So if you have edits like Start Date, End Date, and Search Term in some fashion such as
<input type="text" name="StartDate" id="StartDate">
<input type="text" name="EndDate" id="EndDate">
<input type="text" name="SearchTerm" id="SearchTerm">
And you want to access those values in your delete controller. You should adjust your delete button to be triggered via jquery using .ajax (or some equivalent).
You can do something like this on the click event of your delete button
$("#partial-div-id").on("click", ".delete-button-class", function() {
var srNo = $(this).attr("data-srno");
var startDate = $("#StartDate").val();
var endDate = $("#EndDate").val();
var searchTerm = $("#SearchTerm").val();
$.ajax({
cache: false,
url: '<path to="" your="" controller="" +="" action',<br="" mode="hold"> contentType: 'application/html; charset=utf-8',
type: 'GET',
dataType: 'html',
data: { SrNo: srNo, StartDate: startDate, EndDate: endDate, SearchTerm: searchTerm },
async: false
}).success(function (data) {
$("#<your partial="" div="" id").html(data);<br="" mode="hold"> }).error(function () {
});
});</your></path>
Then you would adjust your Action in your contoller to have the params of start date, end date, and search term along with srno.
[HttpPost]
public ActionResult Delete(int SrNo, DateTime StartDate, DateTime EndDate, string SearchTerm)
{
List<uploaddata> allUploadData;
.
.
.
return PartialView("_PartialView", allUploadData.ToPagedList(1, 100, TotalRecordsCount));
}</uploaddata>
The jquery provided above expects a partial view to be returned in the success portion of the .ajax call so you would use the id of whatever it is that partial view is replacing to update the HTML in your application.