Click here to Skip to main content
15,896,269 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to change Culture Information Dynamically? Pin
Sathesh Sakthivel10-Jun-07 17:35
Sathesh Sakthivel10-Jun-07 17:35 
AnswerRe: How to change Culture Information Dynamically? Pin
Guffa10-Jun-07 18:56
Guffa10-Jun-07 18:56 
QuestionExport with Style sheet from Datatable to excel Pin
Biju Sam10-Jun-07 17:16
Biju Sam10-Jun-07 17:16 
AnswerRe: Export with Style sheet from Datatable to excel Pin
Venkatesh Mookkan10-Jun-07 17:23
Venkatesh Mookkan10-Jun-07 17:23 
GeneralRe: Export with Style sheet from Datatable to excel Pin
Biju Sam10-Jun-07 17:24
Biju Sam10-Jun-07 17:24 
GeneralRe: Export with Style sheet from Datatable to excel Pin
Venkatesh Mookkan10-Jun-07 17:28
Venkatesh Mookkan10-Jun-07 17:28 
GeneralRe: Export with Style sheet from Datatable to excel Pin
Biju Sam10-Jun-07 17:34
Biju Sam10-Jun-07 17:34 
GeneralRe: Export with Style sheet from Datatable to excel Pin
Venkatesh Mookkan10-Jun-07 18:26
Venkatesh Mookkan10-Jun-07 18:26 
itsbijusamuel wrote:
Response.Clear();

gvCycleRpt.Columns[8].Visible = false;
string style = @" .text { mso-number-format:\@; } ";
Response.AddHeader("content-disposition", "attachment;filename=CycleReport.xls");
Response.Charset = "";
Response.ContentType = "application/vnd.xls";
StringWriter StringWriter = new System.IO.StringWriter();
HtmlTextWriter HtmlTextWriter = new HtmlTextWriter(StringWriter);
gvCycleRpt.RenderControl(HtmlTextWriter);
// Style is added dynamically
Response.Write(style);
Response.Write(StringWriter.ToString());
Response.End();
gvCycleRpt.Columns[8].Visible = true;





Response.Clear();<br />
<br />
gvCycleRpt.Columns[8].Visible = false;<br />
string style = @"<style> .text { mso-number-format:\@; } </style> ";<br />
Response.AddHeader("content-disposition", "attachment;filename=CycleReport.xls");<br />
Response.Charset = "";<br />
Response.ContentType = "application/vnd.xls";<br />
StringWriter StringWriter = new System.IO.StringWriter();<br />
HtmlTextWriter HtmlTextWriter = new HtmlTextWriter(StringWriter);<br />
gvCycleRpt.RenderControl(HtmlTextWriter);<br />
// Style is added dynamically<br />
StringBuilder sb = new StringBuilder();<br />
sb.Append(style);<br />
sb.Append(StringWriter.ToString());<br />
Response.Write(sb.ToString());<br />
Response.End();<br />
gvCycleRpt.Columns[8].Visible = true;



Regards,
Venkatesh Mookkan.
Software Engineer, India
My: Website | Yahoo Group | Blog Spot

QuestionUpdate GridView on Runtime? Pin
Biju Sam10-Jun-07 17:12
Biju Sam10-Jun-07 17:12 
AnswerRe: Update GridView on Runtime? Pin
Venkatesh Mookkan10-Jun-07 17:27
Venkatesh Mookkan10-Jun-07 17:27 
GeneralRe: Update GridView on Runtime? Pin
Biju Sam10-Jun-07 17:31
Biju Sam10-Jun-07 17:31 
GeneralRe: Update GridView on Runtime? Pin
Venkatesh Mookkan10-Jun-07 18:28
Venkatesh Mookkan10-Jun-07 18:28 
QuestionPermission inputs ?? Pin
eng_Hosam Kamel10-Jun-07 9:17
eng_Hosam Kamel10-Jun-07 9:17 
AnswerRe: Permission inputs ?? Pin
Christian Graus10-Jun-07 13:27
protectorChristian Graus10-Jun-07 13:27 
QuestionAdding database to VS with SQL Server 2005 Pin
student_rhr10-Jun-07 6:42
student_rhr10-Jun-07 6:42 
QuestionInputFileDialog [modified] Pin
Mr.Sam10-Jun-07 2:40
Mr.Sam10-Jun-07 2:40 
AnswerRe: InputFileDialog Pin
WillemM10-Jun-07 6:47
WillemM10-Jun-07 6:47 
QuestionEncryption Key Management Pin
Meysam Mahfouzi10-Jun-07 1:57
Meysam Mahfouzi10-Jun-07 1:57 
QuestionAdding Namespace only once Pin
Tarik Guney10-Jun-07 1:05
Tarik Guney10-Jun-07 1:05 
AnswerRe: Adding Namespace only once Pin
Christian Graus10-Jun-07 13:34
protectorChristian Graus10-Jun-07 13:34 
GeneralRe: Adding Namespace only once Pin
Tarik Guney10-Jun-07 22:48
Tarik Guney10-Jun-07 22:48 
QuestionGettin a piece of specified text from any field. Pin
Tarik Guney10-Jun-07 1:04
Tarik Guney10-Jun-07 1:04 
AnswerRe: Gettin a piece of specified text from any field. Pin
szukuro10-Jun-07 4:22
szukuro10-Jun-07 4:22 
GeneralRe: Gettin a piece of specified text from any field. Pin
Tarik Guney10-Jun-07 4:48
Tarik Guney10-Jun-07 4:48 
QuestionAbout SqlSiteMapProvider Pin
Tarik Guney10-Jun-07 1:03
Tarik Guney10-Jun-07 1:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.