Today, I am going to explain database connection String in web.config configuration file using GridView.
First of all drag-drop GridView from Data at asp page
Open the GridView Source write the database connection code
First of all drag-drop GridView from Data at asp page
Set the connection string in web.config file
Final Output after Execution the Code