" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

ClientIDMode on Asp.Net 4.0

Posted on November 23rd, 2015 by Srikanta Barik

Accessing the control’s id at runtime, when the page being used is the master page, has been a persistent issue, especially when we are trying to access the control’s id(Client Id) using Javascript. When we are adding the content to our aspx page, it resembles : <asp:Content ID=”Content1″ ContentPlaceHolderID=”MindfireContent” Runat=”Server”> <asp:Textbox ID=”txtMindfire” runat=”server” Text=”Proud to be Mindfireans” /> […]

Working With XML Serialization Class And Parameterized Constructor In .NET 4.0

Posted on November 23rd, 2015 by Priyojit Mondal

Suppose we need the following XML format, <ProductData> <Item> <Key> <StockCode>1230098-ASU-DRED</StockCode> </Key> <Description>T E S T Final</Description> <LongDesc>Arizona State University</LongDesc> <AlternateKey1>686699454647</AlternateKey1> </Item> <Item> <Key> <StockCode>1230098-PSY-GREY</StockCode> </Key> <Description>T E S T Final</Description> <LongDesc>Arizona State University</LongDesc> <AlternateKey1>686699454649</AlternateKey1> </Item> </ProductData> Now the serialization classes will look like this, [XmlRoot(“ProductData”)] public class INVSSTDOCP { [XmlElement(“Item”)] public ProductParam[] Parameters { […]