$.ajax({
type: "post",
url: "ProviderInfoLook.aspx",
data: {"index":index},
datatype: "text",
success: function(data) {
alert(data.d+"成功");
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert("操作有误!请联系管理员!");
}
});
.cs文件
string index = Request.Form["index"];
switch (index)
{
case "2": MVChange.ActiveViewIndex = 1; break;
case "1": MVChange.ActiveViewIndex = 0; break;
}