Generate Menus Using XML

Introduction In this article, I am going to show how to easily generate menus using XML from the data source in Asp.net C#. By using this we can define the hierarchy separately in XML and use the same in the menus. Below is the real time code I have used …

How to Log an Exception With a Simple Example in C#

Introduction In this article, I have shared how to log an exception in a text document so that it will be stored permanently in the database. I have attached the source code in the attachment section. Write the following code in catch block of any event: protected void btnsave_Click(object sender, EventArgs e)   {       try       { …