[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 903
  • Last Modified:

ASP.NET Select Option Box

How would I pick up the value of the selected item in VB code behind?

<select name="dptAirSr" style="font-size: 11px" tabindex="12">
    <option value="0">None</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
</select>
0
lrbrister
Asked:
lrbrister
  • 2
1 Solution
 
Ramesh SrinivasTechnical ConsultantCommented:
Request.Form["dptAirSr"].ToString()
0
 
Ramesh SrinivasTechnical ConsultantCommented:
In VB...

Request.Form("dptAirSr")

thanks.
0
 
lrbristerAuthor Commented:
Saleek,
Thanks.  I'm going to post a followup question in one minute as well.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now