Click here to Skip to main content
15,884,298 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Frames in HTML Pin
sathesh pandian19-Jul-07 21:04
sathesh pandian19-Jul-07 21:04 
QuestionI have a browser related issue... Pin
JUNEYT20-Feb-07 10:49
JUNEYT20-Feb-07 10:49 
AnswerRe: I have a browser related issue... Pin
WoutL20-Feb-07 11:49
WoutL20-Feb-07 11:49 
QuestionMulti File Downloads Pin
No-e20-Feb-07 8:18
No-e20-Feb-07 8:18 
AnswerRe: Multi File Downloads Pin
Kschuler20-Feb-07 8:24
Kschuler20-Feb-07 8:24 
GeneralRe: Multi File Downloads Pin
No-e20-Feb-07 8:29
No-e20-Feb-07 8:29 
GeneralRe: Multi File Downloads [modified] Pin
Kschuler20-Feb-07 8:39
Kschuler20-Feb-07 8:39 
GeneralRe: Multi File Downloads Pin
No-e20-Feb-07 8:48
No-e20-Feb-07 8:48 
Not sure the loop is getting messed up, I jsut verified that. I call the download function below, when the .Writefile is called the user is presented with a dialogue box to save the file, as soon as "OK" is clicked the file is saved and the debugger does not allow any stepping, step out of procedure or anything.

I just placed a break point on the "Page Load" event and found that it is called as soon as I click the button, but it does not appear that impacts the selections.

    Private Sub DownloadFile(ByVal fname As String, ByVal forceDownload As Boolean)<br />
        Dim path As Path<br />
        Dim fullpath = path.GetFullPath(fname)<br />
        Dim name = path.GetFileName(fullpath)<br />
        Dim ext = path.GetExtension(fullpath)<br />
        Dim type As String = ""<br />
<br />
        If Not IsDBNull(ext) Then<br />
            ext = LCase(ext)<br />
        End If<br />
<br />
        Select Case ext<br />
            Case ".htm", ".html"<br />
                type = "text/HTML"<br />
            Case ".txt"<br />
                type = "text/plain"<br />
            Case ".doc", ".rtf"<br />
                type = "Application/msword"<br />
            Case ".csv", ".xls"<br />
                type = "Application/x-msexcel"<br />
            Case Else<br />
                type = "text/plain"<br />
        End Select<br />
<br />
        If (forceDownload) Then<br />
            Response.AppendHeader("content-disposition", _<br />
            "attachment; filename=" + name)<br />
        End If<br />
        If type <> "" Then<br />
            Response.ContentType = type<br />
        End If<br />
<br />
        Response.WriteFile(fullpath)<br />
        Response.End()<br />
<br />
    End Sub

GeneralRe: Multi File Downloads Pin
Kschuler20-Feb-07 9:00
Kschuler20-Feb-07 9:00 
GeneralRe: Multi File Downloads Pin
No-e20-Feb-07 10:30
No-e20-Feb-07 10:30 
GeneralRe: Multi File Downloads Pin
badgrs21-Feb-07 0:46
badgrs21-Feb-07 0:46 
Questionvbs file include Pin
Sachin Pimpale19-Feb-07 22:53
Sachin Pimpale19-Feb-07 22:53 
AnswerRe: vbs file include Pin
Christian Graus19-Feb-07 22:56
protectorChristian Graus19-Feb-07 22:56 
GeneralRe: vbs file include Pin
Sachin Pimpale19-Feb-07 22:58
Sachin Pimpale19-Feb-07 22:58 
GeneralRe: vbs file include Pin
Christian Graus19-Feb-07 23:03
protectorChristian Graus19-Feb-07 23:03 
GeneralRe: vbs file include Pin
andyharman20-Feb-07 0:31
professionalandyharman20-Feb-07 0:31 
AnswerRe: vbs file include Pin
andyharman20-Feb-07 0:26
professionalandyharman20-Feb-07 0:26 
QuestionData grid! Pin
nclauder19-Feb-07 22:50
nclauder19-Feb-07 22:50 
AnswerRe: Data grid! Pin
Christian Graus19-Feb-07 23:02
protectorChristian Graus19-Feb-07 23:02 
AnswerRe: Data grid! Pin
sathesh pandian20-Feb-07 19:34
sathesh pandian20-Feb-07 19:34 
QuestionRe: Data grid! Pin
nclauder20-Feb-07 19:51
nclauder20-Feb-07 19:51 
AnswerRe: Data grid! Pin
Vipin.d20-Feb-07 22:13
Vipin.d20-Feb-07 22:13 
QuestionPrinting Table Pin
Mr.Sam19-Feb-07 17:19
Mr.Sam19-Feb-07 17:19 
AnswerRe: Printing Table Pin
Ankur.Bakliwal19-Feb-07 17:27
Ankur.Bakliwal19-Feb-07 17:27 
GeneralRe: Printing Table Pin
Mr.Sam19-Feb-07 17:55
Mr.Sam19-Feb-07 17: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.