how to control a RadioButtonList's Listitem's text show according database's field

Hi my page has a repeater control,in repeater has a RadioButtonList control now i want to let the RadioButtonList has four Listitem,every Listitem's text is a database's field so the listitem can show dynamic according every record how can i work out my problem thanks a lot
5/28/2008 1:31:16 PM 72751 articles. 3 followers. Follow

3 Replies

Similar Articles

[PageSpeed] 7

 hello dear

bound your RadioButtonList to database if i m not clear fell free 4 reply

Satyabrat Singh
Web developer
Livetek Solution
Dont forget to click "Mark as Answer" on the post that helped you.
5/28/2008 1:40:02 PM

yes.i bound the radiobuttonlist to a dataset but how to display the field's value in listitem thanks a lot
5/28/2008 1:59:13 PM

Hi yugiant,

I think you can add four RadioButton instead of one RadioButtonList, and then set each Text='<%# Eval("EachField") %>' in RadioButton.


Qin Dian Tang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
6/2/2008 8:23:46 AM

Similar Artilces:

Label control's text doesn't appear to be set (in the page which has a user control )when trying to update the text property in the FormView's ItemUpdated event
Hi There,I have a user control which hosts a formview control, gridview control and a label control. The grid view is usedto show rows in the DB and when clicked to edit each row, a form view opens up in edit mode with that particular row info. So I have nothing in the item template.My first question it mandatory to have smth in the itemtemplate of the form view.I have controls in edititemtemplate and insertitemtemplate.When a particular row is edited, I would like to show a status msg showing that the row has been updated.For this, I use the ItemUpdated event of the formview and try ...

Help! I cannot access the DataGrid's ItemTemplate's LinkButton's Text Atrribute 's Value!!!!!!!!!!!
I write a datagrid's ItemDataBound method as follows:   private void dgTable_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)  {   if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)   {    if(!isRole("Manager"))    {     LinkButton tmp = (LinkButton)e.Item.FindControl("lbPassed");     if(tmp.Text == "Passed")     {      ((LinkBu...

Who's show is SN? Steve's or Leo's?
I don't want to start anything (honestly)! Just want to ask a simple question. Does the Security Now podcast belong to Steve Gibson or Leo Laporte? Maybe I'm in a world all to myself, but when I listen to the excellent SN podcasts, I want to hear STEVE, not Leo. But especially in the past few shows, it seems Leo will repeatedly interrupt Steve in the middle of a sentence that I want to hear the rest of. I consider this very rude of Leo. Steve is making a point that I (we) want to hear, then looses his train of thought after Leo barges in and asks something. It...

Replace 1's and 0's in a gridview column with Yes's and No's
Is it possible to change the display of a column in a gridview to show a Yes for all 1's and a No for 0's that display in a particular column of a gridview bound to a database?  If so, can someone share the way with me?  I am using ASP.NET 2.0 with VB Code Behind.  Thanks One way you can do is thrrough  CASE in your select statement: Select YesNoColumn= CASE yourColumn WHEN 1 THEN 'Yes' WHEN 0 THEN 'No' ELSE '' END FROM YourtableLimno <Columns>     <asp:TemplateField HeaderText="yourHeader" SortExpression="yourDataField"> ...

It's Linux !? No, it's BSD ! No, no, it's...
kFreeBSD a Debian distro using the FreeBSD kernel ! ObiWan wrote: > kFreeBSD > > > > a Debian distro using the FreeBSD kernel ! Why use a BSD kernel? I hope the reason is more than, just because they can. It's easy to understand why the would want to use Debian packages. :) -- Jimmy Johnson Registered Linux User #380263 >> kFreeBSD >> >> >> >> a Debian distro using the FreeBSD kernel ! > Why use a BSD kernel? I hope the reason is more than, just because > they can. and it's not just "because they can" :) > It's easy to understand why the would want to use Debian packages. :) sure; but please, let's avoid starting a "religion war", I love "beastie" (FreeBSD) and I think it has a really *good* kernel, and seeing the linux packaging and stuff running on BSD means to me that we may have the best of both worlds; then btw others here may disagree, but, again, I'm not willing to start a "religion war", the distro is there, so if one wants to try it that's ok, if not, that's ok as well :) ObiWan wrote: >>> kFreeBSD >>> >>>

Unable to access user control's user control's function\property from another user control
Hi, I used to call an user control's user control function as stated below from my user control in ASP.Net 1.1 wucCompany.wucEmployee.GetEmployeeSomething() After migrating to ASP.Net 2.0, I am unable to use any properties/functions(even the public ones) of the user control's User control's from another user control.  The way I have to do is create property\function in wucCompany which calls the wucEmployee's property\function and call the wucDepartment.GetEmployeeSomething().Since I need to do this change in too many places, I can...

Repost: FF won't show gif's nor jpg's Red X's
XP sp2 FF extentions: Adblock Plus Copy plain text Fasterfox Firebug FireFTP McAfee SiteAdvisor NoScript Talkback Video Downloader Pic's show red x's. These pics show just fine in Internet Explorer and Netscape. Anyone have any ideas????? Fasterfox, I guess. See what happens if you disable it (or just disable its pipelining feature). -- �Q� =============== Thank you Q. I disabled all of them, one at a time (restarting each time) and the problem still exists :-( digimomma On 7/12/2007 5:26 PM digimom inquired: > Thank y...

Setting a panel control's visibility and it's affect in nested controls.
I am trying to debug a page using the panel control.  The code in the final submission of the form has logic to get data from a dropdown based on the control's visibility.  If the control's visibility is set to true, the the data is retrieved and sent to the database.The problem appears to be the dropdown control's visibility is set to false when it should not.  The dropdown is nested in a panel control.  While doing a trace, it appears when a panel control's visibility is set to false, the visibility for all controls nested under this panel are set to false as well.You're probably asking why use a control's visibility as a condition on what to do with the data.  The answer is I didn't write this page and I intend to change the logic.  Can anyone confirm that when setting the panel control's visibility, you also set the visibility of any nested controls?Thanks,Mike  Yes it will set all the child controls visibility to false.. Think of it this way.. when you are hiding a container.. all the contents will be hidden too.. Here the panel is nothing but a container.. so the contents, which are the child controls will be hidden too when its container is hiddenKumar Reddi Thanks.  I've used panels before to hide controls based on certain conditions.  Until now I had not realized when setting the visibility of the container you're setting that state to all the child controls....

Hyperlink's, ImageURL's, and OnError's
I created an ASP:Hyperlink and set the ImageURL attribute so the link will be the image.If the image is missing, I would like it to display a 'missing image' pic that I have.  I know you can use the OnError attribute of the <img> tag to run some javascript to change it.Unfortunately I can't find a way to access the Hyperlink's Image that is inside it, so I can add an Attribute so the resulting <img> tag will have an OnError attribute inside of it.Any help?If my Hyperlink is called 'foo'....would I do...  ((Image) foo.Controls[0]).Attributes.Add(&...

Can I hide a user control's control from the hosting page's client script?
Okay, my previous question was not unswered and I guess you can't hide a control's panel with server code then show it with client code. Now this is what I try to do: on the hosting page's onload event, call a function to hide the user control's penal. Here is the deal: the user control was looped as many times as data required. So the penals will be name mypanel1, my panel2, etc... that is not even a problem if I know if the following is true: * Do all server codes finish running before the page get sent back to the client? Say the database gave me 5 penals, I can then determine how many times to call the panels to hide. Yes, all the server code is run before the page is sent back to the client....

Guru's..?? Any do's and/or dont's for Zfd4 and Citrix..?
We've got a nw6/sp5 network with GW 6.5, bm3.7 and zfd 4.01 up'n'running.. Now we're adding a citrix server ( win2003) to the mix, will supply a couple off app's to users over the internal VPN in another city. Probably we'll skip the AD phase since we can not see any app and/or user with the need for AD. So,, any special considorations..? tip's'tricks..? known issues...? t.i.a... On Mon, 16 Aug 2004 15:57:10 GMT, Emerson wrote: > So,, any special considorations..? tip's'tricks..? known issues...? biggest one... zfd4.x d...

DataSet's DataTable's and TableAdapter's Oh My!
Here is my situation.  I am using VB as my programming language.I am creating a part of a website that will be the admin section.  I want the admin to be able to add/edit data in a set of tables that normal users can't.  There are 20 lookup tables that I use in the website that I want the admin to be able to manage (i.e. add, edit, delete, insert).  I don't want to create 20 separate web pages (one for each table).  I have one page that has links to all the tables.  Each link has a "table" querystring variable associated with it.  When the...

Control's (object's) default value??
How or where can I see an control's default value? Say, for example the Visible property for webcontrols? Would be preferable if I could quickly see it in Visual Web Developer but MSDN online documentation would also be nice. Also how can I do this in general for all .Net objects?...

OLE Control
I'm attempting to load a .bmp image into an OLE object using PowerBuilder 11.1. The OLE ActiveX is AddFlow5 and I am using it to graphically represent links between entities - people, organisations, addresses, vehicles, telephones, etc. Documentation for AddFlow5 gives an example in VB script to load the relevant 'picture' into a node, ie, SET node.picture = LOADPICTURE("C:\images\person.bmp"). I cannot find a suitable equivalent in PB 11 to either 'SET' or to 'LOADPICTURE' The developer of AddFlow suggested I try: OLEObject uo uo = Create OLEObject li_Ret = uo.ConnectToObject("c:\picture.gif") node1.Picture(uo) The return value shows the picture loaded to the OLE object, uo, (wouldn't work for a bitmap) but I get a runtime error on reaching node1.Picture(uo) of "Error calling external object function picture at line ..." I've also tried loading a .bmp picture into a BLOB but, again, the routine fails on "node1.Picture(lblb_picture)", this time with the runtime error of "Invalid parameter type calling external object function picture at line ...". Assigning either the blob or ole value with an equal sign, in keeping with the document loadpicture example, gives the error "Type mismatch accessing external object property picture at line ..." I've used PB's object browser to look for functions etc in the OLE but could not find anyt...

