Click here to Skip to main content
15,896,401 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: smtp.gmail.com Pin
Sam.M11-Apr-08 2:31
Sam.M11-Apr-08 2:31 
GeneralRe: smtp.gmail.com Pin
Piyush Vardhan Singh11-Apr-08 2:37
Piyush Vardhan Singh11-Apr-08 2:37 
GeneralRe: smtp.gmail.com Pin
Piyush Vardhan Singh11-Apr-08 2:32
Piyush Vardhan Singh11-Apr-08 2:32 
GeneralRe: smtp.gmail.com Pin
Parwej Ahamad11-Apr-08 18:25
professionalParwej Ahamad11-Apr-08 18:25 
General'downloading an attachment file name changes when 2 dots(.) contained in filename' Pin
its.rajendra11-Apr-08 2:16
its.rajendra11-Apr-08 2:16 
GeneralRight Click event on image Pin
Imran Khan Pathan11-Apr-08 1:35
Imran Khan Pathan11-Apr-08 1:35 
GeneralRe: Right Click event on image Pin
Christian Graus11-Apr-08 1:38
protectorChristian Graus11-Apr-08 1:38 
GeneralDynamiclly radiobuttonlist Pin
Burim Rama11-Apr-08 1:08
Burim Rama11-Apr-08 1:08 
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.
GeneralQuestion Pin
nithydurai11-Apr-08 0:47
nithydurai11-Apr-08 0:47 
GeneralRe: Question Pin
J4amieC11-Apr-08 0:51
J4amieC11-Apr-08 0:51 
GeneralRe: Question Pin
eyeseetee11-Apr-08 0:55
eyeseetee11-Apr-08 0:55 
GeneralRe: Question Pin
Laddie11-Apr-08 1:00
Laddie11-Apr-08 1:00 
GeneralRe: Question Pin
Piyush Vardhan Singh11-Apr-08 2:08
Piyush Vardhan Singh11-Apr-08 2:08 
GeneralRe: Question Pin
Christian Graus11-Apr-08 1:35
protectorChristian Graus11-Apr-08 1:35 
GeneralRe: Question Pin
Piyush Vardhan Singh11-Apr-08 2:12
Piyush Vardhan Singh11-Apr-08 2:12 
GeneralRe: Question Pin
eyeseetee11-Apr-08 2:14
eyeseetee11-Apr-08 2:14 
GeneralRe: Question Pin
Piyush Vardhan Singh11-Apr-08 2:20
Piyush Vardhan Singh11-Apr-08 2:20 
QuestionDoExpressCheckoutPayment paypal method require login or signup? Pin
samrat.net11-Apr-08 0:44
samrat.net11-Apr-08 0:44 
GeneralRe: DoExpressCheckoutPayment paypal method require login or signup? Pin
Christian Graus11-Apr-08 1:39
protectorChristian Graus11-Apr-08 1:39 
GeneralRe: DoExpressCheckoutPayment paypal method require login or signup? Pin
samrat.net11-Apr-08 2:33
samrat.net11-Apr-08 2:33 
GeneralRe: DoExpressCheckoutPayment paypal method require login or signup? Pin
Dave Kreskowiak11-Apr-08 7:09
mveDave Kreskowiak11-Apr-08 7:09 
GeneralQuestion Pin
nithydurai11-Apr-08 0:43
nithydurai11-Apr-08 0:43 
GeneralRe: Question Pin
eyeseetee11-Apr-08 0:55
eyeseetee11-Apr-08 0:55 
GeneralRe: Question Pin
Christian Graus11-Apr-08 1:37
protectorChristian Graus11-Apr-08 1:37 
GeneralRe: Question Pin
eyeseetee11-Apr-08 2:16
eyeseetee11-Apr-08 2:16 

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.