<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>[How Do I:] Event Handlers in ASP.NET Web Pages and Controls</title><link>http://www.asp.net</link><pubDate>Tue, 13 Sep 2011 15:42:30 GMT</pubDate><generator>umbraco</generator><description>Comments for [How Do I:] Event Handlers in ASP.NET Web Pages and Controls</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/33471" rel="self" type="application/rss+xml" /><item><title>Comment Posted by cv_vikram</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Sat, 09 Aug 2008 08:28:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005320</guid><description><![CDATA[ <p>thanks..</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/cv_vikram.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by muhammed</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Tue, 12 Aug 2008 01:40:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005321</guid><description><![CDATA[ <p>thanks alot</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/muhammed.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ht2dladb</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Wed, 13 Aug 2008 22:39:43 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005322</guid><description><![CDATA[ <p>Do you have any C# video ? </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ht2dladb.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by asater</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Fri, 12 Sep 2008 07:56:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005323</guid><description><![CDATA[ <p>yes, what about some videos in C#?</p> <p>Thank you</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/asater.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by wbartussek</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Mon, 22 Sep 2008 02:32:18 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005324</guid><description><![CDATA[ <p>Hi, your videos helped me in many cases - thanks! Since I&#39;am developing in C# I wondered how to display the Page Events so elegantly as you did at the beginning of your video. Is there some place with properties to persuade Visual Studio 2008 to show the Page Events similarly to the VB environment?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/wbartussek.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by devinmccloud</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Thu, 02 Oct 2008 17:18:07 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005325</guid><description><![CDATA[ <p>Chris,</p> <p> &#160;Thanks for your time and effort. The only thing I would like to see is the ability for this video to be able to rewind and fast-foward. Right now you have to watch the entire video , you can&#39;t change position in the video at all!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/devinmccloud.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by djibril_chimere_DIAW</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Wed, 29 Oct 2008 06:32:26 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005326</guid><description><![CDATA[ <p>Thanks ! J&#235;r&#235;j&#235;f !</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/djibril_chimere_DIAW.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by bohunt</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Fri, 13 Feb 2009 15:29:53 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005327</guid><description><![CDATA[ <p>Thanks Chris!</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/bohunt.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cleverwisdomforever</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Fri, 10 Apr 2009 01:42:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005328</guid><description><![CDATA[ <p>Nice tricks with events handling, Thanks Chris Pels.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/cleverwisdomforever.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by haithemara</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Sat, 09 May 2009 04:07:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005329</guid><description><![CDATA[ <p>Thanks Chris.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/haithemara.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by freddylavaca</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Sat, 16 May 2009 13:12:39 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005330</guid><description><![CDATA[ <p>how can I get &quot;textbox,radio button, check box&quot; selected index, in a sql</p><p>Database? I need some code, Please somebody help me.</p><p>Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/freddylavaca.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by evisser</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Sun, 18 Oct 2009 09:48:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005331</guid><description><![CDATA[ <p>Thanks for this interesting video. I&#39;m struggling with programmed controls and the associated eventhandler, that does not seem to be fired. I used the AutoEventWireup =&quot;True&quot; but no luck. I included and excluded the Handles stmt. but no change. It seems to be a general issue in the fora. Hope somebody can help. Thanks -Eric.</p><p>Example:</p><p>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load </p><p>        If Not Me.IsPostBack Then</p><p>            imgbtn = New ImageButton</p><p>            imgbtn.ID = &quot;B2&quot;</p><p>            imgbtn.ImageUrl = &quot;~/App_Themes/Flags/nl-NL.png&quot;</p><p>            AddHandler imgbtn.Click, AddressOf imgbutton_Click</p><p>            Panel1.Controls.Add(imgbtn)</p><p>        End If</p><p>End Sub</p><p>Public Sub imgbutton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles imgbtn.Click </p><p>        Dim btn As ImageButton = CType(sender, ImageButton)</p><p>        Response.Write(&quot;You click button...&quot; + btn.ID)</p><p>    End Sub</p><p> </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/evisser.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by noufil</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Fri, 15 Jan 2010 08:11:17 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005332</guid><description><![CDATA[ <p>hiii..tanx for ur video..i can not able to execut my event handlore to execute my code..</p><p>eg..this is my code..with event handler..</p><p></p><p>Function ExecuteQuery() As System.Data.IDataReader</p><p>        Dim connectionString As String = &quot;Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4; Data Source=C:\Users\HCL\De&quot;&amp; _</p><p>            &quot;sktop\ASP\recruitment.mdb&quot;</p><p>        Dim dbConnection As System.Data.IDbConnection = New System.Data.OleDb.OleDbConnection(connectionString)</p><p></p><p>        Dim queryString As String = &quot;SELECT [Company].*, [JobList].* FROM [Company], [JobList]&quot;</p><p>        Dim dbCommand As System.Data.IDbCommand = New System.Data.OleDb.OleDbCommand</p><p>        dbCommand.CommandText = queryString</p><p>        dbCommand.Connection = dbConnection</p><p></p><p>        dbConnection.Open</p><p>        Dim dataReader As System.Data.IDataReader = dbCommand.ExecuteReader(System.Data.CommandBehavior.CloseConnection)</p><p></p><p>        Return dataReader</p><p>    End Function</p><p></p><p>    Sub Page_Load(sender as object, e as EventArgs)</p><p>MyDataGrid.DataSource()=ExecuteQuery()</p><p>MyDataGrid.DataBind()</p><p>End Sub</p><p></p><p>ERROR i AM GETTING:</p><p>Compilation Error </p><p>Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. </p><p></p><p>Compiler Error Message: BC30456: &#39;DataSource&#39; is not a member of &#39;System.Web.UI.HtmlControls.HtmlForm&#39;.</p><p></p><p>Source Error:</p><p></p><p> </p><p></p><p>Line 21:     </p><p>Line 22:         Sub Page_Load(sender as object, e as EventArgs)</p><p>Line 23:     MyDataGrid.DataSource()=ExecuteQuery()</p><p>Line 24:     MyDataGrid.DataBind()</p><p>Line 25:     End Sub</p><p> </p><p></p><p>Source File: C:\asp\start.aspx    Line: 23 </p><p></p><p></p><p></p><p>Show Detailed Compiler Output:</p><p></p><p></p><p>C:\Windows\system32&gt; &quot;C:\Windows\Microsoft.NET\Framework\v2.0.50727\vbc.exe&quot; /t:library /utf8output /R:&quot;C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll&quot; /R:&quot;C:\Windows\assembly\GAC\Microsoft.Matrix.Framework\0.6.0.0__6f763c9966660626\Microsoft.Matrix.Framework.dll&quot; /R:&quot;C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll&quot; /R:&quot;C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll&quot; /R:&quot;C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll&quot; /R:&quot;C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll&quot; /R:&quot;C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll&quot; /R:&quot;C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll&quot; /R:&quot;C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll&quot; /R:&quot;C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll&quot; /R:&quot;C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll&quot; /R:&quot;C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll&quot; /R:&quot;C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll&quot; /R:&quot;C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll&quot; /R:&quot;C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll&quot; /out:&quot;C:\Users\HCL\AppData\Local\Temp\Temporary ASP.NET Files\root\bddbaa32\eba2c475\App_Web_bcak9q8u.dll&quot; /debug- /define:_MYTYPE=\&quot;Web\&quot; /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls  &quot;C:\Users\HCL\AppData\Local\Temp\Temporary ASP.NET Files\root\bddbaa32\eba2c475\App_Web_bcak9q8u.0.vb&quot; &quot;C:\Users\HCL\AppData\Local\Temp\Temporary ASP.NET Files\root\bddbaa32\eba2c475\App_Web_bcak9q8u.1.vb&quot;</p><p></p><p></p><p>Microsoft (R) Visual Basic Compiler version 8.0.50727.3053</p><p>for Microsoft (R) .NET Framework version 2.0.50727.3603</p><p>Copyright (c) Microsoft Corporation.  All rights reserved.</p><p></p><p>C:\asp\start.aspx(23) : error BC30456: &#39;DataSource&#39; is not a member of &#39;System.Web.UI.HtmlControls.HtmlForm&#39;.</p><p></p><p>    MyDataGrid.DataSource()=ExecuteQuery()</p><p>    ~~~~~~~~~~~~~~~~~~~~~                 </p><p></p><p> </p><p></p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/noufil.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by denniswaite</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Tue, 01 Mar 2011 18:08:10 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012295</guid><description><![CDATA[ <p>this  is  68  megs wow...</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/denniswaite.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by rockyy</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Sun, 08 May 2011 01:37:51 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013098</guid><description><![CDATA[ <p>the only thing which chris didn&#39;t mention in c sharp video is how to get the button ID which was clicked which he did in while demo in vb ,can anyone let us know how we can get the Button ID which was clicked .</p><p></p><p>Thanks </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/rockyy.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by rockyy</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Sun, 08 May 2011 01:40:19 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013099</guid><description><![CDATA[ <p>my apology just a sec ago i found it :) </p><p>  protected void Button1_Click(object sender, EventArgs e)</p><p>    {</p><p>        Message = &quot; Button 1 was clicked&quot;;</p><p>        Button b1 = (Button)sender;</p><p>        Response.Write(&quot;the button was clicked was :-&quot; + b1.ID);</p><p>    }</p><p></p><p>        &lt;asp:Button Text=&quot;text&quot; runat=&quot;server&quot; ID=&quot;Button1&quot; OnClick=&quot;Button1_Click&quot;  /&gt;</p><p>         &lt;asp:Button Text=&quot;text&quot; runat=&quot;server&quot; ID=&quot;Button2&quot; OnClick=&quot;Button1_Click&quot; /&gt;</p><p>        &lt;asp:Button Text=&quot;text&quot; runat=&quot;server&quot; ID=&quot;Button3&quot; OnClick=&quot;Button1_Click&quot; /&gt;</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/rockyy.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by shivanand arur</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Thu, 25 Aug 2011 11:43:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014054</guid><description><![CDATA[ <p>Very well explained!!!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/shivanand%20arur.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Oskarem</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-event-handlers-in-aspnet-web-pages-and-controls</link><pubDate>Tue, 13 Sep 2011 15:42:30 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014184</guid><description><![CDATA[ <p>New to VS. Can please someone tell me how to upload the C# sample code provided in a VS project, as it does not contain any solution (.sln) files?</p><p></p><p>Thanks.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Oskarem.jpg?forceidenticon=false&amp;dt=635072013000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>