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

ASP.NET

 
QuestionHow to change Culture Information Dynamically? Pin
pubududilena10-Jun-07 17:23
pubududilena10-Jun-07 17:23 
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 
here is my code.

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;

Thanks & regards
Biju S
GeneralRe: Export with Style sheet from Datatable to excel Pin
Venkatesh Mookkan10-Jun-07 18:26
Venkatesh Mookkan10-Jun-07 18:26 
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 

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.