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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:29:27+00:00 2026-06-10T05:29:27+00:00

I am trying to post values from an AjaxToolKit ComboBox using ASP.NET 4.0. Here

  • 0

I am trying to post values from an AjaxToolKit ComboBox using ASP.NET 4.0.

Here is my code:

WebForm1

HTML

<body>
    <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </ajaxToolkit:ToolkitScriptManager>
    <div>
        <ajaxToolkit:ComboBox ID="ComboBox1" runat="server">
        </ajaxToolkit:ComboBox>
        <asp:Button ID="Button1" runat="server" Text="Button" UseSubmitBehavior="true" PostBackUrl="~/WebForm2.aspx" />
    </div>
</body>

C#

protected void Page_Load(object sender, EventArgs e)
{
    for (int i = 0; i < 5; i++)
    {
        ListItem tmpListItem = new ListItem("Item " + i.ToString());
        tmpListItem.Value = "Item " + i.ToString();
        ComboBox1.Items.Add(tmpListItem);
    }
}

WebForm2

C#

protected void Page_Load(object sender, EventArgs e)
{
    HttpContext tmpHttpContext = HttpContext.Current;
    string cmboBoxValue = tmpHttpContext.Request["ComboBox1"];
}

All I get for cmboBoxValue is null.

I am so frusterated because I know this must be simple. I am sure I have done this 100* in the past.

I looked here

How to submit http form using C#

but that did not help. It has to be submitted with the asp:Button.

Hopefully this is enough information for you to provide a response.

Thank you for your time.

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

    With the help of another member I was able to uncover the answer. It can be found here:

    Get POST Values in ASP.NET using NameValueCollection

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

Sidebar

Related Questions

I am using this code. Trying to pass form values from one internal page
I'm trying to POST a PayPal or GoogleCheckout buy now button from the code
Using PHP. I'm trying to retrieve $_POST values from a the second dimension of
I am trying to retrieve some values from the registry. Here is the full
I'm trying to submit form data with jQuery. I'm using ASP.NET WebMatrix. In a
I'm trying to get values from a JSP using getParameter which includes ü,é,à etc.
I have this code. Trying to pass form values from one internal page to
I'm trying to build a simple HTML table form that displays values from a
Possible Duplicate: outputting values from database into html table PHP I am trying to
Hi guys I am trying to post values which is getting number from another

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.