1
Answer

ASP.NE - Selecting an item from a dropdown listbox control

Pamela

Pamela

15y
3.9k
1

I have a dropdown listbox whose SQLDataSource connects to an Oracle database from a SQL Server 2005.  Based on the department selection, the query should display all the employees in the selected department.  However, it only list a null value.  The SQL @parameter is not recognized by Oracle but the equivalent search criteria is:
Select * from department
Where department_name LIKE :department_name.
Any help would be greatly appreciated.
Answers (1)
0
Amitesh Verma

Amitesh Verma

NA 875 68.4k 9y
private void button11_Click(object sender, EventArgs e)
{
try {
Bitmap b = new Bitmap("name of the file");
b.Save("path of the folder to save");
Bitmap b = new Bitmap(@"C:\Documents and Settings\Desktop\7506.jpg");
b.Save(@"C:\Extract\test.jpg");
}
catch( Exception ex )
{
MessageBox .Show (ex.Message );
}
}
0
Ajay Saini

Ajay Saini

NA 192 7.5k 9y
Yes i have read above. It only point to images.
0
Amitesh Verma

Amitesh Verma

NA 875 68.4k 9y
have you read the link i have provided to you?It contains your solution.
0
Ajay Saini

Ajay Saini

NA 192 7.5k 9y
Hi thanks for your comment.
Actually i just want like in ASP.NET browse feature in my windows application. User just browse the location and once he clicks on OK file should be SaveAs in my solution's directory. 
0
Amitesh Verma

Amitesh Verma

NA 875 68.4k 9y
http://www.c-sharpcorner.com/Blogs/7226/create-directory-and-copysave-image-file-on-filename-from-d.aspx
 
 
 
0
Ajay Saini

Ajay Saini

NA 192 7.5k 9y
Hi Thanks for your quick reply.
I have seen second link but it have solution to add file in binary form into database which i don't want. I just want to Save a copy of the selected file for future reference into one of the folder named as "Docs" without choose location from user. This folder is available into my solution.
0
Amitesh Verma

Amitesh Verma

NA 875 68.4k 9y
http://www.dotnetperls.com/savefiledialog
 
 
 http://www.codeproject.com/Questions/47601/save-view-remove-file-using-winforms-and-C