首页 > 代码库 > 测试 Windows Live Wrter
测试 Windows Live Wrter
C#代码
public CartHandler() { } public CartHandler(int id, int num, string action) { this.id = id;// string.IsNullOrEmpty(context.Request.Params["id"]) ? 0 : Convert.ToInt32(context.Request.Params["id"]); this.num = num;// string.IsNullOrEmpty(context.Request.Params["num"]) ? 0 : Convert.ToInt32(context.Request.Params["num"]); this.action = action;// string.IsNullOrEmpty(context.Request.Params["action"]) ? "" : context.Request.Params["action"]; }
T-SQL代码
if exists(select * from sysobjects where name =‘tr_student_insert‘)drop trigger tr_student_insertgocreate trigger tr_student_inserton student after insertas--declare @studentNo int =(select StudentNo from inserted)--declare @classId int =(select ClassId from inserted)declare @studentNo intdeclare @classId intselect @studentNo=studentNo, @classId= ClassId from insertedif((select ClassId from grade where ClassId=@classId) is null)beginprint ‘id不存在,删除一条插入的数据‘--delete Student where StudentNo=@studentNoendelseprint ‘id 存在,不做任何操作‘select * from insertedgoinsert Student values(‘123123‘,‘nnn‘,‘女‘,0,‘138‘,‘地址地址‘,‘2012-12-12‘,‘xx@qq.com‘,0)select * from Student
Css代码
@charset "gb2312";/* CSS Document */.list_1 div.title{ background:none; border-bottom:none; height:80px; text-align:center;}.list_1 div.title span{ float:right; margin:0 50px 0 0;}.detail .content{ background:none;width:640px; margin:0 auto 20px;}.detail .content p{ margin:0; width:auto; line-height:25px;}
测试 Windows Live Wrter
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。