protected links objLink=new links();
private void Button1_Click(object sender, System.EventArgs e)
{
int news;
int pass;
if(ckbChecked.Checked)
news=1;
else
news=0;
if(ckbChecked.Checked)
pass=1;
else
pass=0;
try
{
objLink.productsAdd(dropBigClass.SelectedItem.Text,dropSmallClass.SelectedItem.Text,txProduct.Text,txContect.Text,pass,news);
}
catch(Exception ex)
{
lblEorr.Text=ex.Message;
}
}调试后出现的问题如下
Object reference not set to an instance of an object.这个问题一般有哪些解决办法呢?
请大家赐教