Author: rsenthilnathan22 | Posted on: 12/30/2009 9:19:42 AM | Views : 522

Hi Friends,
     I am developing asp.net web application with vb.net. I am adding new attribute to all asp.net controls as follow to do some internal process.
<asp:Literal ID="ltrContent" runat="server" key="TempKey"></asp:Literal>
<asp:Label ID="lblDivision" runat="server" Text="Preferred Divisions" key="SearchMentor_lblDivision"/>

When I give the new attribute to asp label  control it accepted. But, the literal control is not accpeted and showing the following error.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Type 'System.Web.UI.WebControls.Literal' does not have a public property named 'key'.
Source ...

Go to the complete details ...