can you please tell me how? i mean to say which properties i have to set or which methods i have to use? actually i need to upload picture file and at the same time i need to insert its path into database.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Windows.Forms.DialogResult.OK Then
TextBox1.Text = OpenFileDialog1.FileName
I am working on a page where I am synamicall creating controls, and then adding events to those controls.
Those events are not firing on the first click, but they are firing on th second click.
Here is my code for the page.
ArrayList optionsGroup = (ArrayList)optionsHash[ optionHeaderName ];
if (optionsGroup == null)
optionsGroup = new ArrayList();
//remove old arraylist group and replace with new
bool isLight = true;
foreach (DictionaryEntry de in optionsHash)
String optionHeader = (String)de.Key;
if (optionHeader != "PAINT TYPE" )
AjaxControlToolkit.AccordionPane pane = new AjaxControlToolkit.AccordionPane();
Label head = new Label();
head.Text = optionHeader;
I want to delete the directory which is having two images. So for deleting the directory i'm deleting images first but still after deleting the images my directory showing it's size 42.kb but the directory is having nothing. Due to this problem i cann't delete the directory and it's throwing the error "The directory is not empty"