Click here to Skip to main content
15,905,874 members

Comments by manimaran4187 (Top 5 by date)

manimaran4187 9-Jul-13 11:55am View    
Please any one can tell near solution to my problem .................
manimaran4187 9-Jul-13 9:02am View    
Hi Manfred,
Am using a web browser in my application.Through web browser am trying to click the button .Am writting my code under axwebbrowserDocumentComplete.So am not able to click it.



private void axWebBrowser1_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
{

if (myHTMLDocument.readyState == "complete")
{
if (!Provider.Trim().Equals(""))
{

HTMLInputElement InputElement1 = (HTMLInputElement)myHTMLDocument.all.item("ctl00$MultiProvider1$providerDropDown", 0);
InputElement1.value = Provider;


HTMLDivElement DropDown = (HTMLDivElement)myHTMLDocument.getElementById("ctl00_MultiProvider1_providerDropDown_DropDown");
DropDown.click();


HTMLInputElement submitButton = (HTMLInputElement)myHTMLDocument.all.item("ctl00$MultiProvider1$Imagebutton1",0);
submitButton.focus();
submitButton.click();
}
}
}
manimaran4187 9-Jul-13 7:13am View    
Is it possible to click button without having onclick event ?
manimaran4187 9-Jul-13 7:09am View    
Can any one please tell me any alternate way to click the button please. I currently used

htmlinputelement img =(htmlinputelement)myhtmldocument.getelementsbyid("......");
img.focus();
img.click();


not worked pls can any one give solution pls
manimaran4187 9-Jul-13 6:53am View    
i have a <input tag with id and input name and ait = go and src =".jpg" like this it is not having onclick event .am not able to fire the button. is there any way to fire input type = image.