How to settext to Asp.Net FileUpload?
e.g. on asp.net web page, I have:
<asp:FileUpload ID="FileUpload_String_largeIcon" runat="server" />
HtmlInputElement _ControlOflargeIcon = (HtmlInputElement)_ContainerOfControlOflargeIcon.ChildElements.Find("FileUpload_String_largeIcon");
CommandParameters _A = new CommandParameters(WaitFor.None, PopupAction.ConfirmOK);
_ControlOflargeIcon.Click(_A);
_ControlOflargeIcon.SetText("D:\\Test\\1.jpg");
I want to set the file path:
HtmlInputElement _ControlOflargeIcon = (HtmlInputElement)_ContainerOfControlOflargeIcon.ChildElements.Find("FileUpload_String_largeIcon");
_ControlOflargeIcon.SetText("D:\\Test\\1.jpg");
It is not working.