Method Details
System.Reflection.MethodBase.GetCurrentMethod().Name,
Class Details
System.Reflection.MethodBase.GetCurrentMethod().ReflectedType.Name
Handy to log the errors ..
I blog whenever i find things to remember and which are interesting when i am working/learning. I am happy if these experiences are useful to someone else too :) . Please feel free to suggest/correct. These are just out of my experiences . So they may be always a better way to do them ! I view life as a continuous learning experience !!
System.Reflection.MethodBase.GetCurrentMethod().Name,
Class Details
System.Reflection.MethodBase.GetCurrentMethod().ReflectedType.Name
Handy to log the errors ..
<asp:dropdownlist id="DropDownList1" runat="server" autopostback="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"> <asp:listitem value="-1">Select Option</asp:listitem> <asp:listitem>A</asp:listitem> <asp:listitem>B</asp:listitem> <asp:listitem>C</asp:listitem> </asp:dropdownlist> <asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" errormessage="RequiredFieldValidator" controltovalidate="DropDownList1" display="Dynamic" initialvalue="-1" setfocusonerror="True"> </asp:requiredfieldvalidator> <asp:button id="Button1" runat="server" text="Button" />