此函数给出错误:
function RefreshGrid(){
window.location.href="Form_ElameMamoreBazdid.aspx";
}
此函数给出错误:
function RefreshGrid(){
window.location.href="Form_ElameMamoreBazdid.aspx";
}
** Java 脚本 **
function refreshGrid() {
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();
}
** C# **
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
Shomare_Darkhast = Convert.ToDecimal(Request.QueryString["Shomare_Darkhast"]);
Grid_Bazdid.DataSource = Ent.ShowBazdid(Shomare_Darkhast);
Grid_Bazdid.DataBind();
}
public ObjectQuery ShowBazdid(decimal Shomare_Darkhast)
{
var List = from b in TBL_Bazdid
where (b.Shomare_Darkhast == Shomare_Darkhast)
join k in TBL_Karshenas on b.Code_Karshenas equals k.Code_Karshenas
select new
{
Radif = b.Radif,
Code_Karshenas = b.Code_Karshenas,
NameNameKhanevadegie_Karshenas = k.NameNameKhanevadegie_Karshenas,
Tarikh = b.Tarikh,
SaateShoro = b.SaateShoro,
};
return (ObjectQuery)List;
}
function RefreshGrid()
{
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
masterTable.rebind();
}
请看一下上面的代码。
通过对网格使用客户端绑定,请查看此帮助文档!