Click here to Skip to main content
15,894,546 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ASP .Net Datatable Problem Pin
Nishant Singh18-Jan-10 0:01
Nishant Singh18-Jan-10 0:01 
GeneralRe: ASP .Net Datatable Problem Pin
April Fans18-Jan-10 15:06
April Fans18-Jan-10 15:06 
AnswerRe: ASP .Net Datatable Problem Pin
April Fans18-Jan-10 15:09
April Fans18-Jan-10 15:09 
Questionweb application not working fine on web Pin
vikas shukla15-Jan-10 2:07
vikas shukla15-Jan-10 2:07 
AnswerRe: web application not working fine on web Pin
Not Active15-Jan-10 3:03
mentorNot Active15-Jan-10 3:03 
QuestionImage from camera is not refreshed in Internet Exlporer Pin
kjsl2k915-Jan-10 0:47
kjsl2k915-Jan-10 0:47 
Questionhow to convert dataset to excel retaining page loaded controls Pin
antony beula15-Jan-10 0:01
antony beula15-Jan-10 0:01 
AnswerRe: how to convert dataset to excel retaining page loaded controls Pin
CikaPero9-Mar-10 23:11
CikaPero9-Mar-10 23:11 
Hi,

with GemBox.Spreadsheet Excel C# library you can easily convert DataSet to Excel and stream it to browser.

Here is a code snippet how to do it:

// Create new ExcelFile.
var ef = new ExcelFile();

// Imports all the tables from DataSet to new file.
foreach (var dataTable in dataSet.Tables)
{
    // Add new worksheet to the file.
    var ws = ef.Worksheets.Add(dataTable.TableName);

    // Insert the data from DataTable to the worksheet starting at cell "A1".
    ws.InsertDataTable(dataTable, "A1", true);
}

// Stream file to browser.
Response.Clear();
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "attachment; filename=Employee.xls");
ef.SaveXls(Response.OutputStream);
Response.End();

QuestionWich dataaccess metod is faster - with datareader when the data is return from stored procedures or with LINQ Pin
Lyubomir Rumenov Velchev14-Jan-10 23:06
Lyubomir Rumenov Velchev14-Jan-10 23:06 
AnswerRe: Wich dataaccess metod is faster - with datareader when the data is return from stored procedures or with LINQ Pin
elizas14-Jan-10 23:22
elizas14-Jan-10 23:22 
AnswerRe: Wich dataaccess metod is faster - with datareader when the data is return from stored procedures or with LINQ Pin
Ennis Ray Lynch, Jr.15-Jan-10 3:13
Ennis Ray Lynch, Jr.15-Jan-10 3:13 
GeneralRe: Wich dataaccess metod is faster - with datareader when the data is return from stored procedures or with LINQ Pin
Lyubomir Rumenov Velchev15-Jan-10 3:41
Lyubomir Rumenov Velchev15-Jan-10 3:41 
GeneralRe: Wich dataaccess metod is faster - with datareader when the data is return from stored procedures or with LINQ Pin
Ennis Ray Lynch, Jr.15-Jan-10 3:50
Ennis Ray Lynch, Jr.15-Jan-10 3:50 
GeneralRe: Wich dataaccess metod is faster - with datareader when the data is return from stored procedures or with LINQ Pin
Mycroft Holmes15-Jan-10 11:42
professionalMycroft Holmes15-Jan-10 11:42 
AnswerRe: Wich dataaccess metod is faster - with datareader when the data is return from stored procedures or with LINQ Pin
Not Active15-Jan-10 6:10
mentorNot Active15-Jan-10 6:10 
QuestionGenerate report and download without refreshing (post-back) the page Pin
Rafferty Uy14-Jan-10 20:47
Rafferty Uy14-Jan-10 20:47 
QuestionWhy do I get "Could not load type 'AdamItiel.GlobalApp'"? Pin
senglory14-Jan-10 20:27
senglory14-Jan-10 20:27 
QuestionHow to know client IP Address ? Pin
Samarjeet Singh@india14-Jan-10 20:16
Samarjeet Singh@india14-Jan-10 20:16 
AnswerRe: How to know client IP Address ? Pin
thatraja14-Jan-10 20:36
professionalthatraja14-Jan-10 20:36 
GeneralRe: How to know client IP Address ? Pin
Samarjeet Singh@india14-Jan-10 23:14
Samarjeet Singh@india14-Jan-10 23:14 
GeneralRe: How to know client IP Address ? Pin
Manas Bhardwaj15-Jan-10 0:56
professionalManas Bhardwaj15-Jan-10 0:56 
GeneralRe: How to know client IP Address ? Pin
thatraja15-Jan-10 3:06
professionalthatraja15-Jan-10 3:06 
AnswerRe: How to know client IP Address ? Pin
April Fans17-Jan-10 16:32
April Fans17-Jan-10 16:32 
Questionasp:menu control works slow in ie7 Pin
sanjubaba14-Jan-10 18:22
sanjubaba14-Jan-10 18:22 
QuestionHow to create .Net application similar to a source safe(VSS) Pin
Pradyumna Sarode14-Jan-10 11:25
Pradyumna Sarode14-Jan-10 11:25 

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.