双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

ext当中编辑一条信息之后刷新当前页

董硕 董硕 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
public void SaveNews()
{
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刷新页面的文档,可以借鉴借鉴。

align520

ext js 页面自动刷新教程集合

ext js 页面自动刷新教程集合 ext js 页面自动刷新教程集合

goodboyy

Ext 可编辑表格

Ext 可编辑表格,表格里放combo,textfield,datafield,<br>checkbox

KissTwo_Xiong

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,

807793400
评论
收藏 已收藏
分享
返回顶部
董硕
C# 111,129 成员 642,540 内容