Click here to Skip to main content
15,887,350 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: I wanted to upload Multiple Files With ListBox in ASP.NET Pin
Member 120161061-Oct-15 17:12
Member 120161061-Oct-15 17:12 
GeneralRe: I wanted to upload Multiple Files With ListBox in ASP.NET Pin
Member 120161061-Oct-15 17:23
Member 120161061-Oct-15 17:23 
QuestionDisplay Image from MSSQL database into asp.net page using vb Pin
caffrey_130-Sep-15 4:52
caffrey_130-Sep-15 4:52 
AnswerRe: Display Image from MSSQL database into asp.net page using vb Pin
Wendelius30-Sep-15 5:01
mentorWendelius30-Sep-15 5:01 
GeneralRe: Display Image from MSSQL database into asp.net page using vb Pin
caffrey_130-Sep-15 5:18
caffrey_130-Sep-15 5:18 
GeneralRe: Display Image from MSSQL database into asp.net page using vb Pin
caffrey_130-Sep-15 20:48
caffrey_130-Sep-15 20:48 
GeneralRe: Display Image from MSSQL database into asp.net page using vb Pin
Wendelius1-Oct-15 8:34
mentorWendelius1-Oct-15 8:34 
QuestionI'm working on upload exe file in c# Pin
Member 1201610630-Sep-15 0:04
Member 1201610630-Sep-15 0:04 
I got the source code but there is no output coming out.
there is no any error too. can you please help me..

This is the source code I used in asp:
XML
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:FileUpload ID="FileUpload1" runat="server" AllowMultiple="true" style="z-index: 1; left: 420px; top: 315px; position: absolute; width: 285px; height: 22px" />
<asp:Button ID="btnUpload" Text="Upload" runat="server" OnClick ="UploadMultipleFiles" accept ="image/gif, image/jpeg, file/exe" style="z-index: 1; left: 420px; top: 341px; position: absolute" />
            <hr />
<asp:Label ID="lblSuccess" runat="server" ForeColor ="Red" style="z-index: 1; left: 518px; top: 344px; position: absolute" />


c#:
C#
foreach (HttpPostedFile postedFile in FileUpload1.PostedFiles)
            {

                string fileName = Path.GetFileName(postedFile.FileName);

                postedFile.SaveAs(Server.MapPath("~/Uploads/") + fileName);

            }

            lblSuccess.Text = string.Format("{0} files have been uploaded successfully.", FileUpload1.PostedFiles.Count)

AnswerRe: I'm working on upload exe file in c# Pin
Richard Deeming30-Sep-15 2:37
mveRichard Deeming30-Sep-15 2:37 
GeneralRe: I'm working on upload exe file in c# Pin
Member 1201610630-Sep-15 4:17
Member 1201610630-Sep-15 4:17 
QuestionHow to display image in a treeview from database Pin
Zahid Hayat29-Sep-15 21:41
Zahid Hayat29-Sep-15 21:41 
AnswerRe: How to display image in a treeview from database Pin
Blikkies29-Sep-15 22:55
professionalBlikkies29-Sep-15 22:55 
GeneralRe: How to display image in a treeview from database Pin
Zahid Hayat30-Sep-15 2:56
Zahid Hayat30-Sep-15 2:56 
Questionhow to highlight the search result in datagridview using c#. Pin
Member 1201610628-Sep-15 0:15
Member 1201610628-Sep-15 0:15 
AnswerRe: how to highlight the search result in datagridview using c#. Pin
taleebanwar28-Sep-15 21:54
taleebanwar28-Sep-15 21:54 
GeneralRe: how to highlight the search result in datagridview using c#. Pin
Member 1201610630-Sep-15 15:27
Member 1201610630-Sep-15 15:27 
Questionwhen I press ENTER search button it automatically opening another page. why is that so? Pin
geetha2727-Sep-15 21:42
geetha2727-Sep-15 21:42 
AnswerRe: when I press ENTER search button it automatically opening another page Pin
Afzaal Ahmad Zeeshan27-Sep-15 22:11
professionalAfzaal Ahmad Zeeshan27-Sep-15 22:11 
GeneralRe: when I press ENTER search button it automatically opening another page Pin
Member 1201610628-Sep-15 0:06
Member 1201610628-Sep-15 0:06 
AnswerRe: when I press ENTER search button it automatically opening another page. why is that so? Pin
F-ES Sitecore27-Sep-15 22:42
professionalF-ES Sitecore27-Sep-15 22:42 
GeneralRe: when I press ENTER search button it automatically opening another page. why is that so? Pin
Member 1201610628-Sep-15 0:07
Member 1201610628-Sep-15 0:07 
GeneralRe: when I press ENTER search button it automatically opening another page. why is that so? Pin
F-ES Sitecore28-Sep-15 0:15
professionalF-ES Sitecore28-Sep-15 0:15 
GeneralRe: when I press ENTER search button it automatically opening another page. why is that so? Pin
Member 1201610628-Sep-15 0:27
Member 1201610628-Sep-15 0:27 
QuestionIsPostBack Pin
Member 1116162527-Sep-15 19:26
Member 1116162527-Sep-15 19:26 
AnswerRe: IsPostBack Pin
Richard MacCutchan27-Sep-15 21:44
mveRichard MacCutchan27-Sep-15 21:44 

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.