Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/282.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 修改FormAuthentication 302重定向行为_C#_Asp.net_.net - Fatal编程技术网

C# 修改FormAuthentication 302重定向行为

C# 修改FormAuthentication 302重定向行为,c#,asp.net,.net,C#,Asp.net,.net,我想截取FormAuthentication 302重定向代码,其中它检查用户是否可以查看页面,如果他不是,模块会将用户发送到“/login.aspx?ReturnURL=“Requestedpage.aspx”。我想在这里添加自定义查询字符串 编辑:URL重写对我不起作用。我只想截取那个密码。我想从那里设置自定义标题 用于设置规则,以便将URL/login.aspx?ReturnURL=“Requestedpage.aspx重写为您需要的任何内容。用于设置规则,以便将URL/login.asp

我想截取FormAuthentication 302重定向代码,其中它检查用户是否可以查看页面,如果他不是,模块会将用户发送到“/login.aspx?ReturnURL=“Requestedpage.aspx”。我想在这里添加自定义查询字符串

编辑:URL重写对我不起作用。我只想截取那个密码。我想从那里设置自定义标题

用于设置规则,以便将URL
/login.aspx?ReturnURL=“Requestedpage.aspx
重写为您需要的任何内容。

用于设置规则,以便将URL
/login.aspx?ReturnURL=“Requestedpage.aspx
重写为您需要的任何内容