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 7964499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:54:20+00:00 2026-06-04T05:54:20+00:00

hi i am using mvc3 and i had a link in my site which

  • 0

hi i am using mvc3 and i had a link in my site which currently pass
one paramtere as shown following

<a href="/Call/@Model.id">Link To Call</a>

as you can see that i am passing a id to my Action , now i
need to pass another parameter but i dont want to change route
and current situation of link , can i send some something hidden.
by which my link looks same

i tried to do this by Html.ActionLink but it doesn’t work

Please help me . Thanks In Advance

  • 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-04T05:54:21+00:00Added an answer on June 4, 2026 at 5:54 am

    I would do something like this, as your hidden fields are dynamic:

    add a class to your link:

    <a class="link-call" href="/Call/@Model.id">Link To Call</a>
    

    Note that your href should be something like

    href="@Url.Action("Index", "Call", { id  = @Model.id })"
    

    and then, using jQuery, you can easily fillup your link and make that request.

    $(function() {
    
        $(".link-call").click(function(evt) {
    
            evt.preventDefault; // don't jump to /Call/2 automatically
    
            var url = $(this).attr("href") + "?"; // this will hold /Call/2?
    
            // append your hidden fields
            url += "hf1=" + $("#hf_001").val();
            url += "&hf2=" + $("#hf_002").val();
            url += "&hf3=" + $("#hf_003").val();
    
            // make the call
            document.location.href = url;
        });
    
    });
    

    your controller might look like this

    public ActionResult Index(int id, string hf1, string hf2, string hf3)
    {
    
    }
    

    if your route has the ID you can pick up the ID value from the routes and no need to pass it in the method.

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

Sidebar

Related Questions

I had wrote a web site using asp.net mvc3 and used Membership class for
I am using MVC3. I am getting following error when I run code analysis.
I'm using MVC3's Razor engine to generate views and have the following line of
I am using MVC3, EF Model first. I have a form with two DropDownList
I'm using MVC3 and I have a model like this: public class Foo {
I am using MVC3, EF Model first on my project. I have a view
I had created a webpage using asp.net mvc3 razor. I have two master pages
I am using Ninject in MVC3 application. One of my resolvable dependencies makes use
So I'm using MVC3 and I am aware of the following code to return
I have a new MVC3 project with one Controller called PublicController.cs which contains 4

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.