views:

12

answers:

1

Why do I need to pass a username to this method? I just want the url that was redirected from for forms authentication...

FormsAuthentication.GetRedirectUrl

A: 

Most probably the .NET framework needs to know which user was redirected. Remember server side there are multiple users accessing the same application.

If you really want to know, use reflector to check out System.Web.Security.

Aseem Gautam