Click here to Skip to main content
15,919,613 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Crystal report Pin
kumarjammula22-May-07 23:34
kumarjammula22-May-07 23:34 
GeneralRe: Crystal report Pin
Sherin Iranimose22-May-07 23:43
Sherin Iranimose22-May-07 23:43 
QuestionData Text Formatting asp.net 2.0 [modified] Pin
Jay_se22-May-07 19:07
Jay_se22-May-07 19:07 
AnswerRe: Data Text Formatting asp.net 2.0 Pin
Sherin Iranimose22-May-07 19:26
Sherin Iranimose22-May-07 19:26 
QuestionData Text Formatting asp.net 2.0 Pin
Jay_se22-May-07 21:06
Jay_se22-May-07 21:06 
QuestionHow to send grid view data into a excel file? Pin
here2learn22-May-07 19:00
here2learn22-May-07 19:00 
AnswerRe: How to send grid view data into a excel file? Pin
Jagadeesh Jupalli22-May-07 19:39
Jagadeesh Jupalli22-May-07 19:39 
AnswerRe: How to send grid view data into a excel file? Pin
varshavmane22-May-07 19:47
varshavmane22-May-07 19:47 
Try This:

#Region "Export To Excel Button Click Event"
Protected Sub cmdExportToExcel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdExportToExcel.Click
Dim sw As StringWriter = New StringWriter()
Dim htw As HtmlTextWriter = New HtmlTextWriter(sw)
Try
Dim ml_strFileName As String = ml_strSaveFileName
Dim attachment As String = "attachment; filename=" & ml_strFileName & ".xls"
Response.ClearContent()
Response.AddHeader("content-disposition", attachment)
Response.ContentType = "application/ms-excel"
Gridview1.RenderControl(htw)
Response.Write(sw.ToString())
Response.End()
Catch ex As Exception
Finally
If Not sw Is Nothing Then
If Not htw Is Nothing Then
sw = Nothing
htw = Nothing
End If
End If
End Try
End Sub
#End Region

#Region "VerifyRenderingInServerForm"
Public Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)

End Sub
#End Region


Hope this helps u???
QuestionApplication data caching on a web farm Pin
kaban15622-May-07 18:58
kaban15622-May-07 18:58 
AnswerRe: Application data caching on a web farm Pin
KarasukoJ23-May-07 5:28
KarasukoJ23-May-07 5:28 
QuestionProcess in Asp.net C# Pin
AnhTin22-May-07 18:54
AnhTin22-May-07 18:54 
AnswerRe: Process in Asp.net C# Pin
kubben23-May-07 7:29
kubben23-May-07 7:29 
AnswerRe: Process in Asp.net C# Pin
danimar ribeiro18-Dec-09 5:02
danimar ribeiro18-Dec-09 5:02 
QuestionUsing AJAX in OPERA Pin
248912822-May-07 18:50
248912822-May-07 18:50 
AnswerRe: Using AJAX in OPERA Pin
Christian Graus22-May-07 20:07
protectorChristian Graus22-May-07 20:07 
AnswerRe: Using AJAX in OPERA Pin
szukuro22-May-07 22:30
szukuro22-May-07 22:30 
QuestionOpening attachments in textbox Pin
Rajiya22-May-07 18:17
Rajiya22-May-07 18:17 
AnswerRe: Opening attachments in textbox Pin
N a v a n e e t h22-May-07 20:17
N a v a n e e t h22-May-07 20:17 
GeneralRe: Opening attachments in textbox Pin
Rajiya22-May-07 20:51
Rajiya22-May-07 20:51 
QuestionAdd some more fields for future based..., Pin
Member 387988122-May-07 18:08
Member 387988122-May-07 18:08 
AnswerRe: Add some more fields for future based..., Pin
Sherin Iranimose22-May-07 19:09
Sherin Iranimose22-May-07 19:09 
QuestionHow to time splash screens? Pin
jazz morgan22-May-07 18:03
jazz morgan22-May-07 18:03 
AnswerRe: How to time splash screens? Pin
Christian Graus22-May-07 20:08
protectorChristian Graus22-May-07 20:08 
Questioninsert & play flash file Pin
shufun22-May-07 16:40
shufun22-May-07 16:40 
AnswerRe: insert & play flash file Pin
sra2223-May-07 0:35
sra2223-May-07 0:35 

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.