Click here to Skip to main content
15,908,111 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to send email asynchronously from asp.net? Pin
Vasudevan Deepak Kumar4-Mar-07 2:23
Vasudevan Deepak Kumar4-Mar-07 2:23 
GeneralRe: How to send email asynchronously from asp.net? Pin
softengg1235-Mar-07 22:49
softengg1235-Mar-07 22:49 
QuestionRadio Button not working Pin
sweetemmu128-Feb-07 23:45
sweetemmu128-Feb-07 23:45 
AnswerRe: Radio Button not working Pin
gauthee28-Feb-07 23:50
gauthee28-Feb-07 23:50 
GeneralRe: Radio Button not working Pin
sweetemmu11-Mar-07 0:11
sweetemmu11-Mar-07 0:11 
GeneralRe: Radio Button not working Pin
gauthee1-Mar-07 0:21
gauthee1-Mar-07 0:21 
GeneralRe: Radio Button not working Pin
sweetemmu11-Mar-07 0:33
sweetemmu11-Mar-07 0:33 
AnswerRe: Radio Button not working Pin
Tuwing.Sabado1-Mar-07 1:08
Tuwing.Sabado1-Mar-07 1:08 
Can you explain this in details.

I want to type the above 4 options during runtime

This is a wild guess… You want to dynamically display those values you’ve provided to a radio button on runtime? If I’m right!, here is the solution. Use the RadioButtonList controls instead the radiobutton control. See code below.

ListItem listItem1 = new ListItem("a.) 20","a"); 
ListItem listItem2 = new ListItem("b.) 30","b"); 
ListItem listItem3 = new ListItem("c.) 10","c"); 
ListItem listItem4 = new ListItem("d.) 50","d"); 
listItem3.Selected = true; //this will select the "c." option
			
RadioButtonList1.Items.Add(listItem1);
RadioButtonList1.Items.Add(listItem2);
RadioButtonList1.Items.Add(listItem3);
RadioButtonList1.Items.Add(listItem4);


Or use data comming from database.

RadioButtonList1.DataSource = MyDataObject;
RadioButtonList1.DataValueField = "DataValueField";
RadioButtonList1.DataTextField = "DataTextField";
RadioButtonList1.DataBind();


and to get the user selected value


string userselectedvalue = RadioButtonList1.SelectedItem.Value
;


Then Save userselectedvalue variable value to the database.


Regards,
Mark
GeneralRe: Radio Button not working Pin
sweetemmu11-Mar-07 1:18
sweetemmu11-Mar-07 1:18 
QuestionServer Error in '/' Application. Pin
dotnethunk28-Feb-07 23:27
dotnethunk28-Feb-07 23:27 
AnswerRe: Server Error in '/' Application. Pin
Paddy Boyd1-Mar-07 0:35
Paddy Boyd1-Mar-07 0:35 
AnswerRe: Server Error in '/' Application. Pin
Vasudevan Deepak Kumar4-Mar-07 2:23
Vasudevan Deepak Kumar4-Mar-07 2:23 
QuestionGrid View Pin
sweetemmu28-Feb-07 23:14
sweetemmu28-Feb-07 23:14 
AnswerRe: Grid View Pin
badgrs1-Mar-07 0:25
badgrs1-Mar-07 0:25 
GeneralRe: Grid View Pin
sweetemmu11-Mar-07 0:38
sweetemmu11-Mar-07 0:38 
AnswerRe: Grid View Pin
badgrs1-Mar-07 4:59
badgrs1-Mar-07 4:59 
QuestionRadio Button Pin
sweetemmu28-Feb-07 23:10
sweetemmu28-Feb-07 23:10 
AnswerRe: Radio Button Pin
Tuwing.Sabado28-Feb-07 23:14
Tuwing.Sabado28-Feb-07 23:14 
QuestionReally simple, but im missing something?! Binding to a label from a datasource in .net2 c# Pin
AdamskiR28-Feb-07 23:08
AdamskiR28-Feb-07 23:08 
AnswerRe: Really simple, but im missing something?! Binding to a label from a datasource in .net2 c# Pin
gauthee28-Feb-07 23:52
gauthee28-Feb-07 23:52 
GeneralRe: Really simple, but im missing something?! Binding to a label from a datasource in .net2 c# Pin
AdamskiR1-Mar-07 0:00
AdamskiR1-Mar-07 0:00 
GeneralRe: Really simple, but im missing something?! Binding to a label from a datasource in .net2 c# Pin
gauthee1-Mar-07 0:15
gauthee1-Mar-07 0:15 
GeneralRe: Really simple, but im missing something?! Binding to a label from a datasource in .net2 c# Pin
AdamskiR1-Mar-07 0:31
AdamskiR1-Mar-07 0:31 
AnswerRe: Really simple, but im missing something?! Binding to a label from a datasource in .net2 c# Pin
Harini N K1-Mar-07 0:20
Harini N K1-Mar-07 0:20 
GeneralRe: Really simple, but im missing something?! Binding to a label from a datasource in .net2 c# Pin
AdamskiR1-Mar-07 0:40
AdamskiR1-Mar-07 0:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.