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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:39:14+00:00 2026-06-13T23:39:14+00:00

Through an input field the color green is submitted. Now, it takes requesting it

  • 0

Through an input field the color “green” is submitted.

Now, it takes requesting it.

In PHP it would be $_POST['color'].

I have thought it through, and have gotten it to this code:


The Example:

The Request for the ColorName – with VB.NET 2012 MVC 4:

    Public Class ColorPrintOutSubmitClassController
        Inherits System.Web.Mvc.Controller

        ' This method will handle GET
        Function PrintOutPage() As ActionResult
            Return View("PrintOutPage")
        End Function

        ' This method will handle POST
        <HttpPost>
        Function ColorPrintOut() As ActionResult
            ' Do something
            Response.Write("You submitted the color: " & Request.QueryString("ColorName") & "<br />")
            Return View()
        End Function
    End Class

The HTML:

    <form action="" method="post">
    <input type="text" name="ColorName" />
    <input type="submit" name="ColorName_SubmitButton" value="Print It Out!" />
</form>

The Questions:

The problem in this attempt is that the color name does not get printed out, as wanted.

  1. Could the problem be rather on Reponse.Write, or Request.QueryString?
  2. How does get the part which is to handle the GET – "invoked"?

Invoked = to put into effect or operation
(Source: The Merriam-Webster Dictionary)

  • 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-13T23:39:15+00:00Added an answer on June 13, 2026 at 11:39 pm

    It is not a QueryString, it is the POST itself. In C# it would just be:

    Request["ColorName"];
    

    So maybe just (not sure, don’t know VB):

    Request("ColorName") 
    

    But a better way to do this would be to actually bind to a MVC Model

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

Sidebar

Related Questions

I have an html input field, such as <form method=post action=process.php enctype=multipart/form-data> <div> <h3>Files:</h3>
I have an input field that I define as a datepicker through a css
I would like to have a zipcode input field that listens when 5 characters
If I am creating say a input field through MXML , I can set
I would like to execute some program through ssh and redirect its input from
Here's the situation: I would like to iterate through a table with input controls,
Scenerio: I have some divs populated through foreach loop like below <div id=div1><input type=hidden
I have two divs. One of them contains an input field the other a
I would like to style placeholder text in different color for each text field.
I have a field that a user can input first and last name to

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.