Thread: Radio button
View Single Post
  #1 (permalink)  
Old March 5th, 2008, 02:21 AM
gaurisharya gaurisharya is offline
Registered User
 
Join Date: Mar 2008
Location: Margao, Goa, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Radio button

if(all.Checked)
        {
           query="Select * from applicant_info";
        }
        else if(follow_up.Checked)
        {
             query="Select * from applicant_info";
        }

hi,
i m using asp classic with code behind language as c#.
Here i hv used radio buttn.now i want to check which button i hv selected using if statement.Bt m gettin an error

 System.NullReferenceException: Object reference not set to an instance of an object.