| S.No: <%# i++ %> | Price to be quoted: |
| Name: |
|
| Cat No: |
|
| Our Price: |
|
| Price: |
|
| Price: |
|
| Price: |
|
| Other Price: |
|
| Specification: |
|
Setting label text in datalist control by clicking on radiobutton in same datalist
Hi,
I am in trouble again :-p
i have a datalist...in which is bound to some data from data source...each row of datalist contains product and each product contains different prices of diffrent manufacturers and a radio button jst for each price....now i want to select a particular price of the product and set it to the selected product label"lblfinalPrice"
here is the page source code
i want to know the c#code for any radiobutton selecte for ex:
protected void rbOurPrice_CheckedChanged(object sender, EventArgs e)
{
RadioButton oRb1 = (RadioButton)sender;
val = getValue(oRb1.Text);
// write code to set the label to the selected radio button price....
}
thanks ....
Sam HobbsPosted Dec 14, 2009, 12:41 AM
Use a RadioButtonList control. In the toolbox, in the Standard controls, there is a RadioButtonList; drag and drop one to the template. Then do the following.