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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:17:06+00:00 2026-06-10T02:17:06+00:00

Need help I have following code with classic asp <select name=state id=state> <option value=NJ>New

  • 0

Need help

I have following code with classic asp

<select name="state" id="state">
    <option value="NJ">New Jersey</option>
</select>

Now i want just “NJ” not “New Jersey” while entering in database but it is storing “New Jersey”.

on submit button in postback i am trying to read value using

if gAspClassUtil.isSubmitted("submit") then
     Selectedstate = Request.form("state")
end if

but at this time value in “Selectedstate” is “New Jersey” not “NJ”

Please suggest me how to read option “VALUE” not “TEXT” from dropdown list
in classic asp.

  • 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-10T02:17:08+00:00Added an answer on June 10, 2026 at 2:17 am

    What you are saying simply doesn’t happen.

    If you have a value attribute in an option tag, the value will be sent in the form data, not the text.

    The Request.Form collection only contains the data that is posted to the server. Only the value (if present) is sent to the server, the text from the option is not even possiple to get from the form data.

    Some things to check:

    • Whether the select element is actually inside the form element that is posted.
    • That there is no Javascript that is changing the form data when the form is submitted (e.g. getting the text from the selected option and putting in a hidden field in the form).
    • That the HTML code actually looks like that to the browser. (Use View Source.)
    • That the code that you are showing is actually the code that runs.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need syntax help with the following code logic: I have a code block
I need some help with something... say I have the following form... <form name=
I have the following code. I need help fixing it such that the Category
Need your help. I am trying it first time. I have used following code.
I need some help with this. Basically I have the following code which I
I need some help writing a regex. I have the following strings, xxx.yyy.wwwwwaaa_IN_123 xxx.rrrttttt_IN_12355
I am new to Jquery and need some help: I have a div, I
need help/guide for sql select query, I have 2 table stock and stock_history, in
I need ideas... I have a classic scenario with a twist, containing the following
I have following code: public abstract class Operand<T> { public T Value { get;

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.