Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ASP.Net MVC 4 C# -- pass HIDDEN url string ?

Posted on 2013-05-29
1
Medium Priority
?
1,941 Views
Last Modified: 2013-06-02
How can I pass the below as a HIDDEN value so users cannot change URL string ?
      @Html.ActionLink("Create New", "Create", new { default_value = "5555" })

  ** Current = http://localhost:49450/POdetail/Create?default_value=5555
  ** Desired = http://localhost:49450/POdetail/Create?somethingUsersCannotEasilyChange
-------------------------------------------------------------------------------------------------------------
CONTROLLER below

        public ActionResult Create(string default_value)
        {
            ViewBag.PO_ID = new SelectList(db.POheaders, "ID", "Supplier");

            POdetail myEntity = new POdetail();
            myEntity.PartDescription = default_value;
            return View(myEntity);
        }
0
Comment
Question by:finance_teacher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 total points
ID: 39204605
You're talking about something on the client's machine. How do expect to change something you have no control over?

If you want to hide data from the user, then use a POST method for your form. Be aware:  This is not a security measure. Anyone with basic HTTP knowledge can circumvent this method. I think you may want to reconsider your design.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question