<?xml version="1.0" encoding="utf-8"?> <registeration> <Date> </Date> <Name> </Name> <Qualification> </Qualification> <areaofinterest> </areaofinterest> <yearofexperience> </yearofexperience> <Mobile> </Mobile> <EmailID> </EmailID> <Address> </Address> <Country> </Country> <City> </City> <state> </state> <Resume> </Resume> <registeration> <Date>7/25/2013</Date> <Name>Rajesh</Name> <Qualification>B.E(Electronics and Communication)</Qualification> <areaofinterest>dotnet</areaofinterest> <yearofexperience>1</yearofexperience> <Mobile>9790408079</Mobile> <EmailID>rkumar9090@hotmail.com</EmailID> <Address>chennai </Address> <Country>india</Country> <City>chennai</City> <state>tn</state> <Resume>C:\Documents and Settings\Sweet Pc\Desktop\WebSite12\uploadresume\Rajesh Resume (2).doc</Resume> </registeration> <registeration> <Date>7/26/2013</Date> <Name>Rajesh</Name> <Qualification>B.E(Computer Science Engineering)</Qualification> <areaofinterest>dfh</areaofinterest> <yearofexperience>5</yearofexperience> <Mobile>5467</Mobile> <EmailID>dfh@g.c</EmailID> <Address>drfg</Address> <Country>reh</Country> <City>erh</City> <state>eh</state> <Resume>C:\Documents and Settings\Sweet Pc\Desktop\WebSite12\uploadresume\cab31.cab</Resume> </registeration> <registeration> <Date>7/26/2013</Date> <Name>Rajesh</Name> <Qualification>B.E(Computer Science Engineering)</Qualification> <areaofinterest>dfh</areaofinterest> <yearofexperience>5</yearofexperience> <Mobile>5467</Mobile> <EmailID>dfh@g.c</EmailID> <Address>drfg</Address> <Country>reh</Country> <City>erh</City> <state>eh</state> <Resume>C:\Documents and Settings\Sweet Pc\Desktop\WebSite12\uploadresume\cab31.cab</Resume> </registeration> </registeration>
protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { this.BindGrid(); } } protected void Download(object sender, EventArgs e) { string filePath = (sender as LinkButton).Text; if (File.Exists(filePath)) { string fileName = Path.GetFileName(filePath); Response.Clear(); Response.Buffer = true; Response.AddHeader("content-disposition", "attachment;filename=" + fileName); Response.Charset = ""; Response.ContentType = "application/vnd.ms-word "; Response.WriteFile(filePath); Response.Flush(); Response.End(); } else { Page.ClientScript.RegisterStartupScript(this.GetType(), "script", "<script type='text/javascript'>alert('file is not present');</script>"); } } protected void OnPageIndexChanging(object sender, GridViewPageEventArgs e) { this.gvCustomers.PageIndex = e.NewPageIndex; this.BindGrid(); } private void BindGrid() { using (DataSet ds = new DataSet()) { ds.ReadXml(Server.MapPath("formxml.xml")); this.gvCustomers.DataSource = ds; this.gvCustomers.DataBind(); } } protected void gvCustomers_SelectedIndexChanged(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { } protected void gvCustomers_SelectedIndexChanged1(object sender, EventArgs e) { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)