Click here to Skip to main content
15,925,151 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWeb app not closing database connection? [modified] Pin
kbalias14-Jun-06 2:33
kbalias14-Jun-06 2:33 
AnswerRe: Web app not closing database connection? Pin
mnaveed14-Jun-06 4:06
mnaveed14-Jun-06 4:06 
AnswerRe: Web app not closing database connection? Pin
Mircea Grelus14-Jun-06 8:52
Mircea Grelus14-Jun-06 8:52 
Question.net 2.0 framework Pin
fmardani14-Jun-06 1:21
fmardani14-Jun-06 1:21 
AnswerRe: .net 2.0 framework Pin
Paddy Boyd14-Jun-06 1:28
Paddy Boyd14-Jun-06 1:28 
AnswerRe: .net 2.0 framework Pin
mnaveed14-Jun-06 3:35
mnaveed14-Jun-06 3:35 
Questiondownloading a file Pin
murari_amar14-Jun-06 1:01
murari_amar14-Jun-06 1:01 
AnswerRe: downloading a file [modified] Pin
sasidar_d14-Jun-06 4:02
sasidar_d14-Jun-06 4:02 
Hi Amar
I have pasted the part of the code snippet which will allow you to show the windows download dialog button. This should be called on any of the server click event by passing the file name


Hope this will solve your problem



<br />
<br />
 mypath = myFileName<br />
            file = New System.IO.FileInfo(mypath)<br />
            If file.Exists Then<br />
                frm.Response.Clear()<br />
                frm.Response.AddHeader("Content-Disposition", "attachment; filename=" & file.Name)<br />
                frm.Response.AddHeader("Content-Length", file.Length.ToString())<br />
                frm.Response.ContentType = strType<br />
                frm.Response.WriteFile(file.FullName)<br />
                frm.Response.End()<br />
            Else<br />
                frm.Response.Write("This file does not exist.")<br />
            End If<br />


Happy Programming
Sasidar

-- modified at 10:02 Wednesday 14th June, 2006
QuestionMMS Pin
OmegaSupreme14-Jun-06 0:33
OmegaSupreme14-Jun-06 0:33 
QuestionTemplate Column in GridView 2.0 problem!!! Pin
amin_behzadi14-Jun-06 0:17
professionalamin_behzadi14-Jun-06 0:17 
AnswerRe: Template Column in GridView 2.0 problem!!! Pin
Paddy Boyd14-Jun-06 0:25
Paddy Boyd14-Jun-06 0:25 
AnswerRe: Template Column in GridView 2.0 problem!!! Pin
albCode14-Jun-06 0:34
albCode14-Jun-06 0:34 
AnswerRe: Template Column in GridView 2.0 problem!!! Pin
VenkataRamana.Gali14-Jun-06 0:42
VenkataRamana.Gali14-Jun-06 0:42 
QuestionThe AJAX "Top 5" security tips Pin
Moe Tarhini14-Jun-06 0:09
Moe Tarhini14-Jun-06 0:09 
QuestionSitemap Pin
Brendan Vogt14-Jun-06 0:08
Brendan Vogt14-Jun-06 0:08 
AnswerRe: Sitemap Pin
minhpc_bk14-Jun-06 20:25
minhpc_bk14-Jun-06 20:25 
Questioncode\logic to generate userid and password automatically [modified] Pin
subhsam13-Jun-06 23:56
subhsam13-Jun-06 23:56 
AnswerRe: code\logic to generate userid and password automatically Pin
Mircea Grelus14-Jun-06 8:59
Mircea Grelus14-Jun-06 8:59 
QuestionEmbedded Resource for a Web App ? Pin
Tee+13-Jun-06 23:38
Tee+13-Jun-06 23:38 
AnswerRe: Embedded Resource for a Web App ? Pin
RichardGrimmer14-Jun-06 0:51
RichardGrimmer14-Jun-06 0:51 
AnswerRe: Embedded Resource for a Web App ? Pin
minhpc_bk14-Jun-06 20:31
minhpc_bk14-Jun-06 20:31 
Questionrecursive function output ..... [modified] Pin
shah zad13-Jun-06 23:37
shah zad13-Jun-06 23:37 
QuestionPDa game Pin
prabuboyz13-Jun-06 23:31
prabuboyz13-Jun-06 23:31 
AnswerRe: PDA game Pin
RichardGrimmer14-Jun-06 0:54
RichardGrimmer14-Jun-06 0:54 
QuestionHTTP Header s Pin
Suamal13-Jun-06 23:10
Suamal13-Jun-06 23:10 

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.