I have One conroller method like
public ViewResult MyMethod(long id, string pId)
{
}
I have one query string like
?'id=' + 10 + '&pId=' + 15
I want to encrypt it using some encryption algorithm after that i got query sting in some format like
gaiSXZyTAq6Z0a5TzsrdG2LjIj0moe2m4D0qQiG7zuQ=
I am decrypting it from Global.asax
in begin Request, Able to decrypt and setting Query string All Keys but controller not able to get its parameter value
protected void Application_BeginRequest(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(Convert.ToString(Request.QueryString)))
{
var newQueryString = SecurityEncryption.DecryptionValue(HttpUtility.UrlDecode(Convert.ToString(Request.QueryString)).Replace(" ", "+"));
Request.QueryString.AllKeys[0] = newQueryString;
}
}
I want that Controller Method will get its Parameter values,How can I achieve this?
Please any one can help me.