Web Forms :: Want The Second Textbox To Hide If The First Radiobutton Is Checked

Dec 28, 2010

I am using visual C# and trying to create a web form (form.aspx for example).The issue is that i'm using two radiobuttons and two textboxes and i want the second textbox to hide if the first(or the second, i don't care) radiobutton is checked(selected).I am typing the below piece of code:

[code]....

View 1 Replies


Similar Messages:

Data Controls :: Validate TextBox In GridView If RadioButton Inside Same Row Is Checked Using JavaScript

May 6, 2014

if radio button  selected as process in a row then i need check text box is empty or not using jquery or javascript in gridview?

View 1 Replies

Web Forms :: Set RadioButton To Checked Dynamically

Sep 8, 2010

I'd like to set one of a few radiobuttons to checked dynamically. They are called rbTheme1-rbTheme7. I can find them (for example the one called rbTheme3) with the code below but how do I set it to true at the loading of the page?

int buttonID = 3;
string buttonName = "rbTheme";
(RadioButton)themePick.FindControl("buttonName" + buttonID.ToString());

View 5 Replies

Web Forms :: Passing Checked Value Of Radiobutton

Jan 12, 2011

well i have two pages 1st Page "Medical Examination" in this page i have two radio buttons "Man" or "Woman"

[Code]....
[Code]....

View 4 Replies

Web Forms :: Radiobutton Not Retaining Its Checked Status Set?

Jan 28, 2010

I am trying to set the checked status of a radiobutton in code, but it doesnt retain after the code-behind execution completes. It still shows the design time checked status.

View 3 Replies

Web Forms :: Radiobutton Checked False Error

Aug 17, 2010

i am having one online test application in default page i have 1st question and 4 options will come and i am having two linkbuttons one is next and the other is previous and after selecting the answer of 1st question and after clicking the next button it is goin to 2nd question that is in the same page and error is this one if i select 1st answer of 1st question the same answer is repeating in 2nd question i want to uncheck this and in 1st question the answer selected should be checked only.

View 4 Replies

Web Forms :: Save RadioButton Checked Value Into Database

Sep 24, 2012

I have 4 radiobutton in my page

1-RbtW
2-RbtE
3-RbtN
4-RbtS

I want if users checked RbtW it insert to database "West"

If checked RbtE it insert to database "East"
If checked RbtN it insert to database "North"
If checked RbtS it insert to database "Soutا"

How i can do it?

View 1 Replies

Web Forms :: Custom RadioButton Loses Checked Value On PostBack?

Jan 28, 2010

I am creating a control that inherits from the RadioButton, so that I can set the GroupName property manually. Everything is working okay apart from the fact that when the page posts back, the RadioButton becomes unchecked if it has previously been checked. This is the first time I've tried inheriting from controls, so must be doing something really silly. I would welcome anyone helping me to improve my code so that the control's Checked value persists through postbacks. I am causing a postback using a button, not the actual RadioButton itself, if that makes any difference. Here is my code:

[Code]....

View 13 Replies

Web Forms :: RadioButton - Dynamically Created Not Retaining Checked Value After Postback

Jan 13, 2011

I have a couple of RadioButtons that are created dynamically. But after postback they don't retain their checked property. I also have some CheckBoxes and they work just fine using the same mechanism (code below). I have narrowed down the problem to the "GroupName" property. If I remove it, it works just fine. But I need the RadioButtons to be mutually exclusive.

[Code]....

View 3 Replies

Web Forms :: Checkbox / Radiobutton Checked - Enabled Textboxes Required?

Jun 15, 2010

I have a radiobutton and if it is checked "Yes", then the three textboxes that are disabled in default will be enable. Now that this textboxes are enabled I want this to be mandatory. How could I do this via javascript or code behind? If I do it in code behind then autopostback is need which is unnecessary.

<div>

View 18 Replies

Radiobutton In Group (GroupName) Are All Checked?

Jul 22, 2010

So I've got three RadioButtons, They're not in a RadioButtonList because I need to add some textboxes next to each of them.I've added a GroupName, and on the front end they behave as expected. ONLY ONE appears checked at a time.However in the code, if I do:

RadioButton1.Checked = true;
RadioButton2.Checked = true;
RadioButton3.Checked = true;

I would expect only the last one, RadioButton3, to be checked, because they all belong to the same group. This is not the case. All three evaluate to true.... how can that be?

View 2 Replies

.net - Check If A Radiobutton Is Checked In A Group?

Aug 11, 2010

