Click here to Skip to main content
15,919,931 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ASP Controls are not showing in the Page : Urgent Pin
DKalepu22-Jul-07 20:43
DKalepu22-Jul-07 20:43 
GeneralRe: ASP Controls are not showing in the Page : Urgent Pin
Kurian_Kurian22-Jul-07 21:17
Kurian_Kurian22-Jul-07 21:17 
GeneralRe: ASP Controls are not showing in the Page : Urgent Pin
Imran Khan Pathan22-Jul-07 23:32
Imran Khan Pathan22-Jul-07 23:32 
GeneralRe: ASP Controls are not showing in the Page : Urgent Pin
Kurian_Kurian23-Jul-07 1:09
Kurian_Kurian23-Jul-07 1:09 
QuestionReportviewer problem Pin
sidbaruah22-Jul-07 20:13
sidbaruah22-Jul-07 20:13 
AnswerRe: Reportviewer problem Pin
Urs Enzler22-Jul-07 22:48
Urs Enzler22-Jul-07 22:48 
GeneralRe: Reportviewer problem Pin
sidbaruah22-Jul-07 22:54
sidbaruah22-Jul-07 22:54 
QuestionSolution to multiple file upload control Pin
Hari_101022-Jul-07 20:11
Hari_101022-Jul-07 20:11 
Hi all,

I have found a solution to upload multiple files in one click without a multiple file upload control. The solution is as follows,

1.Create a website with Default.aspx page.
2.Drag and drop controls ListBox and Button in the Default.aspx page.
3.Now go to Deafult.aspx.cs and add the following code,

using System;
using System.Drawing;
using System.Windows.Forms;

public partial class _Default : System.Web.UI.Page
{
public System.Windows.Forms.OpenFileDialog openFileDialog1
=new OpenFileDialog();

protected void btn_browse_Click(object sender, EventArgs e)
{
this.openFileDialog1.Multiselect = true;
openFileDialog1.ShowDialog();
string[] files = openFileDialog1.FileNames;
for (int i = 0; i < files.Length; i++)
{
lst_files.Items.Add(files[i]);
}
}
}

4.Press F5 to run the application.
5.Now you will be able to add the multiple files in the list box.

But my problem now is, how will i get the file contents and file name of the multiple files from the list box and updated into the database.

Could anyone of you help me out to solve this problem.

Thanks and Regards,
Hariharan C
AnswerRe: Solution to multiple file upload control Pin
N a v a n e e t h22-Jul-07 22:37
N a v a n e e t h22-Jul-07 22:37 
GeneralRe: Solution to multiple file upload control Pin
Hari_101022-Jul-07 22:42
Hari_101022-Jul-07 22:42 
GeneralRe: Solution to multiple file upload control Pin
N a v a n e e t h22-Jul-07 22:57
N a v a n e e t h22-Jul-07 22:57 
GeneralRe: Solution to multiple file upload control Pin
Hari_101022-Jul-07 23:01
Hari_101022-Jul-07 23:01 
QuestionCaching issue in .NET 1.1 Pin
Vipul Mehta22-Jul-07 19:41
Vipul Mehta22-Jul-07 19:41 
AnswerRe: Caching issue in .NET 1.1 Pin
N a v a n e e t h22-Jul-07 22:27
N a v a n e e t h22-Jul-07 22:27 
Questionhow to align dynamically generated control in palceholder control Pin
imranafsari22-Jul-07 19:23
imranafsari22-Jul-07 19:23 
Questionasp.net equivalent of php's 'Include' Pin
gvanto22-Jul-07 19:21
gvanto22-Jul-07 19:21 
AnswerRe: asp.net equivalent of php's 'Include' Pin
Paddy Boyd22-Jul-07 22:12
Paddy Boyd22-Jul-07 22:12 
GeneralRe: asp.net equivalent of php's 'Include' Pin
gvanto23-Jul-07 4:05
gvanto23-Jul-07 4:05 
Questioncreate image control at runtime [urgent] Pin
Milind Panchal22-Jul-07 18:58
Milind Panchal22-Jul-07 18:58 
Questiondate query Pin
Sonia Gupta22-Jul-07 18:49
Sonia Gupta22-Jul-07 18:49 
AnswerRe: date query Pin
Amit.Amit.Amit...22-Jul-07 19:35
Amit.Amit.Amit...22-Jul-07 19:35 
GeneralRe: date query Pin
Sonia Gupta22-Jul-07 19:47
Sonia Gupta22-Jul-07 19:47 
AnswerRe: date query Pin
Sathesh Sakthivel22-Jul-07 19:36
Sathesh Sakthivel22-Jul-07 19:36 
GeneralRe: date query Pin
Sonia Gupta22-Jul-07 19:49
Sonia Gupta22-Jul-07 19:49 
AnswerRe: date query Pin
imranafsari22-Jul-07 19:44
imranafsari22-Jul-07 19: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.