public partial class Batch : System.Web.UI.Page{ DataSet ds = new DataSet(); clsGENERAL obj = new clsGENERAL(); string strtxt;// I Cant declare Var here protected void Page_Load(object sender, EventArgs e) { } } ...