Click here to Skip to main content
15,915,164 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help me Pin
carbon_golem11-Apr-08 3:04
carbon_golem11-Apr-08 3:04 
GeneralRe: Help me Pin
Pete O'Hanlon11-Apr-08 3:04
mvePete O'Hanlon11-Apr-08 3:04 
GeneralRe: Help me Pin
prachi1422-Apr-08 0:39
prachi1422-Apr-08 0:39 
GeneralRe: Help me Pin
Roger Alsing11-Apr-08 3:08
Roger Alsing11-Apr-08 3:08 
GeneralRe: Help me Pin
CPallini11-Apr-08 4:09
mveCPallini11-Apr-08 4:09 
GeneralRe: Help me Pin
Ashfield11-Apr-08 4:44
Ashfield11-Apr-08 4:44 
GeneralRe: Help me Pin
Abhijit Jana11-Apr-08 6:12
professionalAbhijit Jana11-Apr-08 6:12 
GeneralRadioButtonList Pin
Burim Rama11-Apr-08 2:40
Burim Rama11-Apr-08 2:40 
Hey
I have created a metode to create RadiobuttonList dynamically but when i show it in my page end i chec them to false or true and when i click the button all radiobutton is coming back to true.

I have a function to read wgat user have selected :
Hope i can help. her is som code to create radiobuttonlist:

foreach (DataRow dr in ds.Tables[0].Rows)
{

Label li = new Label();
System.Web.UI.WebControls.ListItem ls = new System.Web.UI.WebControls.ListItem();
RadioButtonList rl = new RadioButtonList();
rl.Items.Add(new System.Web.UI.WebControls.ListItem("Inkl", dr["Type"].ToString()));
rl.Items.Add(new System.Web.UI.WebControls.ListItem("Eks", dr["Type"].ToString()));

rl.RepeatDirection = RepeatDirection.Horizontal;
Panel2.Controls.Add(li);
Panel2.Controls.Add(rl); //tilføjer dem til panelet

}
then when i click a button hwo called checkthevalue, i called this metode:
foreach (Control cr in Panel2.Controls)
{
if (cr is RadioButtonList)
{
RadioButtonList rb = (RadioButtonList)cr;
foreach (System.Web.UI.WebControls.ListItem ls in rb.Items)
{
if (ls.Selected && rb.SelectedItem.Text == "Eks")
{
//this ad a line to pdf file
document.Add(new Paragraph("-" + rb.SelectedItem.Value.ToString(), FontFactory.GetFont(FontFactory.TIMES_ROMAN, 12)));
}
}
}
}

Hope i can help me.
GeneralDispose for custom components Pin
N a v a n e e t h11-Apr-08 2:36
N a v a n e e t h11-Apr-08 2:36 
GeneralRe: Dispose for custom components Pin
carbon_golem11-Apr-08 3:06
carbon_golem11-Apr-08 3:06 
GeneralRe: Dispose for custom components Pin
N a v a n e e t h11-Apr-08 3:25
N a v a n e e t h11-Apr-08 3:25 
GeneralRe: Dispose for custom components Pin
carbon_golem11-Apr-08 3:39
carbon_golem11-Apr-08 3:39 
GeneralRe: Dispose for custom components Pin
N a v a n e e t h11-Apr-08 3:47
N a v a n e e t h11-Apr-08 3:47 
GeneralRe: Dispose for custom components Pin
Mike Dimmick11-Apr-08 4:01
Mike Dimmick11-Apr-08 4:01 
GeneralRe: Dispose for custom components Pin
N a v a n e e t h11-Apr-08 7:07
N a v a n e e t h11-Apr-08 7:07 
Generalbeforenavigate2 postdata to string Pin
parrimin11-Apr-08 2:02
parrimin11-Apr-08 2:02 
GeneralRe: beforenavigate2 postdata to string Pin
parrimin11-Apr-08 2:12
parrimin11-Apr-08 2:12 
GeneralFile printing using c# .net Pin
sailesh_gupta11-Apr-08 1:33
sailesh_gupta11-Apr-08 1:33 
GeneralRe: File printing using c# .net Pin
Christian Graus11-Apr-08 1:40
protectorChristian Graus11-Apr-08 1:40 
GeneralMSN Messenger andC# Pin
Vikas K.11-Apr-08 0:47
Vikas K.11-Apr-08 0:47 
QuestionException Management Pin
mark_w_11-Apr-08 0:15
mark_w_11-Apr-08 0:15 
GeneralRe: Exception Management Pin
martin_hughes11-Apr-08 0:27
martin_hughes11-Apr-08 0:27 
GeneralRe: Exception Management Pin
mark_w_11-Apr-08 0:30
mark_w_11-Apr-08 0:30 
GeneralRe: Exception Management Pin
Guffa11-Apr-08 1:28
Guffa11-Apr-08 1:28 
GeneralNon strict serialization/deserialization Pin
Roger Alsing11-Apr-08 0:13
Roger Alsing11-Apr-08 0:13 

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.