I need One solution ,help me .
------------------------------------------------
CheckBox gold=(CheckBox)e.Item.FindControl("ckGold");
CheckBox silver=((CheckBox)e.Item.FindControl("ckSilver"));
string txt=((TextBox)e.Item.FindControl("txt1")).Text;; Response.Write(((CheckBox)e.Item.FindControl("ckGold")).Text); Response.Write(((CheckBox)e.Item.FindControl("ckGold")).Text); if(gold.Checked==true)silver.Checked=false;
else if(silver.Checked==true)
gold.Checked=false;
else
Page.RegisterStartupScript("Statrup","");
------------------------------------------------------
Above code to be displayed one error:'Object Reference to be set an instance of an object'
What's the solution this?
Thank u
Mahesh JoshiPosted Feb 24, 2006, 7:53 AM