public void ExportGridToExcel(GridView grdGridView, string fileName){
{
Response.Clear();
Response.ContentType = "application/vnd.xls";
StringWriterstringWrite = new StringWriter();
GridView1.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();
public override void VerifyRenderingInServerForm(Control control){
}
now how can i make this file as readonly..
can any 1 help me on this..