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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:52:40+00:00 2026-05-15T08:52:40+00:00

Ok, this is painful for me because yes, I’ve been coding ASP.NET after classic

  • 0

Ok, this is painful for me because yes, I’ve been coding ASP.NET after classic ASP days. I’ve so lost the ways of regular HTML controls.

So, here’s my scenario.

1) I have a list of radiobuttons on the page, regular old HTML buttons:

<div id="selectOptions">
    <form action="Checkout.aspx" method="post" target="_self">
 <ul>
     <li><label><input type="radio" name="rbRewardsSelectionGroup" id="rbtNoRewardOption" checked="checked" value="0" />None</label></li>

     <li><label><input type="radio" name="rbRewardsSelectionGroup" value='1' />Free Shipping</label></li>

     <li><label><input type="radio" name="rbRewardsSelectionGroup" value='2' />$100 Store Credit</label></li>

     <li><label><input type="radio" name="rbRewardsSelectionGroup" value='3' />$250 Store Credit</label></li>

     <li><label><input type="radio" name="rbRewardsSelectionGroup" value='4' />$500 Stored Credit</label></li>
 </ul>
    </form>
</div>

2) I need to add some javascript to force a postback if any one of these radiobuttons are selected, even the default selected radio button

3) I attempted to add a form and wrap it around the code. I don’t know if this will work because I think ASP.NET won’t let you have more than one form on a page…or maybe that’s just how it is for everyone?

4) Lets say it will work. Ok so I click the radio button. I send a request to Checkout.aspx and then in the code-behind I can grab that data and do a Request[“rbRewardsSelectionGroup”] to get reference to that radiobutton group and then perform my server-side value checks…whatever I need to do.

I guess my question is am I going about this right with the way I have this setup currently? I believe I’ve got the overall concept here outside of using ASP.NET based controls that do all this magic for you.

I don’t want to get into why I’m not using an ASP.NET control for this particular piece of code.

  • 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-05-15T08:52:40+00:00Added an answer on May 15, 2026 at 8:52 am

    2) With jquery, listen for the change event on the radio buttons and submit its parent form:

    $("input[@name='rbRewardsSelectionGroup']").change(function(){
        $(this).parents('form').submit();
    });
    

    3) You can only have one form with a runat=”server” property in asp.net

    4) Yes, use Request.Form[“rbRewardsSelectiongroup”] to get the value of the selection.

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

Sidebar

Related Questions

This past summer I was developing a basic ASP.NET/SQL Server CRUD app, and unit
I really hope someone who is a CC.NET expert can help with this, because
How is it that Java's BigDecimal can be this painful? Double d = 13.3D;
edit alright, I guess C is painful in nature--Just, this part, is particularly painful.
I've worked with Visual Studio 2008 and editing XAML was really painful because the
For some reason I feel like I'm going about this the painful way. I
I've written a site for my summer internship using ASP.NET MVC. The progress is
Please pardon my C#.Net newbie status. If this is obvious and I missed it
I've just recently fallen in love with the world of ASP.NET MVC, and one
after months of tweaking my vimrc file and installing plugins, I have this little

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.