<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to get a controlid in infopath 2007 c#</title><link>https://www.infopathdev.com:443/forums/thread/56714.aspx</link><pubDate>Fri, 09 Jul 2010 15:37:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56714</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56714.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=56714</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not sure what you mean by &amp;quot;to use javascript,&amp;quot; but InfoPath controls cannot be directly accessed from code.&lt;/p&gt;</description></item><item><title>How to get a controlid in infopath 2007 c#</title><link>https://www.infopathdev.com:443/forums/thread/56694.aspx</link><pubDate>Fri, 09 Jul 2010 09:24:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56694</guid><dc:creator>genetze</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56694.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=56694</wfw:commentRss><description>&lt;p&gt;Hi, i&amp;#39;m trying to get the controlid from a field or a button to use javascript. So what i need is something like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Control mycontrol = (button or field control as a control type);&lt;/p&gt;
&lt;p&gt;string myControlClientID =&amp;nbsp;mycontrol.ClientID;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;---------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know how to get mycontrol there... can someone help&amp;nbsp;me on this?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item></channel></rss>