惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
T
Threatpost
N
News and Events Feed by Topic
PCI Perspectives
PCI Perspectives
V2EX - 技术
V2EX - 技术
D
Docker
G
Google Developers Blog
Microsoft Security Blog
Microsoft Security Blog
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Google Online Security Blog
Google Online Security Blog
The GitHub Blog
The GitHub Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Y
Y Combinator Blog
M
MIT News - Artificial intelligence
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
T
Troy Hunt's Blog
Webroot Blog
Webroot Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
量子位
Apple Machine Learning Research
Apple Machine Learning Research
H
Help Net Security
F
Full Disclosure
B
Blog
O
OpenAI News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
Forbes - Security
Forbes - Security
Know Your Adversary
Know Your Adversary
B
Blog RSS Feed
MongoDB | Blog
MongoDB | Blog
Scott Helme
Scott Helme
T
The Exploit Database - CXSecurity.com
博客园 - 聂微东
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
Recorded Future
Recorded Future
IT之家
IT之家
Project Zero
Project Zero
Stack Overflow Blog
Stack Overflow Blog
小众软件
小众软件
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
SecWiki News
SecWiki News
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

博客园 - Jingnan

微信支付开发 c# SDK JSAPI支付开发的流程和微信大坑 T4模板根据数据库表和列的Description生成代码的summary的终极解决方案 微信开放平台 公众号第三方平台开发 教程五 代公众号发起网页授权源码 微信开放平台 公众号第三方平台开发 教程四 代公众号调用接口的SDK和demo 微信开放平台 公众号第三方平台开发 教程三 一键登录授权给第三方平台 微信开放平台 公众号第三方平台开发 教程二 创建公众号第三方平台 微信开放平台 公众号第三方平台开发 教程一 平台介绍 wcf几种调用方式的性能讨论 WCF同样功能不同写法的性能问题 ASP.NET 4.0 URL路由改进支持 WPF 用webBowser 嵌套 URL地址 显示ReportViewer导出EXCEL的一些问题 简单的封装一个HTML 弹出对话框的空间 原型模式(Prototype) 恶性代码 - Jingnan - 博客园 AdvDataList分页 例码 问一个关于生成静态页面的问题 简单读区XML - Jingnan - 博客园 使用XMLDataSource简单实现多级下拉菜单 ASP.NET实现新闻页面的分页功能[生成静态版]
更新 增加 用Table形式
Jingnan · 2008-03-24 · via 博客园 - Jingnan

private void Add_Click(object sender, System.EventArgs e)
        
{
            DataTable dt 
= CommonBLL.GetSchema(Utility.Utility.TableName.RepairRecord).Tables[0];
            dt.TableName
=Utility.Utility.TableName.RepairRecord;
            DataRow dr;
            dr
=dt.NewRow();

            dr[
"RepairBaseId"]=Request["id"].ToString();    
            dr[
"Content"]=this.Content.Text;
            dr[
"Repairdate"]=Request.Form["startdate"].ToString();
            dr[
"Repaircost"]=this.repaircost.Text;
            dr[
"UserID"]=Request["userid"].ToString();    
            dr[
"Name"]=this.name.Text;
            dr[
"Phone"]=this.phone.Text;
            dr[
"RegTime"]=System.DateTime.Now;
            dt.Rows.Add(dr);
            CommonBLL.Insert(dt,
"ID");
            
string script="<script language=javascript>alert('增加成功');window.location.href='RepairRecordList.aspx';</script>";
            
this.Page.RegisterClientScriptBlock("",script);
        }

private void Update_Click(object sender, System.EventArgs e)
        
{
            DataTable dt
=Repair.RepairModel.GetRepairRecordById(Convert.ToInt32(Request["RepairRecordId"]));
            dt.TableName
=Utility.Utility.TableName.RepairRecord;
            DataRow dr;
            dr
=dt.Rows[0];

            
            dr[
"RepairBaseId"]=Request["RepairBaseId"].ToString();    
            dr[
"Content"]=this.Content.Text;
            dr[
"Repairdate"]=Request.Form["startdate"].ToString();
            dr[
"Repaircost"]=this.repaircost.Text;
            
//dr["UserID"]=Request["userid"].ToString();    
            dr["Name"]=this.name.Text;
            dr[
"Phone"]=this.phone.Text;
        
//    dr["RegTime"]=System.DateTime.Now;
            Repair.RepairModel.UpdateRepairBase(dr,dt.TableName,"ID");
            
            
string script="<script lanaguage='javascript'>alert('更新成功');window.location.href='RepairRecordDetail.aspx?RepairRecordId="+Convert.ToInt32(Request["RepairRecordId"])+"&userid="+Convert.ToInt32(Request["userid"])+"';</script>";
            Page.RegisterStartupScript(
"",script);
        }