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

  • SEARCH
  • Home
  • 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 8431013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:44:30+00:00 2026-06-10T05:44:30+00:00

how to pass multiple parameters from view to the controller in the url.This is

  • 0

how to pass multiple parameters from view to the controller in the url.This is my url,and options.parentId is one parameter.I need to pass multiple values ,how can i pass multiple values from view to controller in the url.
(“/ProjectRoles/project_module_functions_leftdisplay”, options.parentid)

  • 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-10T05:44:31+00:00Added an answer on June 10, 2026 at 5:44 am

    You could use the Url.Action helper:

    @Url.Action("project_module_functions_leftdisplay", "ProjectRoles", new 
    { 
        parentid = options.parentid, 
        somethingelse = options.somethingelse 
    })
    

    or if you are calling the controller within an action link:

    @Html.ActionLink(
        "click me", 
        "project_module_functions_leftdisplay", 
        "ProjectRoles", 
        new { 
            parentid = options.parentid, 
            somethingelse = options.somethingelse 
        }, 
        null
    )
    

    or if you are using an HTML <form>:

    @using (Html.BeginForm("project_module_functions_leftdisplay", "ProjectRoles", new { parentid = options.parentid, somethingelse = options.somethingelse }))
    {
        ...
    }
    

    or if I misunderstood your question and options is a javascript variable::

    <script type="text/javascript">
        var options = ...
        var url = '@Url.Action("project_module_functions_leftdisplay", "ProjectRoles", new { parentid = "__parentid__", somethingelse = "__somethingelse__" })';
        url = url
            .replace('__parentid__', encodeURIComponent(options.parentid))
            .replace('__somethingelse__', encodeURIComponent(options.somethingelse));
    
        // ... use the url here
    </script>
    

    There might as well be other, better approaches depending on your exact scenario and what you are trying to achieve.

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

Sidebar

Related Questions

I would like to know how can I pass data from controller to view
I need to pass multiple rows to a stored procedure. Can I use a
I am looking to pass multiple parameters from the following Primefaces 3.1 p:datatable: <p:dataTable
I would like to pass multiple parameters from the iphone sdk to a server-side
I'm trying to pass a List<int> from my View to my Controller . I've
I am trying to figure out how to pass multiple parameters in a URL.
I am trying to pass a parameter as text which contains multiple ' -
How to pass multiple checkboxes using jQuery ajax post this is the ajax function
I need to pass multiple arguments to a function that I would like to
I am trying to pass multiple options for UIView 's transitionWithView:duration:options:animations:completion: method. More specifically,

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.