Thank you for writing.
I can suppose that in this line
select DiffForms,selectdata,insertdata,updatedata,deletedata,viewreports from useraccesstbl where users='" + UsersCombox.SelectedValue.ToString()
I would like to suggest to execute the SQL statement only if SelectedValue
is not null
You also can use the SelectedIndexChanged event instead of SelectedValueChanged event and check if the SelectedIndex
is bigger than -1.
I hope this helps.
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!