資源簡介
個人簡歷內容至少應包括個人信息內容(要有照片)、課程成績內容、在校期間參加的各種活動及獲得的各種獎勵內容、個人參加的課外培訓內容、個人興趣、個人愛好、個人性格特征及就業(yè)傾向、個人社會實踐內容。
代碼片段和文件信息
using?System;
using?System.Data;
using?System.Configuration;
using?System.Collections;
using?System.Web;
using?System.Web.Security;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.WebControls.WebParts;
using?System.Web.UI.HtmlControls;
using?xmlOp;
public?partial?class?admin?:?System.Web.UI.Page
{
????string?xmlFile?=?ConfigurationManager.AppSettings[“xmlFile“];
????Logic?lg?=?new?Logic();???//創(chuàng)建Logic類對象?
????DataSet?ds?=?new?DataSet();
????protected?void?Page_Load(object?sender?EventArgs?e)
????{
????????if?(!IsPostBack)
????????{
????????????//驗證是否管理員
????????????if?(Convert.ToString(Session[“NormalAdmin“])?!=?“yes“)
????????????{
????????????????Response.Write(“你沒有權限查看!“);
????????????????Response.End();
????????????}
????????????BindToDataGrid();?//數(shù)據(jù)綁定到DataGrid控件
????????}
????}
????protected?void?DataGrid1_SelectedIndexChanged(object?sender?EventArgs?e)
????{
???????
????}
????private?void?BindToDataGrid()
????{
????????try
????????{
????????????xmlOp?op?=?new?xmlOp(xmlFile);
????????????ds?=?op.GetDs(“//Root“);
????????????this.DataGrid1.DataKeyField?=?“name“;
????????????this.DataGrid1.DataSource?=?ds;
????????????this.DataGrid1.DataBind();
????????}
????????catch
????????{
????????????Response.Write(“出現(xiàn)不明錯誤?!“);
????????????Response.End();
????????}
????}
????//每項數(shù)據(jù)綁定時事件
????protected?void?DataGrid1_ItemDataBound(object?sender?DataGridItemEventArgs?e)
????{
????????if?(e.Item.ItemType?==?ListItemType.AlternatingItem?||?e.Item.ItemType?==?ListItemType.Item)
????????{
????????????((linkButton)(e.Item.Cells[6].Controls[0])).Attributes.Add(“onclick“?“return?confirm(‘你確定要刪除嗎?‘);“);
????????????if?(Convert.ToString(Session[“SuperAdmin“])?==?“yes“)?//若為超級管理員
????????????{
????????????????((Button)(e.Item.Cells[7].FindControl(“btnSetAdmin“))).Visible?=?true;??//顯示設置管理員按鈕
????????????????((Button)(e.Item.Cells[7].FindControl(“btnNoAdmin“))).Visible?=?true;???//顯示取消管理員按鈕
????????????}
????????}
????}
????protected?void?DataGrid1_DeleteCommand(object?source?DataGridCommandEventArgs?e)
????{
????????xmlOp?op?=?new?xmlOp(xmlFile);
????????string?_delName?=?this.DataGrid1.DataKeys[e.Item.ItemIndex].ToString();?//取得關鍵字段
????????string?_delNode?=?“//Root/Jianli[name=‘“?+?_delName?+?“‘]“;
????????string?_photo?=?op.SelectNodeText(“//Root/Jianli[name=‘“?+?_delName?+?“‘]/photo“);
????????if?(op.DeleteNode(_delNode))????//刪除操作
????????{
????????????op.Save(xmlFile);?//保存xml文檔
????????????if?(System.IO.File.Exists(HttpContext.Current.Server.MapPath(_photo)))
????????????{
????????????????try
????????????????{
????????????????????//刪除相應圖片
????????????????????System.IO.File.Delete(HttpContext.Current.Server.MapPath(_photo));
????????????????}
????????????????catch?(Exception?ex)
????????????????{
????????????????????throw?ex;
????????????????}
????????????}
????????????Response.AddHeader(“refresh“?“0“);?//刷新整個頁面
????????}
????}
????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3158??2009-06-02?14:20??個人簡歷\admin.aspx
?????文件???????4215??2009-06-02?15:30??個人簡歷\admin.aspx.cs
?????文件???????3671??2009-06-02?14:44??個人簡歷\Default.aspx
?????文件???????1154??2009-05-27?12:13??個人簡歷\Default.aspx.cs
?????文件??????10226??2009-06-04?14:46??個人簡歷\index.aspx
?????文件???????8011??2009-06-02?16:21??個人簡歷\index.aspx.cs
?????文件????????542??2009-06-02?16:21??個人簡歷\stuInof.aspx
?????文件???????2735??2009-06-02?16:02??個人簡歷\stuInof.aspx.cs
?????文件???????1967??2009-05-26?22:21??個人簡歷\Web.config
?????文件???????9402??2009-06-04?14:55??個人簡歷\zhuce.aspx
?????文件???????4762??2009-05-27?19:31??個人簡歷\zhuce.aspx.cs
?????文件???????2303??2009-06-04?14:44??個人簡歷\xm
?????文件???????1810??2009-05-26?20:57??個人簡歷\xm
?????文件????????537??2009-05-26?20:57??個人簡歷\xm
?????文件???????6181??2006-04-30?09:32??個人簡歷\img\boy.gif
?????文件???????6562??2006-04-30?09:32??個人簡歷\img\girl.gif
?????文件?????217093??2009-05-08?22:28??個人簡歷\images\2008102722234515_2.jpg
?????文件???????6181??2009-06-02?15:12??個人簡歷\images\boy.gif
?????文件???????6181??2002-07-07?10:55??個人簡歷\images\Image1.gif
?????文件???????5929??2002-07-07?10:56??個人簡歷\images\Image2.gif
?????文件???????5851??2002-07-07?10:55??個人簡歷\images\Image3.gif
?????文件??????35791??2009-06-02?12:37??個人簡歷\images\jianli3.jpg
?????文件???????5929??2009-06-02?15:40??個人簡歷\images\ljj.gif
?????文件???????6562??2009-06-02?15:19??個人簡歷\images\lyx.gif
?????文件???????2094??2009-06-04?14:44??個人簡歷\App_Code\Logic.cs
?????文件???????9634??2009-05-27?17:46??個人簡歷\App_Code\xm
?????目錄??????????0??2009-06-04?12:20??個人簡歷\xm
?????目錄??????????0??2009-06-04?12:20??個人簡歷\img
?????目錄??????????0??2009-06-04?12:20??個人簡歷\images
?????目錄??????????0??2009-06-04?12:20??個人簡歷\App_Data
............此處省略5個文件信息
- 上一篇:桂浩 解釋器構造實驗3
- 下一篇:IP地址監(jiān)控小工具
評論
共有 條評論