How to upload a file? I have attached a pic showing the scenario. On clicking upload photo a window opens, how to give the File name in that text box?
Thanks
Sudarshan
2 Answers, 1 is accepted
0
Accepted
Boyan Boev
Telerik team
answered on 05 Apr 2013, 12:47 PM
Hi Sudarshan,
Please try out this code:
using ArtOfTest.WebAii.Win32.Dialogs;
FileUploadDialog dialog = new FileUploadDialog(ActiveBrowser, @"PathToYourPhoto", DialogButton.OPEN);
Manager.DialogMonitor.Start();
Manager.DialogMonitor.AddDialog(dialog);
Button.Click(); //Click on the upload photo button.