protected string GetEditUrl(object id, object name)
{
JsObjectBuilder joBuilder = new JsObjectBuilder();
joBuilder.AddProperty("id", "grid_newtab_sametab_edit");
joBuilder.AddProperty("title", "编辑 - " + name);
joBuilder.AddProperty("iframeUrl", ResolveUrl(String.Format("~/grid/grid_newtab_window.aspx?id={0}&name={1}", id, HttpUtility.UrlEncode(name.ToString()))));
joBuilder.AddProperty("refreshWhenExist", true);
joBuilder.AddProperty("iconFont", "pencil");
// addExampleTab函数定义在default.aspx,参数分别为:id, url, text, icon, refreshWhenExist
return String.Format("parent.addExampleTab({0});", joBuilder);
}
|