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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:04:15+00:00 2026-05-11T02:04:15+00:00

Hi there im using a single TextBox for querying differents types of chossings, for

  • 0

Hi there im using a single TextBox for querying differents types of chossings, for example when i select the first RadioButton (Last Name) I search by Client last name, when i choose second RadioButton (Doc. Code) I search by code and so on, please how can i manage or handle exceptions when for example if user choose ‘Search by Date’ and send a string type?

Im using C# 3.5 – Asp.net

I would like to make it with regular expressions and add that in the RadioButton event, so when users changes radio, he could type just some characters in optionA, other more in Option B, and just dates in OptionC … (regular expression)

Thanks in advances

  • 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. 2026-05-11T02:04:16+00:00Added an answer on May 11, 2026 at 2:04 am

    if you are using the asp web control radiobuttonlist then you can make lots of changes when their is a postback. you can set the attribute to SelectIndexChanged,so whenever their is a change it cause a postback and then you can do whatever from their(verifications). ex:

       <asp:radioButtonList      id='radio1' runat='server'       autoPostBack='true'      cellSpacing='20'      repeatColumns='3'      repeatDirection='horizontal'      RepeatLayout='table'      textAlign='right'      OnSelectedIndexChanged='radio_SelectedIndexChanged'>      <asp:ListItem text='10pt' value='itsMe'/>        <asp:ListItem text='14pt' value='itsYou'/>        <asp:ListItem text='16pt' value='Neither'/>     </asp:radioButtonList> 

    on the server you should have

    protected void radio_SelectedIndexChanged(object sender, EventArgs e) {  //do whatever you want by calling the name of the radio id  //example    if(radio1.SelectedItem.Value=='(whatever you want to test)'  } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there a way to search and replace a string using single unix command
Is there a difference between generating multiple numbers using a single random number generator
I am using a single module a lot in the Erlang shell. Is there
Given a list of potential ID's is there a quick way using a single
Are there any race condition issues when using NSNotifications within a single thread? Here
Is there a way to comment out a single line in HTML using just
I have a search field, and using that single text box I want the
I'm attempting to expose a single API call using three different authentication mechanisms: django's
Is anyone out there using Team Foundation Server within a team that is geographically
Anybody out there using BGL for large production servers? How many node does your

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.