I know I can customize the signin page in the adfs\ls folder. But inside that FormsSignIn.aspx page or master page I want to use a querystring parameter. But HttpContext.Current.Request.Querystring is empty. Any idea? What I want to achieve is to make the layout dependend on a querystring parameter or something like that.
2 Answers
Not sure why it is empty but there are other ways to do this. Off the top of my head :-)
- Request.RawUrl
- Request.ServerVariables["QUERY_STRING"]
- Request.Params[""]
Does one of these work?
1 Comment
Jaap
RawUrl shows the url with the querystring. But ServerVariables["QUERY_STRING"] returns empty. So could decode RawUrl, but why is the querystring not provided by ASP.NET? Strange.