Click here to Skip to main content
11,581,081 members (63,073 online)
   

ASP.NET

 
GeneralRe: How do you debug a single ASPX file? Pin
Xarzu21-Mar-13 7:57
memberXarzu21-Mar-13 7:57 
GeneralRe: How do you debug a single ASPX file? Pin
jkirkerx21-Mar-13 10:16
memberjkirkerx21-Mar-13 10:16 
QuestionHow to open an existing excel file (not in the browser) in a new window from ASP.NET 3.5 with C# Pin
bnath00120-Mar-13 7:27
memberbnath00120-Mar-13 7:27 
AnswerRe: How to open an existing excel file (not in the browser) in a new window from ASP.NET 3.5 with C# Pin
dusty_dex20-Mar-13 9:52
memberdusty_dex20-Mar-13 9:52 
AnswerRe: How to open an existing excel file (not in the browser) in a new window from ASP.NET 3.5 with C# Pin
Bernhard Hiller20-Mar-13 23:47
memberBernhard Hiller20-Mar-13 23:47 
GeneralRe: How to open an existing excel file (not in the browser) in a new window from ASP.NET 3.5 with C# Pin
dusty_dex21-Mar-13 5:27
memberdusty_dex21-Mar-13 5:27 
QuestionASP.NET EXPORT TO EXCEL Pin
Mkanchha19-Mar-13 6:02
memberMkanchha19-Mar-13 6:02 
AnswerRe: ASP.NET EXPORT TO EXCEL Pin
Karthik Harve19-Mar-13 21:14
memberKarthik Harve19-Mar-13 21:14 
try below code.

gvRpt.AllowPaging = False
gvRpt.GridLines = GridLines.Both
Dim style As String = "<style> .text { mso-number-format:\@; } </script> "
Response.ClearContent()
Response.Clear()
Response.Buffer = True
Response.Charset = ""
Me.EnableViewState = False
Response.AddHeader("content-disposition", "attachment;filename=" & RptName & ".xls")
Response.ContentType = "application/vnd.ms-excel"
Dim sw As New StringWriter()
Dim htw As New HtmlTextWriter(sw)
gvRpt.RenderControl(htw)
Response.Write(style)
Response.Write(htw.ToString())
Response.End()

hope it works.
Vande Matharam - Jai Hind

GeneralRe: ASP.NET EXPORT TO EXCEL Pin
Mkanchha20-Mar-13 23:37
memberMkanchha20-Mar-13 23:37 
GeneralRe: ASP.NET EXPORT TO EXCEL Pin
Bernhard Hiller20-Mar-13 23:50
memberBernhard Hiller20-Mar-13 23:50 
GeneralRe: ASP.NET EXPORT TO EXCEL Pin
Mkanchha21-Mar-13 0:59
memberMkanchha21-Mar-13 0:59 
QuestionMaintaining Variables Pin
clugsy6419-Mar-13 5:53
memberclugsy6419-Mar-13 5:53 
AnswerRe: Maintaining Variables Pin
jkirkerx19-Mar-13 8:39
memberjkirkerx19-Mar-13 8:39 
GeneralRe: Maintaining Variables Pin
clugsy6419-Mar-13 9:11
memberclugsy6419-Mar-13 9:11 
GeneralRe: Maintaining Variables Pin
jkirkerx19-Mar-13 10:14
memberjkirkerx19-Mar-13 10:14 
QuestionMVC 4 and WebForm Application: # symbol is appearing in URL Pin
David Mujica19-Mar-13 5:18
memberDavid Mujica19-Mar-13 5:18 
AnswerFound Solution Pin
David Mujica19-Mar-13 10:58
memberDavid Mujica19-Mar-13 10:58 
QuestionBAT FILE NOT GIVING PROPER RETURN VALUE in TXT file Pin
Nishant kumar electronics17-Mar-13 1:46
memberNishant kumar electronics17-Mar-13 1:46 
AnswerRe: BAT FILE NOT GIVING PROPER RETURN VALUE in TXT file Pin
Richard MacCutchan17-Mar-13 2:40
mvpRichard MacCutchan17-Mar-13 2:40 
GeneralRe: BAT FILE NOT GIVING PROPER RETURN VALUE in TXT file Pin
Nishant kumar electronics17-Mar-13 8:35
memberNishant kumar electronics17-Mar-13 8:35 
GeneralRe: BAT FILE NOT GIVING PROPER RETURN VALUE in TXT file Pin
Richard MacCutchan17-Mar-13 22:01
mvpRichard MacCutchan17-Mar-13 22:01 
QuestionComplete Editable Datagrid Pin
Girish_Sharma16-Mar-13 23:02
memberGirish_Sharma16-Mar-13 23:02 
AnswerRe: Complete Editable Datagrid Pin
Chris Hambleton18-Mar-13 4:30
memberChris Hambleton18-Mar-13 4:30 
Questionasp.net c# Pin
vishal415-Mar-13 20:11
membervishal415-Mar-13 20:11 
AnswerRe: asp.net c# Pin
Sandeep Mewara15-Mar-13 20:23
mvpSandeep Mewara15-Mar-13 20:23 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 6 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid