Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8115059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:20:23+00:00 2026-06-06T03:20:23+00:00

I have an Index Action: [HttpGet] public ActionResult Index (bool Myparam, …) { if(Myparam)

  • 0

I have an Index Action:

[HttpGet]
public ActionResult Index (bool Myparam, ...)
{

  if(Myparam)
  {
     ...
  }

  return View(model);
}

I use Myparam to set some values of model but I want that the user don’t see the Myparam. At know in some pages I have RedirectToAction with route value of Myparam=true after return index page the URL is:

http://mysitemainurl.com/Collection/Index?Page=2&Myparam = true&RowCount=5

and I need to displayed URL will be:

http://mysitemainurl.com/Collection/Index?Page=2&RowCount=5

I prefer to handle it in Controller and if not possible in View and if not possible either the simple way to handle it client side? Does any one have any idea about it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:20:24+00:00Added an answer on June 6, 2026 at 3:20 am

    You could use a POST request instead of GET. And if this is sensitive information that really should not be seen (even by determined users), then this information has nothing to do on the client side. It should be kept safe on the server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an action (Index) that return a View with a concrete model. Inside
I have a created a list view for one of my controller's index action.
For a lot of my view controllers, I do not have an index action.
I have the following index action: class ExpensesController < ApplicationController def index() @expenses =
I have a controller named Content, which has an Index action, which is associated
I have a post html form, and the action is index.php, which is the
How can I prevent caching on exception? I have this action: caches_page :index ...
I have an index view that I want to update automatically as the user
On my HomeController I have an index action which redirects to the index action
Let's say I have an index action where I want to get a list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.