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

The Archive Base Latest Questions

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

At the moment I have this code: @using (Html.BeginForm(Add, Review, Review)) { @Html.ValidationSummary(true) <fieldset>

  • 0

At the moment I have this code:

@using (Html.BeginForm("Add", "Review", "Review"))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Review</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.TEKST)
        </div>
         <div class="editor-field">
            @Html.TextBoxFor(model => model.TEKST)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

This will send me to: localhost:4470/Review/Add?Length=6
The thing that I actually want is this url: localhost:4470/Review/Add?tekst=sdfsdf

How can I modify this code that it will use “tekst” as parameter instead of length? And as value the content of the textbox.

UPDATE:
This are my action methods:

public ActionResult Create()
{
    return View();
}

public ActionResult Add(string tekst)
{
    ViewBag.test = tekst;
    return View();
}

In the View page of Create, I would like to have a form, with a textbox or textarea, that sends an action to Add, the content of the textbox or textarea should be in parameter “tekst” of action method “Add”

SOLUTION:
See the post of CD Smith

  • 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:28:40+00:00Added an answer on June 4, 2026 at 5:28 am

    I’m not sure what your action looks like but as long as it is accepting your model, you have the value for TEKST in your model..

    If you need something different then you’re View would need to be different as well, you post a Model from the view, you don’t send GET parameters by making a POST

    Do you have an action that currently takes TEKST as a parameter?

    UPDATE

    Ok, looking at your action… you don’t need to modify your view, you need to modify your actions, try this this will get you what you want.

    Change YourModelTypeHere to match your real model type

    [HttpPost]
    public ActionResult Create(YourModelTypeHere model)
    {
        return RedirectToAction("Add", new { tekst = model.tekst });
    }
    
    public ActionResult Add(string tekst) 
    {
        ViewBag.test = tekst;
        return View();
    }
    

    You need to modify your view just a tad – remove the parameters from the BeginForm tag

    @using (Html.BeginForm())
    

    So the Create action will render the Create View, then POST back to the Create method that has the [HttpPost] annotation. Then the value of TEKST will be sent as a parameter to the Add method as a RedirectToAction and render the Add view

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

Sidebar

Related Questions

At the moment I have this code which fires a projectile: Vector3 d =
I have a html structure in my webpage as below : <div class=group_name>Group A</div>
I have this script at the moment, which changes an image when a thumbnail
This is what I have at the moment. <h2>Information</h2>\n +<p>(.*)<br />|</p> ^ that is
I have two nested loop in XSL like this, at this moment I use
At the moment when i use this, i have to re-launch the app to
I have a form that calculates a total number using Javascript. The code for
I have this code: $('#label, #btlabel').live('hover',function(){ parent = $(this).parent().attr('id'); position = $(this).parent().position(); positionTop =
I have a GridView and I need update some data inserting HTML CODE; I
I have a HTML script like this: <form id=no1> <input id=title type=text /> <input

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.