<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: C# Auto click button and auto fill form</title>
	<atom:link href="http://www.farooqazam.net/c-sharp-auto-click-button-and-auto-fill-form/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.farooqazam.net/c-sharp-auto-click-button-and-auto-fill-form/</link>
	<description>C# &#38; .NET Programming Blog</description>
	<lastBuildDate>Fri, 27 Aug 2010 12:15:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Yasir Godil</title>
		<link>http://www.farooqazam.net/c-sharp-auto-click-button-and-auto-fill-form/comment-page-1/#comment-2935</link>
		<dc:creator>Yasir Godil</dc:creator>
		<pubDate>Fri, 27 Aug 2010 12:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.farooqazam.net/?p=162#comment-2935</guid>
		<description>Ok.

I got this work. Wrote a new function to fill values in Combo boxes and works like a charm. Thanks dude :)

Here is the code

public void SetComboText(string attribute, string attName, string value)
        {
            // Get a collection of all the tags with name &quot;input&quot;;  
            HtmlElementCollection tagsCollection = webBrowser.Document.GetElementsByTagName(&quot;select&quot;);

            foreach (HtmlElement currentTag in tagsCollection)
            {
                // If the attribute of the current tag has the name attName  
                if (currentTag.GetAttribute(attribute).Equals(attName))
                    // Then set its attribute &quot;value&quot;.  
                    currentTag.SetAttribute(&quot;value&quot;, value);
            }
        }</description>
		<content:encoded><![CDATA[<p>Ok.</p>
<p>I got this work. Wrote a new function to fill values in Combo boxes and works like a charm. Thanks dude <img src='http://www.farooqazam.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here is the code</p>
<p>public void SetComboText(string attribute, string attName, string value)<br />
        {<br />
            // Get a collection of all the tags with name &#8220;input&#8221;;<br />
            HtmlElementCollection tagsCollection = webBrowser.Document.GetElementsByTagName(&#8220;select&#8221;);</p>
<p>            foreach (HtmlElement currentTag in tagsCollection)<br />
            {<br />
                // If the attribute of the current tag has the name attName<br />
                if (currentTag.GetAttribute(attribute).Equals(attName))<br />
                    // Then set its attribute &#8220;value&#8221;.<br />
                    currentTag.SetAttribute(&#8220;value&#8221;, value);<br />
            }<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yasir Godil</title>
		<link>http://www.farooqazam.net/c-sharp-auto-click-button-and-auto-fill-form/comment-page-1/#comment-2934</link>
		<dc:creator>Yasir Godil</dc:creator>
		<pubDate>Fri, 27 Aug 2010 12:09:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.farooqazam.net/?p=162#comment-2934</guid>
		<description>How can I fill combo box using this code? or is there any other code that I can use to fill combo box ?</description>
		<content:encoded><![CDATA[<p>How can I fill combo box using this code? or is there any other code that I can use to fill combo box ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Farooq Azam</title>
		<link>http://www.farooqazam.net/c-sharp-auto-click-button-and-auto-fill-form/comment-page-1/#comment-2190</link>
		<dc:creator>Farooq Azam</dc:creator>
		<pubDate>Thu, 05 Aug 2010 11:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.farooqazam.net/?p=162#comment-2190</guid>
		<description>You should use &quot;element.GetAttribute(&quot;href&quot;);&quot;.</description>
		<content:encoded><![CDATA[<p>You should use &#8220;element.GetAttribute(&#8220;href&#8221;);&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Smita</title>
		<link>http://www.farooqazam.net/c-sharp-auto-click-button-and-auto-fill-form/comment-page-1/#comment-2188</link>
		<dc:creator>Smita</dc:creator>
		<pubDate>Thu, 05 Aug 2010 09:51:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.farooqazam.net/?p=162#comment-2188</guid>
		<description>what about &lt;a&gt;

I tried 

element.InvokeMember(&quot;href&quot;);

Does not work.</description>
		<content:encoded><![CDATA[<p>what about &lt;a&gt;</p>
<p>I tried </p>
<p>element.InvokeMember(&#8220;href&#8221;);</p>
<p>Does not work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharaf Ali</title>
		<link>http://www.farooqazam.net/c-sharp-auto-click-button-and-auto-fill-form/comment-page-1/#comment-2090</link>
		<dc:creator>Sharaf Ali</dc:creator>
		<pubDate>Sat, 31 Jul 2010 10:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.farooqazam.net/?p=162#comment-2090</guid>
		<description>I am developing AutoWebFormFiller using C#, I have completed it almost but unable to auto fill input file field. I want image file found in my local D Drive to be auto selected in input file field.</description>
		<content:encoded><![CDATA[<p>I am developing AutoWebFormFiller using C#, I have completed it almost but unable to auto fill input file field. I want image file found in my local D Drive to be auto selected in input file field.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parham</title>
		<link>http://www.farooqazam.net/c-sharp-auto-click-button-and-auto-fill-form/comment-page-1/#comment-1711</link>
		<dc:creator>Parham</dc:creator>
		<pubDate>Wed, 07 Jul 2010 05:50:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.farooqazam.net/?p=162#comment-1711</guid>
		<description>corrected HTML tags ( * for &amp; g t and &amp; l t and \ as slashs)
Web App. Code sample

*asp:ScriptManager ID=&quot;ScriptManager1&quot; runat=&quot;server&quot;*
*\asp:ScriptManager*
*table width=&quot;100%&quot;*
  *tr*
    *td align=&quot;center&quot;*
      *asp:UpdatePanel ID=&quot;UpdatePanel1&quot; runat=&quot;server&quot;*
        *ContentTemplate*
          *table width=&quot;100%&quot;*
            .
            .Some controls
            . Search BUTTON and TEXT BOX
            .
            *tr
              *td
                *asp:Label ID=&quot;APT_NAME&quot; runat=&quot;server&quot;* *\asp:Label*
              *\td
            *\tr
            .
            .
          *\table*
        *\ContentTemplate*
      *\asp:UpdatePanel*
.
.

I can navigate to this page and fill the search textbox and click the search button with the your sample code (its work fine)
but after that when web app. fill the Label(&quot;APT_NAME&quot;), webBrowser1_DocumentCompleted does not raise
and when I see VIEW SOURCE i found my label here

*td style=&quot;width: 25%; height: 14px;&quot; align=&quot;right&quot;*
	*span id=&quot;ctl00_ContentPlaceHolder1_MobileFileInfo2_APT_NAME&quot;* *\span*
*\td*

offcourse i raise it manualy after my search Button clicked

but element value is empty


i try AxWebBrowser and its the same!
is that possible to catch o access elements values where updates with ajax?
thanks</description>
		<content:encoded><![CDATA[<p>corrected HTML tags ( * for &amp; g t and &amp; l t and \ as slashs)<br />
Web App. Code sample</p>
<p>*asp:ScriptManager ID=&#8221;ScriptManager1&#8243; runat=&#8221;server&#8221;*<br />
*\asp:ScriptManager*<br />
*table width=&#8221;100%&#8221;*<br />
  *tr*<br />
    *td align=&#8221;center&#8221;*<br />
      *asp:UpdatePanel ID=&#8221;UpdatePanel1&#8243; runat=&#8221;server&#8221;*<br />
        *ContentTemplate*<br />
          *table width=&#8221;100%&#8221;*<br />
            .<br />
            .Some controls<br />
            . Search BUTTON and TEXT BOX<br />
            .<br />
            *tr<br />
              *td<br />
                *asp:Label ID=&#8221;APT_NAME&#8221; runat=&#8221;server&#8221;* *\asp:Label*<br />
              *\td<br />
            *\tr<br />
            .<br />
            .<br />
          *\table*<br />
        *\ContentTemplate*<br />
      *\asp:UpdatePanel*<br />
.<br />
.</p>
<p>I can navigate to this page and fill the search textbox and click the search button with the your sample code (its work fine)<br />
but after that when web app. fill the Label(&#8220;APT_NAME&#8221;), webBrowser1_DocumentCompleted does not raise<br />
and when I see VIEW SOURCE i found my label here</p>
<p>*td style=&#8221;width: 25%; height: 14px;&#8221; align=&#8221;right&#8221;*<br />
	*span id=&#8221;ctl00_ContentPlaceHolder1_MobileFileInfo2_APT_NAME&#8221;* *\span*<br />
*\td*</p>
<p>offcourse i raise it manualy after my search Button clicked</p>
<p>but element value is empty</p>
<p>i try AxWebBrowser and its the same!<br />
is that possible to catch o access elements values where updates with ajax?<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parham</title>
		<link>http://www.farooqazam.net/c-sharp-auto-click-button-and-auto-fill-form/comment-page-1/#comment-1710</link>
		<dc:creator>Parham</dc:creator>
		<pubDate>Wed, 07 Jul 2010 05:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.farooqazam.net/?p=162#comment-1710</guid>
		<description>Web App. Code sample




  
    
      
        
          
            .
            .Some controls
            . Search BUTTON and TEXT BOX
            .
            
              
                
              
            
            .
            .
          
        
      
.
.

I can navigate to this page and fill the search textbox and click the search button with the your sample code (its work fine)
but after that when web app. fill the Label(&quot;APT_NAME&quot;), webBrowser1_DocumentCompleted does not raise
and when I see VIEW SOURCE i found my label here


	


offcourse i raise it manualy after my search Button clicked

but element value is empty


i try AxWebBrowser and its the same!
is that possible to catch o access elements values where updates with ajax?
thanks</description>
		<content:encoded><![CDATA[<p>Web App. Code sample</p>
<p>            .<br />
            .Some controls<br />
            . Search BUTTON and TEXT BOX<br />
            .</p>
<p>            .<br />
            .</p>
<p>.<br />
.</p>
<p>I can navigate to this page and fill the search textbox and click the search button with the your sample code (its work fine)<br />
but after that when web app. fill the Label(&#8220;APT_NAME&#8221;), webBrowser1_DocumentCompleted does not raise<br />
and when I see VIEW SOURCE i found my label here</p>
<p>offcourse i raise it manualy after my search Button clicked</p>
<p>but element value is empty</p>
<p>i try AxWebBrowser and its the same!<br />
is that possible to catch o access elements values where updates with ajax?<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Farooq Azam</title>
		<link>http://www.farooqazam.net/c-sharp-auto-click-button-and-auto-fill-form/comment-page-1/#comment-1704</link>
		<dc:creator>Farooq Azam</dc:creator>
		<pubDate>Tue, 06 Jul 2010 14:40:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.farooqazam.net/?p=162#comment-1704</guid>
		<description>Can you post your code, please?</description>
		<content:encoded><![CDATA[<p>Can you post your code, please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parham</title>
		<link>http://www.farooqazam.net/c-sharp-auto-click-button-and-auto-fill-form/comment-page-1/#comment-1703</link>
		<dc:creator>Parham</dc:creator>
		<pubDate>Tue, 06 Jul 2010 10:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.farooqazam.net/?p=162#comment-1703</guid>
		<description>correction

I using UPDATEPANEL of microsoft Ajax with C# for previous comment

thanks again</description>
		<content:encoded><![CDATA[<p>correction</p>
<p>I using UPDATEPANEL of microsoft Ajax with C# for previous comment</p>
<p>thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parham</title>
		<link>http://www.farooqazam.net/c-sharp-auto-click-button-and-auto-fill-form/comment-page-1/#comment-1702</link>
		<dc:creator>Parham</dc:creator>
		<pubDate>Tue, 06 Jul 2010 10:35:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.farooqazam.net/?p=162#comment-1702</guid>
		<description>HELP FOR READING ELEMENTS IN THE AJAX PANEL?!

Hi
thanks, its very use full for me

i have a web application that using ajax panel
i use this method to login the web app.
and going to my goal page, fill the related controls
and finally click the SUBMIT button

after submit, web app. get data from DB and show in the page
IN THE AJAX PANEL

and when i want to read the element that filled after submit, the element is EMPTY!!!
and when i watching it in VIEW SOURCE  with browser it also empty BUT it is showing in the monitor???!!!!!!!

please help me
thanks</description>
		<content:encoded><![CDATA[<p>HELP FOR READING ELEMENTS IN THE AJAX PANEL?!</p>
<p>Hi<br />
thanks, its very use full for me</p>
<p>i have a web application that using ajax panel<br />
i use this method to login the web app.<br />
and going to my goal page, fill the related controls<br />
and finally click the SUBMIT button</p>
<p>after submit, web app. get data from DB and show in the page<br />
IN THE AJAX PANEL</p>
<p>and when i want to read the element that filled after submit, the element is EMPTY!!!<br />
and when i watching it in VIEW SOURCE  with browser it also empty BUT it is showing in the monitor???!!!!!!!</p>
<p>please help me<br />
thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
