Hello prachi s,
Your code looks pretty fine. Without debugging or somekind of tracing it is hard to say where the exact error comes form. Could you please try setting a log entry after each line so that we can see where is the error exactly thrown? Also, could you try publish your site on internal server with debug=true in the web.config, just for the sake of testing and paste here screenshot of the stack trace. Thank you.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items