protected void Page_Load( object sender , EventArgs e ) { Security s = Session["sec"] as Security; if (s == null) { Response.Redirect("error.aspx"); } dbModule dm = new dbModule(); int syid = Convert.ToInt32( Request["id"] ); symcTextBox.Text = dm.getSymcBySyid(syid); kcmcTextBox.Text = dm.getKcmcBySyid(syid); string kcbh = dm.getKcidBySyid( syid ); syddSDS.SelectCommand = "SELECT [ID], [SYSDD], [SYSMC] FROM [T_SYSXXB] where id = 0 or [ID] IN (select sysid from v_gly_sys_kc where glyid='" + s.getUserCode() + "' and kcid='" + kcbh + "')"; }