Customer cms=null; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { cms= new Customer(); } } protected void btnsubmit_Click(object sender, EventArgs e) { cms.GetCode(); //exception is here }
IsPostBack
false
cmd
null
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)