Hi,

While exporting to excel all my grids and tables are binding properly but,
the controls inside the grids and tables are allining left, What is wrong with my coding?

passing Table id(one) which contains all my grids and tables to export
Response.Clear();

Response.AddHeader("content-disposition", "attachment;filename=FileName.xls");

Response.Charset = "";

// If you want the option to open the Excel file without saving than

// comment out the line below

// Response.Cache.SetCacheability(HttpCacheability.NoCache);

Response.ContentType = "application/vnd.xls";

System.IO.StringWriter stringWrite = new System.IO.StringWriter();

System.Web.UI.HtmlTextWriter htmlWrite =
new HtmlTextWriter(stringWrite);
// this.EnableViewState = false;
// EnableEventValidation="false" = false;
one.RenderControl(htmlWrite);

Response.Write(stringWrite.ToString());

Response.End();

without for tag (for using content place holder)
public override void VerifyRenderingInServerForm(Control control)
{

// Confirms that an HtmlForm control is rendered for the
//specified ASP.NET server control at run time.


}

Help needed..
Althaf