Hello Anshu Nigam,
Thanks! I need to restrict all anonymous users from my site only authenticated user should get access.
You can set Anonymous Access
to "Deny" from page Properties
tab. This will allow you to control the access from the UI instead using the web.config file. Then you can read the QueryStirng and authenticate the user. Note that you should pass the username and password.
(Request.QueryString.Count > 0)
qs = Request.QueryString;
ps = Request.QueryString;
(!String.IsNullOrEmpty(qs) && !String.IsNullOrEmpty(ps) && ps ==
&& qs ==
MembershipUser user = Membership.GetUser(qs);
HttpCookie c = FormsAuthentication.GetAuthCookie(user.UserName,
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.