Click here to Skip to main content
15,902,634 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: My Dropdown List not inserting selected value into database. Pin
padminiselvaraj18-May-12 17:11
padminiselvaraj18-May-12 17:11 
AnswerRe: My Dropdown List not inserting selected value into database. Pin
Apocalypse Now20-May-12 14:34
Apocalypse Now20-May-12 14:34 
GeneralRe: My Dropdown List not inserting selected value into database. Pin
Jack Li22-May-12 20:22
Jack Li22-May-12 20:22 
GeneralRe: My Dropdown List not inserting selected value into database. Pin
Apocalypse Now22-May-12 20:35
Apocalypse Now22-May-12 20:35 
GeneralRe: My Dropdown List not inserting selected value into database. Pin
dababy31-May-12 6:42
dababy31-May-12 6:42 
GeneralRe: My Dropdown List not inserting selected value into database. Pin
dababy31-May-12 6:43
dababy31-May-12 6:43 
AnswerRe: My Dropdown List not inserting selected value into database. Pin
vvashishta25-May-12 2:52
vvashishta25-May-12 2:52 
QuestionUpload file without using file upload control Pin
Member 834058716-May-12 23:18
Member 834058716-May-12 23:18 
I want to use file upload in my website, without using file upload control.
I have used an asp textbox & an asp button. On clicking the button, the path of the file to be uploaded, comes in text box.
Now, how can I upload the file whose path is there in the text box.
Code that I used till now for button click is given below:

protected void btnUpload_Click(object sender, EventArgs e)
{
OpenFileDialog fdlg = new OpenFileDialog();
fdlg.Title = "C# Corner Open File Dialog";

fdlg.InitialDirectory = @"c:\";
fdlg.Filter = "All files (*.*)|*.*|All files (*.*)|*.*";
fdlg.FilterIndex = 2;

Thread stathread = new Thread(new ThreadStart(() => fdlg.ShowDialog()));


stathread.SetApartmentState(ApartmentState.STA);

stathread.IsBackground = true;
stathread.Start();

stathread.Join();


txtUpload.Text = fdlg.FileName;
}

modified 17-May-12 5:33am.

AnswerRe: Upload file without using file upload control Pin
Jack Li22-May-12 20:27
Jack Li22-May-12 20:27 
QuestionPayable user creation Pin
anishkannan16-May-12 18:29
anishkannan16-May-12 18:29 
AnswerRe: Payable user creation Pin
egenis16-May-12 18:59
egenis16-May-12 18:59 
GeneralRe: Payable user creation Pin
anishkannan16-May-12 19:05
anishkannan16-May-12 19:05 
GeneralRe: Payable user creation Pin
Richard MacCutchan16-May-12 23:14
mveRichard MacCutchan16-May-12 23:14 
AnswerRe: Payable user creation Pin
jkirkerx19-May-12 19:23
professionaljkirkerx19-May-12 19:23 
QuestionWhen the width of DropDownList and TextBox seted to same, The width of the TextBox longer than the DropDownList's. Pin
Apocalypse Now16-May-12 16:09
Apocalypse Now16-May-12 16:09 
AnswerRe: When the width of DropDownList and TextBox seted to same, The width of the TextBox longer than the DropDownList's. Pin
jkirkerx16-May-12 17:41
professionaljkirkerx16-May-12 17:41 
GeneralRe: When the width of DropDownList and TextBox seted to same, The width of the TextBox longer than the DropDownList's. Pin
Apocalypse Now17-May-12 17:10
Apocalypse Now17-May-12 17:10 
Questionasp.net image gallary Pin
Inderjeet Kaur16-May-12 7:12
Inderjeet Kaur16-May-12 7:12 
AnswerRe: asp.net image gallary Pin
Sandeep Mewara16-May-12 8:11
mveSandeep Mewara16-May-12 8:11 
GeneralRe: asp.net image gallary Pin
Inderjeet Kaur17-May-12 1:20
Inderjeet Kaur17-May-12 1:20 
QuestionOffice Automation Pin
Ganesh Nikam16-May-12 0:37
Ganesh Nikam16-May-12 0:37 
AnswerRe: Office Automation Pin
Parwej Ahamad16-May-12 1:58
professionalParwej Ahamad16-May-12 1:58 
AnswerRe: Office Automation Pin
egenis16-May-12 19:01
egenis16-May-12 19:01 
GeneralRe: Office Automation Pin
Bernhard Hiller17-May-12 21:30
Bernhard Hiller17-May-12 21:30 
QuestionHow to trigger a datagrid event when a checkbox is checked? Pin
vandanamj15-May-12 23:40
vandanamj15-May-12 23:40 

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.