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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:33:27+00:00 2026-06-03T20:33:27+00:00

I am developing a web portal using the ASP.NET framework in C# with a

  • 0

I am developing a web portal using the ASP.NET framework in C# with a MySQL database server. My problem is that in one page there are 4 radio buttons (SAP Info, DB info, OS info and License Info) and one grid view.

I want to know how to display records in a single grid view when any one radio button is selected. For example, if I select the SAP info button, the info about SAP should be displayed in grid view from database. Similarly, if I select OS info button then info about OS should be displayed in grid view and same for other 2 buttons. How can I do this?

  • 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-03T20:33:29+00:00Added an answer on June 3, 2026 at 8:33 pm

    When u click any of your radio button, go to your db and get the specific data (according to your checked radio button) and than bind your grid again from the new data source.
    It is good approach to use the stored procedure and pass a parameter of @InfoType with datatype tinyint or int.

    Edited:
    add the row command event like that

    <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" OnRowCommand="GridView1_RowCommand">

    and in your c# code create an event like that

    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            int index = Convert.ToInt32(e.CommandArgument);
    
    
    
           textbox1.Text = GridView1.Rows[index]["UserID"].value.ToString();
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a web portal in asp.net 3.5 which is mainly a front
I am developing web application using asp.net, but i want to work on asp
I am developing a web portal in Asp.Net. Primary target users will be of
I am developing web app using asp.net. I have plenty of javascript files which
I'm developing web site using asp.net. In my web site after login i set
If developing web applications using ASP.NET MVC or Ruby on Rails make the application
I'm new to developing web apps using ASP.NET MVC. In fact, I'm rather new
I am developing an ASP.NET MVC2 Web Portal with JQuery.Mobile for portable devices (tablets,
I am developing web app using ASP.NET and i am also using javascript in
I'm developing web app that user can save his/her work to server. The data

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.