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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:17:01+00:00 2026-06-17T12:17:01+00:00

I am using VS 2010 for develop a web application.After the ‘Admin’ give approval

  • 0

I am using VS 2010 for develop a web application.After the ‘Admin’ give approval for a company, the messagebox have to display with the message that “Vendor ID:lblPage2ID modified as “Approved” (or “Not Approved” or “Pending”) upon the radio button selected by the ‘Admin’.How to do it ? Please refer the inline code below and tell me how to place the radio buttons in straight line.

   protected void rblTest_SelectedIndexChanged(object sender,EventArgs e)
    {
     _DAL.ExecuteSQL("UPDATE Company_Info SET 
          Approval_Status='"+rblTest.SelectedValue+"' WHERE Vendor_ID= '" +lblPage2ID.Text +"'");
          ClientScript.RegisterStartupScript(this.GetType(),"callfunction",
        "alert('Approval Status modified in database');", true);
      //  Page.ClientScript.RegisterClientScriptBlock (typeof(Page),"SCRIPT",
         string.Format("alert(Approval Status modified as '" +rblTest.SelectedValue+"')"), true);
      //  HttpContext.Current.Response.Write("<script>alert (Approval Status modified as 
         '" + rblTest.SelectedValue +"');</script>");
      //  ClientScript.RegisterStartupScript (this.GetType ), "callfunction", 
            "alert('Approval Status modified as '"+rblTest.SelectedValue+"');",true);
    }

    <asp:RadioButtonList ID="rblTest" align = "center" runat="server" AutoPostBack="true"   Width="152px" onselectedindexchanged="rblTest_SelectedIndexChanged" style="margin-left: 0px"> 
            <asp:ListItem  Text="Approved" Value="YES"></asp:ListItem> 
            <asp:ListItem  Text="Not Approved" Value="NO"></asp:ListItem> 
            <asp:ListItem  Text="Pending" Value="PEN"></asp:ListItem> 
     </asp:RadioButtonList>

radiobutton

  • 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-17T12:17:02+00:00Added an answer on June 17, 2026 at 12:17 pm
    Set the RepeatDirection property of the RadioButtonList control to horizontal.
    
    <asp:RadioButtonList ID="rblTest" align = "center" runat="server" RepeatDirection="Horizontal" AutoPostBack="true"   Width="152px" onselectedindexchanged="rblTest_SelectedIndexChanged" style="margin-left: 0px"> 
                <asp:ListItem  Text="Approved" Value="YES"></asp:ListItem> 
                <asp:ListItem  Text="Not Approved" Value="NO"></asp:ListItem> 
                <asp:ListItem  Text="Pending" Value="PEN"></asp:ListItem> 
    </asp:RadioButtonList>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're using Visual Studio 2010 professional to develop and maintain our company ASP (classic
I am using Visual C# Express 2010 to develop an application for the Unity3D
I need to develop a simple windows application using Visual Studio 2010 and use
I am using Visual Studio TFS 2010 and want to develop an notification application.
I have developed a sharepoint 2010 visual webpart application with multiple visual webparts using
I am wondering if it is better to develop .Net 2010 web application on
I'm using Sharepoint Designer (2010) to develop a series of connected lists. I have
I'm going to develop a small windows application using C# .NET in VS 2010.
Im using C# in VS 2010 to develop a web page. the below is
I am using Addin Express 2010 , and want to develop a web pane

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.