Click here to Skip to main content
15,886,518 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: dropdownchosen Pin
ZurdoDev1-Jan-14 15:31
professionalZurdoDev1-Jan-14 15:31 
AnswerRe: dropdownchosen Pin
Karthik_Mahalingam4-Jan-14 11:40
professionalKarthik_Mahalingam4-Jan-14 11:40 
QuestionAsp.net panel control Pin
Otekpo Emmanuel30-Dec-13 13:27
Otekpo Emmanuel30-Dec-13 13:27 
Questionscafolding Pin
Member 1049405229-Dec-13 19:59
Member 1049405229-Dec-13 19:59 
AnswerRe: scafolding Pin
thatraja29-Dec-13 23:17
professionalthatraja29-Dec-13 23:17 
QuestionASP.NET or ASP.NET MVC Pin
Ger Hayden29-Dec-13 9:52
Ger Hayden29-Dec-13 9:52 
AnswerRe: ASP.NET or ASP.NET MVC Pin
thatraja29-Dec-13 16:38
professionalthatraja29-Dec-13 16:38 
QuestionAsp.net: upload zip files and download Pin
Otekpo Emmanuel28-Dec-13 12:46
Otekpo Emmanuel28-Dec-13 12:46 
Hello friend's, how is the day going? I need some help here. In my asp.net website, I have fileupload to browse for zip files and save them to a download files folder. The snippet below save uploaded files
--------------------------------------
'get extension type
Dim ext As string=Path.GetFileNameExtension(fileupload1.PostedFile.Filename)
'get filename
Dim filename As string=Path.GetFileName(fileupload1.PostedFile.Filename)
Select Case Ext 'verify file type
Case ".Zip"
'save file to download files folder
fileupload1.SaveAs(Server.MapPath("~/download files/"+ filename))
Case Else
MsgBox("file format not allowed")
End Select
--------------------------------------
the following save the file name to sql Database
Dim constr=("my connection string is here")
Dim con as new SqlConnection(constr)
con.Open()
Dim SaveFile as String="insert into filestbl(filename,desc) values(@filename,@desc)"
Dim cmd as new SqlCommand(SaveFile,constr)
cmd.Parameters.AddWithValue("@filename",filename)
cmd.Parameters.AddWithValue("@desc",txtdesc.Text)
cmd.ExecuteReader
cmd.Dispose
constr.Dispose
constr.Close
----------------------------------
the question is, how can I enable visitors to specify a folder, and code the download button so that the selected file can be downloaded to a folder specify by the person downloading the file. Note, I bind the filestbl to DatalistControl. And, when the file is downloaded, the person should be able to unzip it in his/her system just as it is in codeproject. I am doing this with Asp.net. Any help is welcome! Thanks to all.

-- modified 30-Dec-13 15:11pm.
QuestionRe: Asp.net: upload zip files and download Pin
ZurdoDev1-Jan-14 15:33
professionalZurdoDev1-Jan-14 15:33 
QuestionAsp.net: Count number of records in sql table Pin
Otekpo Emmanuel28-Dec-13 4:13
Otekpo Emmanuel28-Dec-13 4:13 
AnswerRe: Asp.net: Count number of records in sql table Pin
Peter Leow28-Dec-13 4:29
professionalPeter Leow28-Dec-13 4:29 
GeneralRe: Asp.net: Count number of records in sql table Pin
Otekpo Emmanuel28-Dec-13 6:32
Otekpo Emmanuel28-Dec-13 6:32 
GeneralRe: Asp.net: Count number of records in sql table Pin
Peter Leow28-Dec-13 7:33
professionalPeter Leow28-Dec-13 7:33 
GeneralSolved: Asp.net: Count number of records in sql table Pin
Otekpo Emmanuel28-Dec-13 10:07
Otekpo Emmanuel28-Dec-13 10:07 
GeneralRe: Solved: Asp.net: Count number of records in sql table Pin
Peter Leow29-Dec-13 3:48
professionalPeter Leow29-Dec-13 3:48 
Questioni want to get LatLng based on textbox value. Pin
Ya Rasoolallah28-Dec-13 1:45
Ya Rasoolallah28-Dec-13 1:45 
AnswerRe: i want to get LatLng based on textbox value. Pin
Peter Leow28-Dec-13 2:26
professionalPeter Leow28-Dec-13 2:26 
GeneralRe: i want to get LatLng based on textbox value. Pin
Ya Rasoolallah31-Dec-13 11:11
Ya Rasoolallah31-Dec-13 11:11 
QuestionAsp.net and dropdown menus Pin
Otekpo Emmanuel27-Dec-13 10:30
Otekpo Emmanuel27-Dec-13 10:30 
AnswerRe: Asp.net and dropdown menus Pin
Tom Marvolo Riddle27-Dec-13 19:06
professionalTom Marvolo Riddle27-Dec-13 19:06 
Questionweb cam chat between 2 systems project Pin
Member 1048885126-Dec-13 5:24
Member 1048885126-Dec-13 5:24 
AnswerRe: web cam chat between 2 systems project Pin
Richard MacCutchan26-Dec-13 5:32
mveRichard MacCutchan26-Dec-13 5:32 
Questionhow to access the last modified time of the blob uploaded Pin
Trilok M Chowdary25-Dec-13 0:24
professionalTrilok M Chowdary25-Dec-13 0:24 
QuestionRe: how to access the last modified time of the blob uploaded Pin
ZurdoDev27-Dec-13 10:54
professionalZurdoDev27-Dec-13 10:54 
QuestionSession state handling in asp.net Pin
Otekpo Emmanuel24-Dec-13 2:39
Otekpo Emmanuel24-Dec-13 2:39 

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.