Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 October 18th, 2004, 12:15 PM
Authorized User
 
Join Date: Aug 2004
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default ShowArchive.aspx

Hello,

 I can't view this page in the design view and I think that it's something related to binding expressions.
what's the wrong with the page?
<a class="Poll_Question" href="javascript:expandDiv('div<%# DataBinder.Eval(Container.DataItem, "QuestionID") %>')">
                        <%# DataBinder.Eval(Container.DataItem, "QuestionText") %>
                        -
                        <%# DataBinder.Eval(Container.DataItem, "TotalVotes", "({0} votes)") %>
                    </a>
                    <div style="display:'none'" ID="<%# "div" + DataBinder.Eval(Container.DataItem, "QuestionID") %>">
                    <table>
                        <asp:Repeater id="MyRepeater" runat="server"
                            DataSource='<%# GetResultsSource(int.Parse(
                                DataBinder.Eval(Container.DataItem, "QuestionID").ToString())) %>'>
                            <ItemTemplate>
                                <tr>
                                    <td class="Poll_Option">
                                        - <%# DataBinder.Eval(Container.DataItem, "OptionText") %>
                                    </td>
                                    <td class="Poll_Results">
                                        <%# DataBinder.Eval(Container.DataItem, "TotalVotes", "({0} votes") %>
                                        -
                                        <%# DataBinder.Eval(Container.DataItem, "Percentage", "{0:N1}%)") %>
                                    </td>
                                    <td width="300px">
                                        ' align="left">
                                    </td>
                                </tr>

Thanks,
Marenela

 
Old October 18th, 2004, 02:11 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Probably this:

href="javascript:expandDiv('div<%# DataBinder.Eval(Container.DataItem, "QuestionID") %>')">

Having the href in " might be causing a problem. I can see why you did that. Try without any quotes though.

Brian
 
Old October 18th, 2004, 04:58 PM
Authorized User
 
Join Date: Aug 2004
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default

NO it's not that.
Thanks.
Marenela

 
Old October 19th, 2004, 05:26 AM
Authorized User
 
Join Date: Aug 2004
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Still I can't run the page
Thanks,
Marenela

 
Old October 19th, 2004, 06:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

The only thing I could think of it being would possibly be this:

DataSource='<%# GetResultsSource(int.Parse(

What does GetResultsSource return? The other thing is maybe try binding these:

 <%# DataBinder.Eval(Container.DataItem, "TotalVotes", "({0} votes") %>

to server controls.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
ShowArchive.aspx is not working groupmatch BOOK: ASP.NET Website Programming Problem-Design-Solution 2 October 22nd, 2004 10:44 PM
New.aspx works but login.aspx fails Validation nigelhamilton BOOK: ASP.NET Website Programming Problem-Design-Solution 8 September 13th, 2004 02:29 AM
New.aspx works but not Login.aspx ? reidcor BOOK: ASP.NET Website Programming Problem-Design-Solution 2 May 24th, 2004 10:32 AM
HowTo Pass Form data from Page1.aspx to Page2.aspx dati ASP.NET 1.0 and 1.1 Basics 6 January 27th, 2004 06:57 AM





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