<?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: Using multiple forms on an ASP.NET web forms page</title>
	<atom:link href="http://www.frederikvig.com/2009/06/using-multiple-forms-on-an-asp-net-web-forms-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.frederikvig.com/2009/06/using-multiple-forms-on-an-asp-net-web-forms-page/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=using-multiple-forms-on-an-asp-net-web-forms-page</link>
	<description></description>
	<lastBuildDate>Sat, 31 Jul 2010 01:46:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Tatham Oddie</title>
		<link>http://www.frederikvig.com/2009/06/using-multiple-forms-on-an-asp-net-web-forms-page/comment-page-1/#comment-184</link>
		<dc:creator>Tatham Oddie</dc:creator>
		<pubDate>Mon, 01 Feb 2010 21:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=71#comment-184</guid>
		<description>Oops - I just got an email from a reader who found a few mistakes in my comment. The method is called VerifyRenderingInServerForm, not VerifyRenderingInSearchForm as I mistyped.

The method is on the page.

http://msdn.microsoft.com/en-au/system.web.ui.page.verifyrenderinginserverform.aspx

Just override it with an empty method body, for example:

public override void VerifyRenderingInServerForm(Control control) { }

The default base implementation throws an exception if the control is not within the server form. This override prevents that behaviour.


Tatham Oddie
http://tath.am</description>
		<content:encoded><![CDATA[<p>Oops &#8211; I just got an email from a reader who found a few mistakes in my comment. The method is called VerifyRenderingInServerForm, not VerifyRenderingInSearchForm as I mistyped.</p>
<p>The method is on the page.</p>
<p><a href="http://msdn.microsoft.com/en-au/system.web.ui.page.verifyrenderinginserverform.aspx" rel="nofollow">http://msdn.microsoft.com/en-au/system.web.ui.page.verifyrenderinginserverform.aspx</a></p>
<p>Just override it with an empty method body, for example:</p>
<p>public override void VerifyRenderingInServerForm(Control control) { }</p>
<p>The default base implementation throws an exception if the control is not within the server form. This override prevents that behaviour.</p>
<p>Tatham Oddie<br />
<a href="http://tath.am" rel="nofollow">http://tath.am</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederik Vig</title>
		<link>http://www.frederikvig.com/2009/06/using-multiple-forms-on-an-asp-net-web-forms-page/comment-page-1/#comment-4</link>
		<dc:creator>Frederik Vig</dc:creator>
		<pubDate>Mon, 22 Jun 2009 07:56:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=71#comment-4</guid>
		<description>Thanks for sharing Tatham!

Frederik</description>
		<content:encoded><![CDATA[<p>Thanks for sharing Tatham!</p>
<p>Frederik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tatham Oddie</title>
		<link>http://www.frederikvig.com/2009/06/using-multiple-forms-on-an-asp-net-web-forms-page/comment-page-1/#comment-3</link>
		<dc:creator>Tatham Oddie</dc:creator>
		<pubDate>Mon, 22 Jun 2009 05:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=71#comment-3</guid>
		<description>Hi Frederik,

Thanks for watching the video!

You note that not being able to use some server controls is a drawback. Many of them do actually work outside of your server form, with a simple tweak.

A good example is the DropDownList control. It&#039;s a very useful control, even in client forms, because you can data bind the items collection and the selected value easily.

To allow it to render, you need to add a simple override in your page:

protected override VerifyRenderingInSearchForm(Control control)
{
   return true;
}

This will then allow you to place those controls anywhere in your markup.

Hope that helps,

Tatham Oddie
http://tath.am</description>
		<content:encoded><![CDATA[<p>Hi Frederik,</p>
<p>Thanks for watching the video!</p>
<p>You note that not being able to use some server controls is a drawback. Many of them do actually work outside of your server form, with a simple tweak.</p>
<p>A good example is the DropDownList control. It&#8217;s a very useful control, even in client forms, because you can data bind the items collection and the selected value easily.</p>
<p>To allow it to render, you need to add a simple override in your page:</p>
<p>protected override VerifyRenderingInSearchForm(Control control)<br />
{<br />
   return true;<br />
}</p>
<p>This will then allow you to place those controls anywhere in your markup.</p>
<p>Hope that helps,</p>
<p>Tatham Oddie<br />
<a href="http://tath.am" rel="nofollow">http://tath.am</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->