<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Master Pages, Themes and Navigation Controls</title><link>http://forums.asp.net/139.aspx</link><description>Discussions of MasterPages, Themes, and other page-related features. &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=164&amp;amp;c=30" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: controls within contentplaceholder ?</title><link>http://forums.asp.net/thread/2466764.aspx</link><pubDate>Fri, 04 Jul 2008 05:54:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2466764</guid><dc:creator>apalchaudhry</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2466764.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2466764</wfw:commentRss><description>public static void ClearFormRecursive(Control Root) {
    foreach (Control c in Root.Controls) {
        if (Root is ContentPlaceHolder) {
            if (c is TextBox) {
                Response.write(((TextBox)c).text);
            }
        }
        else {
            ClearFormRecursive(c);
        }
        if (Root == null) {
            return;
        }
    }
}</description></item><item><title>Re: controls within contentplaceholder ?</title><link>http://forums.asp.net/thread/1342532.aspx</link><pubDate>Sun, 16 Jul 2006 13:03:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1342532</guid><dc:creator>haidar_bilal</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1342532.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1342532</wfw:commentRss><description>&lt;p&gt;Have a look at:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://west-wind.com/weblog/posts/5127.aspx"&gt;ASP.NET 2.0 Masterpages and FindControl&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;hth,&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>controls within contentplaceholder ?</title><link>http://forums.asp.net/thread/1342529.aspx</link><pubDate>Sun, 16 Jul 2006 12:53:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1342529</guid><dc:creator>Lamentations</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1342529.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1342529</wfw:commentRss><description>If im using master pages with contentplaceholders, how do i get a reference to the controls within the form ?&amp;nbsp; The following code doesnt work&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;foreach&lt;/span&gt; (Control c &lt;span class="kwd"&gt;in this&lt;/span&gt;.Controls)
{
    &lt;span class="kwd"&gt;if&lt;/span&gt; (c &lt;span class="kwd"&gt;is&lt;/span&gt; TextBox)
    {
       Response.write(((TextBox)c).text);
    }
}&lt;/pre&gt;&amp;nbsp;</description></item><item><title>contentplaceholder - how to loop through form values ?</title><link>http://forums.asp.net/thread/1342514.aspx</link><pubDate>Sun, 16 Jul 2006 11:43:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1342514</guid><dc:creator>Lamentations</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1342514.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1342514</wfw:commentRss><description>If I have a bunch of input fields (textboxes, checkboxes and textarea) within a contentplaceholder, how do i loop through all the controls within this contentplaceholder, or the whole page ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>