TKorhan
asked on
QueryString Encrypt Decrypt
I have a lots of forms in my project.
my url was like that
www.xxx.com/pages/frmLoanReq.aspx?moduleID=401
And I get id by QueryString on Page_Load on every form like :
string strLogRef = Request.QueryString["modul eID"].ToSt ring()
But now I send id by Encrypt :
www.xxx.com/pages/frmLoanReq.aspx?moduleID=ASLDK7234KAMV84;
I want to general code for not changing forms codes.
Something like this for general :
For example Request.QueryString["modul eID"].ToSt ring() = DECRYPT( Request.QueryString["modul eID"].ToSt ring() ).
Or what can I do?
my url was like that
www.xxx.com/pages/frmLoanReq.aspx?moduleID=401
And I get id by QueryString on Page_Load on every form like :
string strLogRef = Request.QueryString["modul
But now I send id by Encrypt :
www.xxx.com/pages/frmLoanReq.aspx?moduleID=ASLDK7234KAMV84;
I want to general code for not changing forms codes.
Something like this for general :
For example Request.QueryString["modul
Or what can I do?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ah, I didn't know you meant that, to me it sounded that you already had an encryption module. So, what can I help you further with?
i have not seen you httpmodule code but was just browsing through and found one more implementation for the same - might be useful
http://www.eggheadcafe.com/articles/20060427.asp
http://www.eggheadcafe.com/articles/20060427.asp
Note that it is a custom (but not compulsory) that when you come with the answer yourself, esp. if it is slightly off the original question, to merit the experts that have spent time with you on the subject.
If you grade the comments, it won't cost you points (q. points will not be refunded when you find the solution yourself).
If you grade the comments, it won't cost you points (q. points will not be refunded when you find the solution yourself).
> string strLogRef = Request.QueryString["modul
it is already a string, ToString() is not necessary.... ;-)
So you want something like: