how do i go about looping through each group of radio buttons and getting the text of the selected radio button ?the code displayed above is created dynamically ... in my aspx file i have the following code
I have a web application that shows a page containing between 6 and 20 AJAX UpdatePanels, contained with Custom Web (.ascx) Controls.
You can see an example of such a page here:
The problem I'm getting is that when the user FIRST clicks any of the radio-buttons on any of the controls in the page, ALL the radio buttons that have an active selection ALSO fire an rb_CheckChanged event (see application log below). On subsequent radio-button clicks, only that RB fires the event (as expected).
This behaviour is having a dramatic impact on performance. The page loads quickly, and a "normal" RB click provides an AJAX update correctly within 1 second. The problematic first RB click, however, takes up to SIX seconds to process, which is unacceptable from a user experience standpoint.
Developed in VS.NET 2008, ASP.NET 3.5. Also I converted the "Web Site" solution to a "Web Application" (pre-compiled) and got the same performance (still too slow). Release builds run only marginally faster than debug builds.
Why would a single RB selection change cause all RB's that have a "selection" set on them to also fire? (The "selection" is determined through database settings every time the control is populated, which is called from within the parent page control's Page_Load function. This selection is determined also at first page load, since all the controls get populated then, so why would the clicking of an RB cause them all to fire an event, and only once? That's what I don't get...)
Not sure if this is an AJAX issue, or general ASP.NET UI issue, so I'm posting in two forums on this one.
the form has 15 items to choose with radio buttons, any number can be selected. I would like to process them as a 'group' so I can do something like loop thru them, checking if each one has been selected to build a list and also be saving them to a table row, etc but it seems all the designations as a list or group make it mutually exclusive. just looking for better coding than checking them with an if statement or similar so the question is if there is some way to designate the radio buttons as a group but no force the group to be mutually exclusive
I have the following code<asp:RadioButton runat="server" Text="Male"></asp:RadioButton>I want a gap between the radio button and the radio button text, I made the following changes in the text field(prefixed a space) Text=" Male". However, I don't feel this is the most efficient way.
I'm trying to implement accessibility (keyboard only) ability on my site, but I'm having problems with Radio Button lists. When using radiobuttonlists, when initially, none of the radio buttons is selected, I am able to tab through every single value and select one upon hitting "enter". However, after a value is selected, I can only tab to the selected values, which presents a problem if I want to change the selected value.
From what I understand, radio buttons are grouped at the container controller level, thus when it is considered a group, only one can be selected at a time.
Am building a Form for out intranet that runs on ASP.NET and C#, it is to be a survey from a SQL database. I have the connections setup can pull informations/Questions from the database. I am having a problem with setting up radio buttons within a datalist, ive never done this and i know they require unque names.
It is to be 4 radio buttons per question where only one can be select, i know how to group just not via a datalist with unique names
I've two radio buttons in my web site for selecting sex, one s for Male & another s for Female, Problem is during the Run time, I was able to select both the Radio Buttons, but as per my need i should select only one radio button. And i should perform validation Wn user not selected even one radio button i should show the error msg, like " select sex "
I have an update panel with a set of 2 radio buttons, a label and an image button inside of it. There another set of 3 radio buttons that trigger the update panel. I got everything working but now the image button, label and set of 2 radio buttons inside the update panel show up twice when the radio button triggers are selected?
i have a web page in which i place radio button list, when i select any radio button, on printing i get light color for selected radio button, how i get selected radio button dark colour so that it can visible easily..
I'm trying to sort records in the gridview right after a radio button is selected. My approach is with the dataview, but because the dataset variable doesn't survive a round trip to the server, I don't know how to make this happen.
Public Sub GetCustomers() db.RunProcedure("usp_customers_get_all") db.doSort(radList.SelectedValue) gvCustomers.DataSource = db.MyView End Sub Protected Sub radList_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles radList.SelectedIndexChanged If radList.SelectedValue = 0 Then db.doSort(0) gvCustomers.DataSource = db.MyView End If If radList.SelectedValue = 1 Then db.doSort(1) gvCustomers.DataSource = db.MyView End If End Sub Public Sub doSort(ByVal strIn As Integer) If strIn = 0 Then MyView.Sort = "lastname, firstname" Else MyView.Sort = "username" End If End Sub Public Sub RunProcedure(ByVal strName As String) Dim objConnection As New SqlConnection(mstrConnection) Dim mdbDataAdapter As New SqlDataAdapter(strName, objConnection) Try mdbDataAdapter.SelectCommand.CommandType = CommandType.StoredProcedure Me.mDataset.Clear() mdbDataAdapter.Fill(mDataset, "tblCustomers") MyView.Table = mDataset.Tables("tblCustomers") Catch ex As Exception Throw New Exception("stored procedure is " & strName.ToString & " error is " & ex.Message) End Try End Sub
Using jQuery I want to be able to click an element which will also checks it's related radio button. I had this working fine until we had to add runat="server" to the radio buttons.When I apply this it prevents my jQuery function from working how to get round it, heres a simplified version of the code:HTML
I've found out that when its converted to a .net control instead of checked="checked" (as it would be usually) it is just Checked, so I changed that but on inspecting the DOM in multiple browsers, none of my radio buttons are being checked(Are there any other ways I can use jQuery to check a radio button that has runat="server"?
I have a Gridview with Radiobutton selection and two text boxes and two buttons.
What i need is to like search and extract functions.
My Gridview Initially contains all the data in the table. In one text box, like if i want to search "Learning" in column FIRST NAME and i type "L" in the text box and click the button, all values from the column FIRST NAME starting from "L" should be listed in the Gridview, so that from there user can select "Learning" and click another button to extract values corresponding to it in the another Textbox.
I'm trying to figure out how to access controls that are added to a panel in a code behind file.For example, when I click a button, I add a radio button list to the panel.How do I access the selected item from that radio button list? I get an error saying it is not defined, even though list gets generated..
I have a RadioButtonList that's dynamically filled with different sized items. The problem is that some items are separated from the actual radio button to a different line. I've figured to use to keep the words together but can't find any attribute or trick for the current problem.
i have a grid view with radio button...schedule/approve/reject...by defualt schedule radio button is selected....but when i chage radio button selection option to anyth other than schedule it still store only schedule in DB.wats the pblm?
when i click submit button i got this error
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
so i set the enableeventvalidation=false
now i dint receive any error but when i set breakpoint on the funtion which called on buton clik it still got the value as scheduled for the radio button..spent almost half day for this.. all this while this was workin after i add the moralpopupextender am facing this pblm...now i tried removin that extender but still pblm exist.