C#.NET + Java script error in Screen Scrapping application<p style="margin:0in 0in 0pt"><font face=Calibri>We are facing some issues in our current application. The details about the problem are given in comments.</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri> </font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Comment : We are doing screen scrapping application using C#.NET  Win forms and web browser control. We need to automate “search” functionality in one of the web application hosted in the web browser control. We have 2 pages viz. “Search” page and “DetailsResult” page.  The details about the issue is given in steps.</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri> </font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Step 1: when the application is launched “Search” page is loaded in to web browser control</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Step 2: we programmatically provide data to be searched in text fields and click on the search button on the “Search” page</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Step 3: Then, search results are displayed on “Grid” control on the same page</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Step 4: The details about the search result is shown in “Details” Page. This page is called as soon as we click on the hyperlink present in the data grid.</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri> </font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>For the first iteration, i.e. from step 1 to step 4, works fine. </font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>However the problem starts for second iteration. When we try to search new records as per the step 2 we get an java script error “Connection undefined”. And hence code is not able to perform step 3 and step 4.</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri> </font></p><span style="font-size:11pt;font-family:'Calibri','sans-serif'">Can anyone provide pointers about the above issue?</span> <br><br>Thanks &amp; Regards,<br>- Yogesh© 2009 Microsoft Corporation. All rights reserved.Thu, 15 Jan 2009 21:34:53 Z12121603-ddd8-45c0-8a20-76208bf50cbbhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/12121603-ddd8-45c0-8a20-76208bf50cbb#12121603-ddd8-45c0-8a20-76208bf50cbbhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/12121603-ddd8-45c0-8a20-76208bf50cbb#12121603-ddd8-45c0-8a20-76208bf50cbbYogesh.Patilhttp://social.microsoft.com/Profile/en-US/?user=Yogesh.PatilC#.NET + Java script error in Screen Scrapping application<p style="margin:0in 0in 0pt"><font face=Calibri>We are facing some issues in our current application. The details about the problem are given in comments.</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri> </font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Comment : We are doing screen scrapping application using C#.NET  Win forms and web browser control. We need to automate “search” functionality in one of the web application hosted in the web browser control. We have 2 pages viz. “Search” page and “DetailsResult” page.  The details about the issue is given in steps.</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri> </font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Step 1: when the application is launched “Search” page is loaded in to web browser control</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Step 2: we programmatically provide data to be searched in text fields and click on the search button on the “Search” page</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Step 3: Then, search results are displayed on “Grid” control on the same page</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>Step 4: The details about the search result is shown in “Details” Page. This page is called as soon as we click on the hyperlink present in the data grid.</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri> </font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>For the first iteration, i.e. from step 1 to step 4, works fine. </font></p> <p style="margin:0in 0in 0pt"><font face=Calibri>However the problem starts for second iteration. When we try to search new records as per the step 2 we get an java script error “Connection undefined”. And hence code is not able to perform step 3 and step 4.</font></p> <p style="margin:0in 0in 0pt"><font face=Calibri> </font></p><span style="font-size:11pt;font-family:'Calibri','sans-serif'">Can anyone provide pointers about the above issue?</span> <br><br>Thanks &amp; Regards,<br>- YogeshThu, 18 Dec 2008 07:57:02 Z2008-12-18T07:57:02Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/12121603-ddd8-45c0-8a20-76208bf50cbb#7e7262d3-8b65-489f-a870-d2d0f75a9df9http://social.microsoft.com/Forums/en-US/interopconversations/thread/12121603-ddd8-45c0-8a20-76208bf50cbb#7e7262d3-8b65-489f-a870-d2d0f75a9df9Edgar A Olougounahttp://social.microsoft.com/Profile/en-US/?user=Edgar%20A%20OlougounaC#.NET + Java script error in Screen Scrapping applicationHi, <p>This forum is to support questions on Open Specifications Protocols.</p> <p>There are very helpful communities of C# developers on the MSDN that may be able to assist you with your solution. I suggest you post your question on one these forums: <br><br>C# Development:<br><a href="http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/threads/"><font color="#0072bc">http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/threads/</font></a></p> <p>Internet Explorer Development<br><a href="http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=253&amp;SiteID=1"><font color="#0072bc">http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=253&amp;SiteID=1</font></a><br><br>You should also search the forums in case someone has already asked a similar question.<br><br>MSDN forums<br><a href="http://social.msdn.microsoft.com/Forums/en-US/categories/"><font color="#0072bc">http://social.msdn.microsoft.com/Forums/en-US/categories/</font></a><br><br>TechNet forums<br><a href="http://forums.microsoft.com/TechNet/default.aspx?SiteID=17"><font color="#0072bc">http://forums.microsoft.com/TechNet/default.aspx?SiteID=17</font></a><br><br>Microsoft Newsgroups<br><a href="http://www.microsoft.com/communities/newsgroups/en-us/default.aspx"><font color="#0072bc">http://www.microsoft.com/communities/newsgroups/en-us/default.aspx</font></a><br><br>Regards,<br>Edgar<br></p>Thu, 18 Dec 2008 15:29:00 Z2009-01-15T21:34:50Z