1、源代码安全管理制度
usingsystem;usingsystem.collections;usingsystem.configuration;usingsystem.data;usingsystem.linq;usingsystem.web;usingsystem.web.security;usingsystem.web.ui;usingsystem.web.ui.htmlcontrols;usingsystem.web.ui.webcontrols;usingsystem.web.ui.webcontrols.webparts;usingsystem.xml.linq;
2、 namespacewebapplication1{publicpartialclasswebform1:system.web.ui.page{protectedvoidpage_load(objectsender,eventargse){
}
protectedvoidbutton1_click(objectsender,eventargse){response.redirect("~/登录.aspx");
}
protectedvoidbutton2_click(objectsender,eventargse){response.redir
3、ect("~/人员信息查询.aspx");}
protectedvoidbutton3_click(objectsender,eventargse){response.redirect("~/人员修改.aspx");}
protectedvoidbutton4_click(objectsender,eventargse){response.redirect("~/部门信息.aspx");}
protectedvoidbutton5_click(objectsender,eventargse){response.redirect("~/工资信息.aspx");
4、}}}
usingsystem;usingsystem.collections;usingsystem.configuration;usingsystem.data;usingsystem.linq;usingsystem.web;usingsystem.web.security;usingsystem.web.ui;usingsystem.web.ui.htmlcontrols;usingsystem.web.ui.webcontrols;usingsystem.web.ui.webcontrols.webparts;usingsystem.xml.linq;usingsyste
5、m.data.sqlclient;namespacewebapplication1{publicpartialclass部门信息:system.web.ui.page{protectedvoidpage_load(objectsender,eventargse){
}
protectedvoidbutton1_click(objectsender,eventargse){boolfind=false;sqlconnectioncon=newsqlconnection("server=localhost;integratedsecurity=sspi;database=人事管理系统");con.open;stringcmdstr="select*from部门表";sqldataadapterda=newsqldataadapter(cmdstr,con);datasetds=newdataset;da.fill(ds);for(inti=0;i