eldhose1985 0 Newbie Poster

hi,

I have try to load webpage and navigate in my application i succesfully login and navigate to the transaction report page now i want to get the report for that i want to click the button in that page

"<input type="button" id="btnSearch" onclick="onClickButton('btnSearch');" class="Button" value="Search">"

i used webbrowser1.document.getelementbyid('btnSearch').Invokemember("click") in Documentcompleted event but after executing these line giving script error "Undefined is null or not an object "

the btnSearch is calling an ajaxscript

function onClickButton(rName)             
{   if(validateData()) 
 {                                                        document.getElementById("ctl00_WorkSpace_ctlCustAVIHistory_hdnReset").value = "0";                                    ctl00_WorkSpace_ctlCustAVIHistory_ajxResultPanel.AjaxRequest("NewSearch");                                                     } 
}

How can i Call these function in Documentcompleteevent ?

Thanks in advance
Eldhose