这是我从AJAX调用的代码...
[WebMethod]
[ScriptMethod]
public static string save(string parameter)
{
country_master obj_country = new country_master();
obj_country.Country_Name = Page.Request.Params["name"].ToString().Trim();
obj_country.saved();
return "";
}
Run Code Online (Sandbox Code Playgroud)
在这里,我无法通过Page.Request访问从页面传递的参数.
string name = HttpContext.Current.Request.QueryString["name"].Trim();
return "error";
Run Code Online (Sandbox Code Playgroud)
在写完第一行之后,return语句不会向AJAX返回任何内容.请帮我解决这个问题.谢谢...
这是我的代码
<script type="text/javascript">
$(document).ready(function () {
$("#popup").fancybox({
'width': 500,
'height': '500',
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'type': 'iframe'
});
});
</script>
Run Code Online (Sandbox Code Playgroud)
设置了iframe的宽度,但未设置高度.请让我知道我哪里错了?
谢谢.