This File will be stored in App_Code/Utility
https://drive.google.com/file/d/1LqeWSCMbzsBCxHcpft73wYehePQvhJ_a/view?usp=sharing
The file will be stored in App_Code/Utility/
https://drive.google.com/file/d/1GCtAfzrV9Eqk6LUI0IitSihdP4Wch1sJ/view?usp=sharing
example below:-
private void GetCustomersPageWise(int pageIndex,string batchCode)
{
try
{
The file will be stored in App_Code/Common
web.config file
<appSettings>
<add key="ConnectionString" value="Server=DESKTOP-EUCFT2Q; Database=Test; UID=sa; PWD=password;Min Pool Size=20; Max Pool Size=200"/>
</appSettings>
------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
//Add reference to System.Web if not yet referenced
using System.Web;
using System.Web.Configuration;
namespace Luminious.Connection
{
public abstract class Configuration
{
public static String ConnectionString
{
get
{
return WebConfigurationManager.AppSettings["ConnectionString"];
}
}
}
}