Click here to Skip to main content
15,887,464 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionRe: How does Logging application handle multiple config files? Pin
led mike19-Jun-09 5:37
led mike19-Jun-09 5:37 
AnswerRe: How does Logging application handle multiple config files? Pin
Taliesin9919-Jun-09 9:24
Taliesin9919-Jun-09 9:24 
GeneralRe: How does Logging application handle multiple config files? Pin
led mike22-Jun-09 5:18
led mike22-Jun-09 5:18 
GeneralAdvice on Trace Filtering Pin
Brady Kelly18-Jun-09 5:56
Brady Kelly18-Jun-09 5:56 
QuestionARCGIS, Please help!! It's urgent Pin
Andisheh_K18-Jun-09 4:13
Andisheh_K18-Jun-09 4:13 
AnswerCrosspost Pin
DaveyM6918-Jun-09 4:22
professionalDaveyM6918-Jun-09 4:22 
JokeRe: ARCGIS, Please help!! It's urgent Pin
vasanth111122-Jun-09 0:53
vasanth111122-Jun-09 0:53 
GeneralExport DataList into Excel with exact text,position and style in asp.net Pin
compaq750018-Jun-09 2:10
compaq750018-Jun-09 2:10 
hi,

This code will export the datalist into Excel with exact text,position and style in asp.net.
Please include System.IO at the top of the file.


string filename = "BacklogData.xls";
Response.Cache.SetExpires(DateTime.Now.AddSeconds(1));
Response.ContentType = "application/vnd.ms-excel";
Response.ContentEncoding = Encoding.Unicode;
Response.BinaryWrite(Encoding.Unicode.GetPreamble());
Response.Charset = "";
this.EnableViewState = false;
Response.Write("<html xmlns:x=\"urn:schemas-microsoft-com:office:excel\">");
Response.Write("\r\n");
Response.Write("<style> .text " + "\r\n" + " {mso-style-parent:style0;mso-number-format:\""+@"\@"+"\""+";} " + "\r\n" + "</style>");
StringWriter tw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(tw);
DataList.RenderControl(hw);
Response.AppendHeader("content-disposition","attachment;filename="+filename);
Response.Write(tw.ToString());
Response.End();

Happy Coding !!!! Laugh | :laugh: Laugh | :laugh: Laugh | :laugh: Laugh | :laugh:

Regards
Arun Kumar
H
GeneralRe: Export DataList into Excel with exact text,position and style in asp.net Pin
jinal shah30-Jun-09 21:04
jinal shah30-Jun-09 21:04 
GeneralRe: Export DataList into Excel with exact text,position and style in asp.net Pin
Member 20063269-Dec-09 20:04
Member 20063269-Dec-09 20:04 
QuestionWindows always on top? Pin
marca29218-Jun-09 1:53
marca29218-Jun-09 1:53 
AnswerRe: Windows always on top? Pin
Luc Pattyn18-Jun-09 2:06
sitebuilderLuc Pattyn18-Jun-09 2:06 
GeneralRe: Windows always on top? Pin
marca29218-Jun-09 2:20
marca29218-Jun-09 2:20 
Question"Make sure you have not released a resource before attempting to use it". HELP!!!! Pin
ChiSmile17-Jun-09 23:05
ChiSmile17-Jun-09 23:05 
AnswerRe: "Make sure you have not released a resource before attempting to use it". HELP!!!! Pin
0x3c017-Jun-09 23:42
0x3c017-Jun-09 23:42 
GeneralRe: "Make sure you have not released a resource before attempting to use it". HELP!!!! Pin
ChiSmile18-Jun-09 1:58
ChiSmile18-Jun-09 1:58 
GeneralRe: "Make sure you have not released a resource before attempting to use it". HELP!!!! Pin
Luc Pattyn18-Jun-09 2:08
sitebuilderLuc Pattyn18-Jun-09 2:08 
GeneralRe: "Make sure you have not released a resource before attempting to use it". HELP!!!! Pin
ChiSmile18-Jun-09 4:11
ChiSmile18-Jun-09 4:11 
GeneralRe: "Make sure you have not released a resource before attempting to use it". HELP!!!! Pin
Luc Pattyn18-Jun-09 4:33
sitebuilderLuc Pattyn18-Jun-09 4:33 
GeneralRe: "Make sure you have not released a resource before attempting to use it". HELP!!!! Pin
Pete O'Hanlon18-Jun-09 2:23
mvePete O'Hanlon18-Jun-09 2:23 
GeneralRe: "Make sure you have not released a resource before attempting to use it". HELP!!!! Pin
led mike19-Jun-09 5:28
led mike19-Jun-09 5:28 
QuestionCreating primary key constraints on a table using VB.NET Pin
sivakumar.mariappan17-Jun-09 21:05
sivakumar.mariappan17-Jun-09 21:05 
AnswerRe: Please Ignore [Cross Post] Pin
Aman Bhullar18-Jun-09 2:37
Aman Bhullar18-Jun-09 2:37 
QuestionHow many primary key constraints can we have in a table of ms-access? Pin
sivakumar.mariappan17-Jun-09 20:57
sivakumar.mariappan17-Jun-09 20:57 
AnswerRe: How many primary key constraints can we have in a table of ms-access? Pin
Colin Angus Mackay17-Jun-09 22:58
Colin Angus Mackay17-Jun-09 22:58 

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.