function f_EditCategory(path) {
$.ajax({
url: path, type: 'POST',
success: function (data) {
$("#divTake").load(data);
},
data: { Mode: ID }
});
jQuery.facebox();
}
<a onclick='f_EditCategory("/AHome/EditCategory/5/"'>Kategori Düzenle </a>
<div id='divTake'></div>
//***************************************//
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult EditCategory(int? p1)
{
ViewData["ID"] = p1.HasValue ? p1.Value : 0;
return PartialView("UserControl1");
}
//**************************************//
UserControl1 içeriği
<div>
gelen ID @ViewData[ID]
</div>
Hiç yorum yok:
Yorum Gönder