411 it's pconsole, 51 it's NWPMW32, 65 it's ???
I like to give some of my users controll over their print jobs. In Netware 3.x to 4.x it was pconsole. In Netware 5.x it was NWPMW32. I don't seem to be able to find the same type of utility for Netware 6.5? We don't like to give user access to nwadmin and the NWPMW32 I copied from my 51 server (TID 10075273) to the 65 server won't display the jobs. Mmccabe, It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply. Has your problem been resolved? If not, you might try o...

Getting the recreated control's id's by viewstate?
Hi How can i get the automaticly created fileupload control's id's by stroring them in the viewstate? Is it possible? or any other way to get them on the run-time? I can store button's click number and then create dynamic controls on the run-time and if i look at the source code i can see the auto-created id's but when i click submit button to upload files in fileupload controls i get an NullReferenceException. I guess when i click submit button all the id's gone because the page posts back. So i write this to read id's and assign to my fileupload control, here is the code for it ,  1 for (int i = 1; i <= ButtonClick; i++) 2 { 3 myUpload = ((FileUpload)pnlUpload.FindControl("upload_" + i.ToString())); 4 if (myUpload.HasFile) 5 { 6 upload(myUpload.PostedFile.FileName); 7 lblSonuc.Text = "basari"; 8 } 9 }  For creating dynamic controls i wrote this,   1 public int ButtonClick 2 { 3 get 4 { 5 return (int)ViewState["ButtonClick"]; 6 } 7 set 8 { 9 ViewState["ButtonClick"] = value; 10 } 11 } 12 13 protected void lnkEkle_Click(object sender, EventArgs e) 14 { 15 ++ButtonClick; 16 for (int i = 0; i < ButtonClick; ...

Remove Control's ViewState when it's no longer needed
To improve performance, is it possible to remove a control's ViewState values when they will no longer needed?I've tried setting EnableViewState to false once the control will no longer be appearing, but this doesn't seem to reduce the ViewState's size. FYI if a control is hidden it does not have its value in ViewState.Long Live .NETKazi Manzur Rashid (Amit)_________________________Web: http //dotnetshoutout.comBlog:  I'm not sure if this is correct, if by "hidden" you mean Visible=false.I think I ca...

The value's length for key 'data source' exceeds it's limit of '128'.
Hii, When I tried to bind dropdownlist to database by declaring connection string in the code behind file I am getting this error: The value's length for key 'data source' exceeds it's limit of '128'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: The value's length for key 'data source' exceeds it's limit of '128'.Source Error: An...

'Tab' control 's visible doesn't work.Why?
I use tab control in my applition. And I set visible=false, but it doesn't work. my code is: ----------------------------------------------- <asp:ScriptManager ID="ScriptManager1" runat="server" />  <div>   <ajaxToolkit:TabContainer runat="server" ID="Tabs" Height="138px" ActiveTabIndex="0"    Width="402px">    <ajaxToolkit:TabPanel runat="server" ID="Panel1" HeaderText="Tab1" Visible="false">     <ContentTemplate>      1111     </ContentTemplate>    </ajaxToolkit:TabPanel>    <ajaxToolkit:TabPanel runat="server" ID="Panel3" HeaderText="Tab2">     <ContentTemplate>      2222     </ContentTemplate>    </ajaxToolkit:TabPanel>    <ajaxToolkit:TabPanel runat="server" ID="Panel2" HeaderText="Tab3">     <ContentTemplate>      3333     </ContentTemplate>    </ajaxToolkit:TabPanel>   </ajaxToolk...

Trojans, PUP's and virus's in GRC NG's Hmmm
Hmm, Just connected a new client that caused a refresh of the group. Multiple postings were intercepted as containing trojans and other such. Even one in, which only Steve can port to (as far as I know) Is this expected.. IE you guys are discussing the mechanics of trojans etc, with code examples? Dave 09/11/2008 19:41:38 Deleted HOSTNAME\USERNAME C:\Program Files\Windows Live\Mail\wlmail.exe C:\Sandbox\USERNAME\LiveMailnOE\user\current\Local Settings\Application Data\Microsoft\Windows Live Mail\\\11AB78DB-00000117.nws Exploit-CodeBase.g...

It's not about 1st amendment, it's about condoning Mozilla's despicable behavior.
Today I got a nice email from someone inside Mozilla, in response to my ang= ry post elsewhere, explaining Mozilla's actions. He ended his email with: "Open dialogue is an important part of Mozilla's commitment to open, honest= and community-driven communication, and we remain committed to a free, ope= n web." In the spirit of open dialogue, let me share here my response to him. Ze'ev --------- Dear ..., I appreciate your position yet I remain convinced that Mozilla's behavior w= as despicable. Mozilla caved in to public pressure about one of i...

binding text to the dropdown's item's tooltip from database?
Hi all,         Im having a dropdownlist which gets populated from database.My dropdownlist's width is 150 but the items exceeds the width.So i could not view the full text .I ve an idea to bind the text to the tooltip.But don know how to proceed.can u give me an idea with small example.   thanks, rajesh   Hi, Check the link below which shows how to add to tooltip to dropdown controls   OR   Instead of  using the <asp:Drodownlist try the Html Sele...

accessing a datawindow's control's properties using expresisons
Is it possible to access a column's y coordinate and use it in a datawindow extression? example: if(column.y > 500, a..., b...) If( Long( Describe( 'column.Y' )) > 500, a..., b... ) -- Paul Horan[TeamSybase] VCI Springfield, MA "Leon Mandel" <> wrote in message > Is it possible to access a column's y coordinate and use it in a > datawindow extression? > > example: > > if(column.y > 500, a..., b...) > ...

Setting a panel's height to the height of it's parent control
How do I go about getting a panel to be the same height and width of the cell of the GridView or table that it is in?  I was under the impression that if you set the height of the panel to be 100%, then it would become 100% of the parent control.  In this case, I would assume that the parent control would be the cell that it is housed in. When I do this, it makes my entire GridView or table (I've tried both) grow in heighth by a dramatic amount.  I just want the panel to be the same height as the cell when they are each at their minimum height (based on the lines of text ...