What is the difference between @Html.ValueFor(x=>x.PropertyName) and @Model.PropertyName

@Html.ValueFor(x=>x.PropertyName) @Model.PropertyName It seems like these two Razor commands do the exact same thing. Is there any special circumstance or benefit of using one over the other? Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them … Read more

How to encrypt/decrypt the url in C#

I have a URL www.site-address/site-page/page1.aspx?username=deepu&password=deepu
how can i change the URL to
www.site-address/site-page/page1.aspx?username=232322323232&password=2323232322323
ie i want to encrypt the fields i pass through the URL please help me to encrypt and decrypt the URL in C# using .net,now i am using response.redirect and pass these values as query string….pls help….