<?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>Custom Server Controls</title><link>http://forums.asp.net/19.aspx</link><description>All about building ASP.NET server controls. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=12&amp;c=17" 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: Exposing an EventHandler as a property in a UserControl</title><link>http://forums.asp.net/thread/2453256.aspx</link><pubDate>Fri, 27 Jun 2008 19:36:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2453256</guid><dc:creator>joteke</dc:creator><author>joteke</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2453256.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=19&amp;PostID=2453256</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;for the &lt;em&gt;UserControl.attributes.add(&amp;quot;Event&amp;quot;, &amp;quot;control_event&amp;quot;))&lt;/em&gt;&amp;nbsp; see my blog post:&lt;/p&gt;
&lt;p&gt;Mapping of attributes to control properties in ASP.NET - growing to a custom control&lt;br /&gt;&lt;a href="http://aspadvice.com/blogs/joteke/archive/2007/08/16/Mapping-of-attributes-to-control-properties-in-ASP.NET.aspx"&gt;http://aspadvice.com/blogs/joteke/archive/2007/08/16/Mapping-of-attributes-to-control-properties-in-ASP.NET.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The mechanism itself works&amp;nbsp; equally for user control as well as custom controls. You can declare an event which ther control raises in specific circumstances and other controls can listen to that event, and then do what they need to do based on it.&lt;/p&gt;</description></item><item><title>Exposing an EventHandler as a property in a UserControl</title><link>http://forums.asp.net/thread/2452657.aspx</link><pubDate>Fri, 27 Jun 2008 15:05:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2452657</guid><dc:creator>mkubaryc</dc:creator><author>mkubaryc</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2452657.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=19&amp;PostID=2452657</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I know it has been asked before but I can&amp;#39;t seem to find an answer.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have a User Control that I want to expose an eventhandler as a property.&amp;nbsp; For example, I want to be able to specify the event handler in markup (&amp;lt;Control Event=&amp;quot;control_event&amp;quot;&amp;gt;) or by doing it in code behind (ie: UserControl.attributes.add(&amp;quot;Event&amp;quot;, &amp;quot;control_event&amp;quot;)).&lt;/p&gt;&lt;p&gt;&amp;nbsp;Now that I look at what I want a little further...is this even possible?&lt;/p&gt;</description></item></channel></rss>