ext当中编辑一条信息之后刷新当前页
{
if (Request.QueryString["nid"] != null)
{
try
{
newsList nl = new newsList();
nl = newlm.GetnewsListById(Convert.ToInt32(Request.QueryString["nid"]));
nl.Title = tbname.Text.Trim();
nl.DateTime = fbDate.SelectedDate;
if (nl.DateTime.Year.ToString() == "1")
{
nl.DateTime = DateTime.Now;
}
if ((ComboBox1.SelectedItem.Value == "") || (ComboBox1.SelectedItem.Value == null))
{
nl.Ztlm = "";
}
else
{
nl.Ztlm = ComboBox1.SelectedItem.Value;
}
nl.MenuIds = hfdept.Value.ToString();
nl.Faburen = (Session["log_user"] as cntyjModel.UserInfo).UserName;
nl.Type = "1";
nl.Yijibeizhu = TextBox2.Text;
nl.Erjibeizhu = TextBox3.Text;
//nl.Sanjibeizhu = TextBox4.Text;
//nl.Sijibeizhu = TextBox5.Text;
nl.Text = tbnei.Text;
string imgPath = BatchSaveImg();
string filePath = BatchSaveFile();
nl.Images = imgPath;
nl.Fujian = filePath;
if (newlm.ModifynewsList(nl) > 0)
{
//Response.Write("<script>alert('保存成功!');window.parent.location.href=window.parent.location.href; window.parent.location.reload;</script>");
/////下面这一段就是要审核成功刷新当前页
Response.Write("<script>alert('保存成功!');window.parent.location.href=window.parent.location.href; window.parent.location.reload;</script>");
return;
}
Page.ClientScript.RegisterClientScriptBlock(GetType(), "", "<script>alert('保存失败')</script>");
}
catch (Exception ex)
{
TipMsg(ex.Message);
return;
}
}
}
相关推荐
js实现刷新当前页面
全面的讲解js刷新页面的文档,可以借鉴借鉴。
ext js 页面自动刷新教程集合
ext js 页面自动刷新教程集合 ext js 页面自动刷新教程集合
Ext 可编辑表格
Ext 可编辑表格,表格里放combo,textfield,datafield,<br>checkbox
Ext中用jxl导出全部数据和当前页数据的实现
网上查了资料没有全部导出的资料,自己总结了下分享大家,Ext中用jxl导出全部数据和当前页数据的实现。
ext可编辑表格
ext可编辑表格Ext.onReady(function() { Ext.QuickTips.init(); //格式化日期 function formatDate(value) { return value ? value.dateFormat('Y年m月d日') : ''; } // 别名 var fm = Ext.form; //构造一个只能包含checkbox的列 var checkColumn = new Ext.grid.CheckColumn({ header: 'Indoor?', dataIndex: 'indoor', width: 55 }); // 构造ColumnModel var cm = new Ext.grid.ColumnModel({ columns: [{ id: 'common', header: 'Common Name', dataIndex: 'common', width: 220, // 使用上边定义好的别名 editor: new fm.TextField({ allowBlank: false }) }, { header: 'Light', dataIndex: 'light', width: 130, editor: new fm.ComboBox({ typeAhead: true, triggerAction: 'all', transform: 'light', lazyRender: true, listClass: 'x-combo-list-small' }) }, { header: 'Price', dataIndex: 'price', width: 70, align: 'right', renderer: 'usMoney', editor: new fm.NumberField({ allowBlank: false, allowNegative: false, maxValue: 100000 }) }, { header: 'Available', dataIndex: 'availDate', width: 95,



