C # code
PublicCarthandler () {} PublicCarthandler (intIdintNumstringaction) { 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 code
if exists(Select * fromsysobjectswhereName='Tr_student_insert')Drop TriggerTr_student_insertGoCreate TriggerTr_student_insert onStudent afterInsert as--declare @studentNo int = (select Studentno from inserted)--declare @classId int = (select classId from inserted)Declare @studentNo intDeclare @classId intSelect @studentNo=Studentno,@classId=ClassId frominsertedif((SelectClassId fromGradewhereClassId=@classId) is NULL)beginPrint 'ID does not exist, delete an inserted piece of data'--Delete Student where [email protected]EndElsePrint 'ID exists, no action is done'Select * frominsertedGoInsertStudentValues('123123','nnn','female',0,'138','Address Address','2012-12-12','[email protected]',0)Select * fromStudent
CSS Code
@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;}
Test Windows Live Wrter