A
Andla Rand
Hi,
I have an uggly solution to send information to a file upload control or
IHTMLInputFileElement.
For security reason Microsoft doesn't allow this. To get around this I
created this small sample code.
If you have a better solution I would be grateful. Please let me know.
string type=((IHTMLInputElement)ei).type;
if(type=="file")
{
((IHTMLElement2)ei).focus();
SendKeys.SendWait(arg2);
}
Yours sincerely
Andla
I have an uggly solution to send information to a file upload control or
IHTMLInputFileElement.
For security reason Microsoft doesn't allow this. To get around this I
created this small sample code.
If you have a better solution I would be grateful. Please let me know.
string type=((IHTMLInputElement)ei).type;
if(type=="file")
{
((IHTMLElement2)ei).focus();
SendKeys.SendWait(arg2);
}
Yours sincerely
Andla