Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
RadioButtonList Question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Arun  
View profile  
 More options Oct 4 2005, 11:05 am
From: "Arun" <mailtoaru...@gmail.com>
Date: Tue, 04 Oct 2005 15:05:04 -0000
Local: Tues, Oct 4 2005 11:05 am
Subject: RadioButtonList Question
Hi Frndz,

 How to pass dataList(one field) value to a Radiobutton List  ??

Regards,
Arun.M.D


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sankar  
View profile  
 More options Oct 4 2005, 12:37 pm
From: sankar <sankar_j...@yahoo.co.in>
Date: Tue, 4 Oct 2005 09:37:39 -0700 (PDT)
Local: Tues, Oct 4 2005 12:37 pm
Subject: Re: [.NetIndia] RadioButtonList Question

Hi Arun
i think u asking abt binding a field from database to the radiobuttonlist.If so the follwing code will be usefull

 SqlConnection SqlCon = new SqlConnection("ConnectionString");
  SqlCommand SqlCmd = new SqlCommand("SELECT FieldName1(like Text), FieldName2(like id) FROM TableName", SqlCon);
  SqlCon.Open();
  rbl.DataSource = SqlCmd.ExecuteReader(CommandBehavior.CloseConnection);
  rbl.DataTextField = "FieldName1";
  rbl.DataValueField = "FieldName2";
  rbl.DataBind();

Regards

Sankar

Arun <mailtoaru...@gmail.com> wrote:

Hi Frndz,

How to pass dataList(one field) value to a Radiobutton List ??

Regards,
Arun.M.D

---------------------------------
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arun  
View profile  
 More options Oct 5 2005, 6:57 am
From: "Arun" <mailtoaru...@gmail.com>
Date: Wed, 05 Oct 2005 03:57:40 -0700
Local: Wed, Oct 5 2005 6:57 am
Subject: Re: RadioButtonList Question
hi,
 I tried above example. But itz not get output .

Can any other method is possible to bind a datalist value to
RadioButton List Web contro??

Regards,
Arun.M.D


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SkyMania  
View profile  
 More options Oct 5 2005, 8:31 am
From: "SkyMania" <dhawl...@gmail.com>
Date: Wed, 05 Oct 2005 05:31:14 -0700
Local: Wed, Oct 5 2005 8:31 am
Subject: Re: RadioButtonList Question
Its working fine  with the follwoing code

string strqry;
strqry = "SELECT PRODUCTID,PRODUCTNAME FROM PRODUCTS WHERE PRODUCTNAME
LIKE 'A%'";
Scmd = new SqlCommand(strqry,Con);
Con.Open();
SDR = Scmd.ExecuteReader();
rbl.DataSource = SDR;
rbl.DataTextField = "PRODUCTNAME";
rbl.DataValueField = "PRODUCTID";                    
rbl.DataBind();

Regards,
SkyMania


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arun  
View profile  
 More options Oct 5 2005, 8:41 am
From: "Arun" <mailtoaru...@gmail.com>
Date: Wed, 05 Oct 2005 05:41:46 -0700
Local: Wed, Oct 5 2005 8:41 am
Subject: Re: RadioButtonList Question
Hi,

 When i use above coding it says "rbl" is not declared error....


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arun  
View profile  
 More options Oct 5 2005, 8:45 am
From: "Arun" <mailtoaru...@gmail.com>
Date: Wed, 05 Oct 2005 05:45:20 -0700
Local: Wed, Oct 5 2005 8:45 am
Subject: Re: RadioButtonList Question
Hi,

I used like this....

        myconn1 = New
SqlConnection("server=localhost;DataBase=Banking;Trusted_Connection=True")
        mycommand = New SqlCommand("Select * from
Adm_Super_LoginMaster", myconn1)
        myconn1.Open()
        myread = mycommand.ExecuteReader()
        myread.Read()
        rbl.DataSource = myread
        rbl.DatavalueField = "Adm_id"
        rbl.DataBind()
        myread.Close()
        myconn1.Close()

In this coding it shows erron on this line
"rbl.DataSource = myread
"

And ERROR is:
Object variable or With block variable not set.

Regards,
Arun.M.D


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SkyMania  
View profile  
 More options Oct 6 2005, 12:55 am
From: "SkyMania" <dhawl...@gmail.com>
Date: Wed, 05 Oct 2005 21:55:33 -0700
Local: Thurs, Oct 6 2005 12:55 am
Subject: Re: RadioButtonList Question
Hai,
        Please check your connection..and try to bind it with datagrid.
        And remove myRead.Read() also, otherwise it will bind only the
first record.

Regards,
SkyMania


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arun  
View profile  
 More options Oct 5 2005, 8:44 am
From: "Arun" <mailtoaru...@gmail.com>
Date: Wed, 05 Oct 2005 05:44:34 -0700
Local: Wed, Oct 5 2005 8:44 am
Subject: Re: RadioButtonList Question
Hi,

I used like this....

        myconn1 = New
SqlConnection("server=localhost;DataBase=Banking;Trusted_Connection=True")
        mycommand = New SqlCommand("Select * from
Adm_Super_LoginMaster", myconn1)
        myconn1.Open()
        myread = mycommand.ExecuteReader()
        myread.Read()
        rbl.DataSource = myread
        rbl.DatavalueField = "Adm_id"
        rbl.DataBind()
        myread.Close()
        myconn1.Close()

In this coding it shows erron on this line
"rbl.DataSource = myread
"

And ERROR is:
Object variable or With block variable not set.

Regards,
Arun.M.D


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »