Dim Control AsObject //////////////////////////////// If (Request.Cookies("UserInfo")("e_id") <>"") Then Control =New ctl_pds_fcc Control =CType(Me.Page.LoadControl("control/ctl_pds_fcc.ascx"), ctl_pds_fcc) 'CType(Control, ctl_pds_fcc).ID = i CType(Control, ctl_pds_fcc).e_id = Request.Cookies("UserInfo")("e_id") '員工代碼 CType(Control, ctl_pds_fcc).from_id = Request.QueryString("from_pub_id") PlaceHolder1.Controls.Add(Control) EndIf