Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 31st, 2006, 11:15 AM
Authorized User
 
Join Date: Aug 2006
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datalist-edititemtemplate-RadioButtonList

Hi All,

I have a datalist with some questions True/False. I add edit, update and cancel buttons so the user can modify his/her answers.

The problem is the following: I hit the edit button goes and selects first radiobutton value(true)always. I try to wirte a code for the datalist Ondatabound...but seems no to work at all.

How do I program the radiobutton to select whatever I have in DB.

<asp:RadioButtonList id="rdbNew" runat="server">
  <asp:ListItem Value="1">Yes</asp:ListItem>
  <asp:ListItem Value="0">No</asp:ListItem>
</asp:RadioButtonList >

Thanks.
 
Old September 1st, 2006, 12:56 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

answered in pro forum.

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
strange problem with EditItemTemplate hertendreef ASP.NET 2.0 Professional 0 August 17th, 2006 08:44 AM
radiobuttonlist in a paging datalist burchbt Pro VB.NET 2002/2003 2 August 13th, 2004 09:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.