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

.NET (Core and Framework)

 
AnswerRe: Tree tier architecture, database access layer pattern Pin
PIEBALDconsult22-Jun-09 7:46
mvePIEBALDconsult22-Jun-09 7:46 
QuestionRe: Tree tier architecture, database access layer pattern Pin
Julen22-Jun-09 11:15
Julen22-Jun-09 11:15 
AnswerRe: Tree tier architecture, database access layer pattern Pin
Eddy Vluggen23-Jun-09 0:14
professionalEddy Vluggen23-Jun-09 0:14 
AnswerRe: Tree tier architecture, database access layer pattern [modified] Pin
Dave Kreskowiak21-Jun-09 8:05
mveDave Kreskowiak21-Jun-09 8:05 
QuestionRe: Tree tier architecture, database access layer pattern Pin
Julen21-Jun-09 21:41
Julen21-Jun-09 21:41 
AnswerRe: Tree tier architecture, database access layer pattern Pin
Shukla Rahul21-Jun-09 23:54
Shukla Rahul21-Jun-09 23:54 
QuestionRe: Three tier architecture, database access layer pattern Pin
Julen22-Jun-09 0:03
Julen22-Jun-09 0:03 
AnswerRe: Three tier architecture, database access layer pattern Pin
Shukla Rahul22-Jun-09 2:40
Shukla Rahul22-Jun-09 2:40 
AnswerRe: Three tier architecture, database access layer pattern Pin
Pete O'Hanlon22-Jun-09 1:47
mvePete O'Hanlon22-Jun-09 1:47 
QuestionQuestion Regarding Owner-Drawn ComboBox Pin
Alan Burkhart20-Jun-09 15:07
Alan Burkhart20-Jun-09 15:07 
Questionwinsock problem visual basic 2008 Pin
Member 255123019-Jun-09 16:28
Member 255123019-Jun-09 16:28 
QuestionHow does Logging application handle multiple config files? Pin
Taliesin9918-Jun-09 10:36
Taliesin9918-Jun-09 10:36 
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 

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.