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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:07:05+00:00 2026-06-17T23:07:05+00:00

I have a php code – ——— <div id=product1> <select name=product class=:required onchange=change1(this.value)> <option

  • 0

I have a php code

–

---------
<div id="product1">
<select name="product" class=":required" onchange="change1(this.value)">
<option value="" selected="selected">Select Product</option>
<option value="10">
Almond </option>
<option value="18">
Capsicum </option>
<option value="3">
Cashew </option>
<option value="1">
Cocoa </option>
<option value="2">
Coffee </option>
<option value="4">
Cotton </option>
<option value="16">
Garlic </option>
<option value="13">
Grains </option>
<option value="22">
Groundnut </option>
<option value="17">
Onion </option>
<option value="19">
Parsley </option>
<option value="9">
Peanut </option>
<option value="7">
Pepper </option>
<option value="11">
Pulses </option>
<option value="5">
Rice </option>
<option value="6">
Sesame </option>
<option value="8">
Spice </option>
<option value="14">
Sugar </option>
<option value="15">
Tomato </option>
<option value="12">
Wool </option>
<option value="23">
_ Other _ </option>
</select>
</div>

I want to populate all those items in a drop down box. How to do it. I am using asp.net and vb.net as code behind. As soon as page loads, the items must populate in the dropdownbox.

I have other php code

<tr>
<td align="right">Select Region:</td>
<td align="left" class="red"><select onchange="xajax_SelectCountry(this.value);" name="region" class=":required" id="region">
<option value="" selected="selected">Select Region</option>
<option value="Asia" >
Asia </option>
<option value="Australia and Oceania" >
Australia and Oceania </option>
<option value="Central Africa" >
Central Africa </option>
<option value="East Africa" >
East Africa </option>
<option value="Europe" >
Europe </option>
<option value="North Africa" >
North Africa </option>
<option value="North America" >
North America </option>
<option value="South America" >
South America </option>
<option value="Southern Africa" >
Southern Africa </option>
<option value="West Africa" >
West Africa </option>
</select></td>
</tr>
<tr>

I need it in a dropdown box .

  • 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-17T23:07:06+00:00Added an answer on June 17, 2026 at 11:07 pm

    Try this:

        <asp:DropDownList runat="server" ID="ddl1">
            <asp:ListItem Value="Select Product" Selected="True"></asp:ListItem>
            <asp:ListItem Value="10" Text="Almond"> </asp:ListItem>
            <asp:ListItem Value="18" Text="Capsicum"> </asp:ListItem>
            <asp:ListItem Value="3" Text="Cashew"> </asp:ListItem>
            <asp:ListItem Value="1" Text="Cocoa"> </asp:ListItem>
            <asp:ListItem Value="2" Text="Coffee"> </asp:ListItem>
            <asp:ListItem Value="4" Text="Cotton"> </asp:ListItem>
            <asp:ListItem Value="16" Text="Garlic"> </asp:ListItem>
            <asp:ListItem Value="13" Text="Grains"> </asp:ListItem>
            <asp:ListItem Value="22" Text="Groundnut"> </asp:ListItem>
            <asp:ListItem Value="17" Text="Onion"> </asp:ListItem>
            <asp:ListItem Value="19" Text="Parsley"> </asp:ListItem>
            <asp:ListItem Value="9" Text="Peanut"> </asp:ListItem>
            <asp:ListItem Value="7" Text="Pepper"> </asp:ListItem>
            <asp:ListItem Value="11" Text="Pulses"> </asp:ListItem>
            <asp:ListItem Value="5" Text="Rice"> </asp:ListItem>
            <asp:ListItem Value="6" Text="Sesame"> </asp:ListItem>
            <asp:ListItem Value="8" Text="Spice"> </asp:ListItem>
            <asp:ListItem Value="14" Text="Sugar"></asp:ListItem>
            <asp:ListItem Value="15" Text="Tomato"> </asp:ListItem>
            <asp:ListItem Value="12" Text="Wool"> </asp:ListItem>
            <asp:ListItem Value="23" Text="_ Other _"></asp:ListItem>
        </asp:DropDownList>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following PHP code $val=<div id=user.$row['cid']. userid=.$row['cid']. class=innertxt><img src=images/images.jpg width=50 height=50><strong>.$uname.</strong><ul> <li>Email: .$row['cemail'].</li>
I have this PHP code: $result = mysql_query(SELECT banner FROM banners ) or die(mysql_error());
I have some php code that was like this: $row = mysql_fetch_array ( mysql_query(SELECT
I have a php code like this,and I need to convert it to .NET
I have this PHP code to highlight the Query on search results. if (isset($_REQUEST['k'])){
I have a PHP code, that will run a Select query to check if
I currently have PHP code that handles the logic for this because I do
I have this php code and the variable is XML data $strXML = <chart
I have this php code: $images=array(); $root = $_SERVER['DOCUMENT_ROOT'].'SV'; for ($i=1; $i<=$total_pics; $i++){ $images[]=$root.'/ad_images/'.$category.'/thumbs/'.$id_stripped.'_'.$i.'.jpg';
I have a php code like this which mainly fetch rss feed from a

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.