Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,280 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,284 people online right now. Registration is fast and FREE... Join Now!




Retrieving Eval Values from Repeater

 
Reply to this topicStart new topic

Retrieving Eval Values from Repeater

thor78
26 Aug, 2008 - 10:00 PM
Post #1

D.I.C Head
Group Icon

Joined: 6 May, 2008
Posts: 106


Dream Kudos: 50
My Contributions
I have a repeater databound to an questions objectdatasource which works fine, but I want to embed a set of radio buttons or check boxes. Now my problem is, the radio buttons (or check boxes) are also databound to the answers objectdatasource which has an object that needs a parameter to be taken from the results of the questions objectdatasource.

The repeater actually holds question data while the radio button or checkboxes would serve as answers to pick from. How do I access the data from this:

HTML

<asp:Repeater ID="questionRepeater" runat="server" DataSourceID="QuestionDataSource">
<HeaderTemplate>
<h3>Please choose an option.</h3>
</HeaderTemplate>
<ItemTemplate>
<%# Eval("ChoiceName") %>
<br />
</ItemTemplate>
</asp:Repeater>


Since the <%# Eval("ChoiceName") %> is databound with no events I can capture, are there workarounds to capturing it and applying to the answer datasource before the answers are databound?

Thanks!
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 05:22AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month