请问我更新数据库的后,为什么立刻数据库没有改变呢? 我在页面更改了设备的个数,原来是50,通过销售我销售出去5台,剩余45!但是我在次点击销售添加按钮发现剩余库存还是“50”没有变!我点击从新登陆按钮,从新登陆后,再去看就变成“45”了!请问这是怎么回事啊? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 代码如下:btnSearch_Click(null,null);protected void btnSearch_Click(object sender, EventArgs e) { string chartSn = txtChartSn.Text.Trim(); string chartName = txtChartName.Text.Trim(); string seaAreaName = ddlSeaArea.Text; if (seaAreaName == "全部海区") seaAreaName = ""; ChartInStoreList chartInStoreList = ChartInStoreList.FetchList(chartSn, chartName, seaAreaName); gridView.DataKeyNames = new string[] { "InstoreID" }; gridView.DataSource = chartInStoreList; gridView.DataBind(); Session["CHART_SALE_SELECT_LIST1"] = chartInStoreList; } 我第一次点击添加按钮后 if (!IsPostBack) { btnSearch_Click(null, null); }执行了段代码!保存成功。、当我第2次再次点击添加按钮后就没有进来 正则 如何ItemDataBound中获取自定义控件 页面未加载完毕就点按钮,会导致页面错误? 无法调试ASP.NET程序的问题!!! 请教IP地址是什么类型格式?我应该怎么转换成合适类型插入数据库? 关于分页控件AspNetPager中的EndRecordIndex属性 只用TABLE怎么实现数据列表功能.不用datalist等控件. 讨论WEB打印完美解决方案! 小问题:'csc' 不是内部或外部命令,也不是可运行的程序或批处理文件。 菜鸟问题,来捡分吧! 单表多条件查询 求一个只能输入6-12位字母数字的正则
{
string chartSn = txtChartSn.Text.Trim();
string chartName = txtChartName.Text.Trim();
string seaAreaName = ddlSeaArea.Text;
if (seaAreaName == "全部海区") seaAreaName = "";
ChartInStoreList chartInStoreList = ChartInStoreList.FetchList(chartSn, chartName, seaAreaName);
gridView.DataKeyNames = new string[] { "InstoreID" };
gridView.DataSource = chartInStoreList;
gridView.DataBind();
Session["CHART_SALE_SELECT_LIST1"] = chartInStoreList; }
if (!IsPostBack)
{
btnSearch_Click(null, null);
}
执行了段代码!
保存成功。、
当我第2次再次点击添加按钮后就没有进来