I have the partial view .cshtml page as
$("#btnsearch").click(function () {
dserial = $("#dserial").val();
$('.content').load("/ServiceMaintenance/SearchInstallationDeviceDetails");
})
Here "dserial" is the id of text box, "btnsearch" is the id of the button and "content" is the id[class] of a div to which the partial view is to be loaded.
My need is to assign the value of 'dserial' to a readonly textbox (let the id be "serialno") in the view SearchInstallationDeviceDetails.cshtml which is in the Controller "ServiceMaintenance"
dserialvalue to the controller's action and have the partial view already have field read-only. If not, then you just need to look at thecompleteparam of$.load. Let us know which you can do for a viable answer.