I have group of radio buttons, each group ranges from 5 - 27 radiobuttons. And if any radio button in a group is checked I store 1 in db else I store 0. Now I'm checking each radiobutton using if loop to see if they are checked and set database value. I'm also trying to use the code below. Is there a good/better approach to check if they are checked or not?Current code:

'rname is radiobutton prefix for a given group
'cnt is number of radiobuttons in the group
Private Function RadioIsChecked(ByVal rname As String, ByVal cnt As Integer) As Integer

[code]...

View 5 Replies

C# - Radiobutton Checked Change Event Not Firing In Gridview?

Feb 11, 2011

I have a gridview where i have a radio button. What i need is to on the selection of the radiobutton i have to find the datakey of the gridview. Also one more issue with that is , i can select more than one radio button, which should not happen.

View 1 Replies

Web Forms :: Disable Dropdown List When One Of Radiobutton List Is Checked

Jan 2, 2013

How to disable two drop downs on checking one of radio button from radiobutton list,,its like radiobuttons with no ID in side <asp:RadiobuttonList> tag. 

View 1 Replies

Web Forms :: Display Textbox On Radiobutton Click?

Dec 6, 2010

I have 2 radio buttons

techstaff,
adminstaff.

i want the following function to be implemented.

when the user click on 1st radio button i want to display the 'techstaff textbox' below and when the user click on the 2nd radiobutton i want to display the 'admin staff textbox' below.

View 8 Replies

Web Forms :: Validate Textbox After Checkbox Has Been Checked?

Mar 7, 2010

I have the following problem...

I'm developing an an asp.net 2 application in c#. This site is being built with accessibility in mind, and as such I need a to build a registration from that validates using server side scripts and
not use client side validation.I need to validate a textbox (whether any text has been entered), if a check box has been checked.

Bear in mind that I can't use any clientside code such as javascript postback that is wired into the <asp:CheckBox /> control.

View 10 Replies

Web Forms :: Validate Textbox Is Not Empty If Check Box Is Checked?

Feb 14, 2011

I need to validate textbox is not empty if check box is checked.

View 9 Replies

Data Controls :: Show Hide Data On RadioButton Selection?

May 7, 2015

I want a code for disabling the second radio button if i click the first radio button. Only details regarding to first radio buttton should be displayed. The details of second radio button should be invisible.

View 1 Replies

AJAX :: Enable A Textbox Using Radiobutton List

Aug 13, 2010

radiobuttonlist (Yes and No)

if yes, textbox should be visible

could we do it using ajax and without using autopostback property?

View 4 Replies

Data Controls :: Enable Disable TextBox In GridView Based On RadioButton Selection

Apr 26, 2014

i have radio button list and one textbox in gridview if the value is yes text has to enable otherwise i need disable the text box in grid view how do this?

View 1 Replies

Web Forms :: How To Hide The Text Inside The Textbox

Aug 10, 2010

i have a textbox and a checkbox. when the user checks the checbox the text inside the textbox should not be visible to the other user.

how can i achieve this?

View 6 Replies

Web Forms :: Hide Show TextBox Conditionally Using C#

May 13, 2013

I have a page with a label and a textbox with two button edit and update. when the user clicks on edit the labels get hidden and text box appears. And when he clicks on update the textbox disappears and label appears I have achieved making the text box disappear and label appear but when I click on edit the textbox is not appearing ....

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Institute : System.Web.UI.Page {

[Code] ....

View 1 Replies

Jquery - Insert Checkbox Checked Value To Textbox?

Mar 25, 2011

I have a 45 checkboxes in webform with values 1 to 45 i want ...to insert checkbox checked value to textbox in comma seperated string as in ascending order as 1,2,3,4,5 ...if checkbox1, checkbox2, checkbox3, checkbox4 and checkbox5 is checked...if these checkboxes will be unchecked then the inserted value in textbox will be removed 1 by one respectively. ..

hwo to do this using vb.net or jquery or javascript ..

View 1 Replies

Putting Text In Textbox When 2 Checkboxes Are Checked

Nov 9, 2010

I have 3 webforms controls: 3 checkboxes and 1 textbox. When I check checkbox1 and checkbox2, then in the textbox it should appear as 1,2. How can this be done using ASP.NET webforms controls?

View 1 Replies

How To Insert Checkbox Checked Value To Textbox Without Autopostback

Nov 27, 2010

I have unlimited asp.net checkboxes to my webpage .How to insert checkbox checked value to textbox without autopostback.

I i check checkbox1 and checkbox2 then in textbox it appear as 1,2 ...and after when i uncheck checkbox1 then in textbox the value would be 2.

and if i uncheck checkbox1 and checkbox2 then value in textbox is blank

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved