Click here to Skip to main content
15,913,773 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: dropdown list Validator Pin
Michael Sync4-Jan-08 4:23
Michael Sync4-Jan-08 4:23 
GeneralPreventing multiple clicks on a button. Pin
Janu_M3-Jan-08 20:12
Janu_M3-Jan-08 20:12 
GeneralRe: Preventing multiple clicks on a button. Pin
samerh3-Jan-08 20:28
samerh3-Jan-08 20:28 
GeneralRe: Preventing multiple clicks on a button. Pin
Janu_M3-Jan-08 21:27
Janu_M3-Jan-08 21:27 
GeneralRe: Preventing multiple clicks on a button. Pin
Michael Sync3-Jan-08 21:30
Michael Sync3-Jan-08 21:30 
GeneralRe: Preventing multiple clicks on a button. Pin
Declan Bright4-Jan-08 1:47
Declan Bright4-Jan-08 1:47 
Generalwant to fransfer datas from sql server to excel Pin
Deepthy.P.M3-Jan-08 20:08
Deepthy.P.M3-Jan-08 20:08 
GeneralRe: want to fransfer datas from sql server to excel Pin
kumareshTMC3-Jan-08 22:27
kumareshTMC3-Jan-08 22:27 
Imports System.IO

Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged

End Sub

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Response.Clear()

Response.AddHeader("content-disposition", String.Format("attachment;filename={0}.xls", "tmc.xls"))
'Response.AddHeader("content-disposition", String.Format("attachment;filename={0}", "kumaresh"))

Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.NoCache)
'Response.ContentType = "application/ms-excel"
Response.ContentType = "application/"
Dim stringWrite As New StringWriter()
Dim htmlWrite As New HtmlTextWriter(stringWrite)
GridView1.RenderBeginTag(htmlWrite)
GridView1.RenderControl(htmlWrite)
GridView1.RenderEndTag(htmlWrite)
Response.Write(stringWrite.ToString())
Response.End()
End Sub
Public Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)

End Sub
GeneralRe: want to fransfer datas from sql server to excel Pin
Deepthy.P.M4-Jan-08 1:42
Deepthy.P.M4-Jan-08 1:42 
GeneralDatabase Exception Pin
SreejithAchutan3-Jan-08 20:02
SreejithAchutan3-Jan-08 20:02 
GeneralRe: Database Exception Pin
Michael Sync3-Jan-08 20:08
Michael Sync3-Jan-08 20:08 
GeneralRe: Database Exception Pin
SreejithAchutan3-Jan-08 20:10
SreejithAchutan3-Jan-08 20:10 
GeneralRe: Database Exception Pin
Michael Sync3-Jan-08 20:50
Michael Sync3-Jan-08 20:50 
GeneralRe: Database Exception Pin
SreejithAchutan3-Jan-08 21:39
SreejithAchutan3-Jan-08 21:39 
GeneralRe: Database Exception Pin
Michael Sync3-Jan-08 21:54
Michael Sync3-Jan-08 21:54 
GeneralRe: Database Exception Pin
Paul Conrad4-Jan-08 6:52
professionalPaul Conrad4-Jan-08 6:52 
GeneralRe: Database Exception Pin
SreejithAchutan3-Jan-08 21:49
SreejithAchutan3-Jan-08 21:49 
GeneralRe: Database Exception Pin
SreejithAchutan3-Jan-08 22:28
SreejithAchutan3-Jan-08 22:28 
Questionupdate button in grid view Pin
Sonia Gupta3-Jan-08 19:53
Sonia Gupta3-Jan-08 19:53 
GeneralRe: update button in grid view Pin
Michael Sync3-Jan-08 19:57
Michael Sync3-Jan-08 19:57 
GeneralRe: update button in grid view Pin
Sonia Gupta3-Jan-08 20:10
Sonia Gupta3-Jan-08 20:10 
GeneralRe: update button in grid view [modified] Pin
Michael Sync3-Jan-08 20:20
Michael Sync3-Jan-08 20:20 
GeneralRe: update button in grid view Pin
Sonia Gupta3-Jan-08 20:24
Sonia Gupta3-Jan-08 20:24 
GeneralRe: update button in grid view Pin
Michael Sync3-Jan-08 20:48
Michael Sync3-Jan-08 20:48 
GeneralRe: update button in grid view Pin
Sonia Gupta3-Jan-08 20:55
Sonia Gupta3-Jan-08 20:55 

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.