I want that any user doesn't edit my website URl.
mean that when user login in myWebsite then he/she is on studenthome.aspx and the URL(www.XXXXXX.com/studenthome.aspx) not editable.
This issue when i search on internet and getting the result in javascript code but i want c# code. thanks
C# is used as server side language you cannot access users' browser functionalities with C#. You need to use a client side language (JavaScript) to do so.
If you got code in javascript, you can write in c# using ScriptManager.RegisterStartupScript(this,typeof(Page), "key", "your script", true);
Anyhow this appears in web browser.To encrypt , you can use any Script Encoder tool to encode your JavaScript.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.