Hi all,
My prj has a login form(Login.aspx).It uses Form authentication(Credential
stored in web.config).Once user is authenticated,it redirects to a
webservice(service.asmx)
that has a method that does some database operation.
this is the code..
if (FormsAuthentication.Authenticate(UsrNameTextBox.T ext, PwdTextBox.Text))
Response.Redirect("Service.asmx");
else
FormsAuthentication.RedirectToLoginPage();
My problem is,when the user types the asmx url directly in the
browser(localhost/service.asmx...) ,it should prompt for authentication and
if its not a valid user,i need to redirect him to login page
any suggestion,on how to do this???
Thnks