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 July 15th, 2003, 02:59 PM
Registered User
 
Join Date: Jun 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling a procedure within a data repeater

I have a little reporting tool that I'm converting to use the data repeater instead of the looping logic I first wrote it in. I have all the actual data coming out correct. My problem is with the header. In the existing code I call a routine when writing the header that puts a specific image in the column depending on sort orders. You can see how I wanted to transfer this over in the code below. However, when I call the routine it says that my arrSort isn't defined. I can get this all to work if I create the header outside of the repeater and only use the repeater for the ItemTemplate, alternateItemTemplate, and footertemplate but I would like to use the repeater for the whole thing. Any suggestions?

Thanks,

Jerry

[code]
<asp:Repeater ID="myRepeater" Runat="server">
<HeaderTemplate>
    <tr bgcolor="#d3d3d3">
        <TD bgcolor="#000000"><IMG height="0" width="1" src="images/spacer.gif"></TD>
        <td>
        <%#
        WriteColHeading(arrSort, "SiteName", "SITE NAME", ID)
        %>
        </td>
[code]





Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested Repeater Using Stored Procedure kwilliams ASP.NET 2.0 Professional 1 July 21st, 2008 06:49 PM
calling stored procedure jomet JSP Basics 0 November 23rd, 2007 08:06 AM
hyperlink in nested datalist calling a repeater debjanib C# 1 May 25th, 2006 08:17 AM
Adding an OnClick procedure to repeater johno Classic ASP Databases 1 September 15th, 2005 03:36 AM
Calling an Oracle Stored Procedure booksnore2 BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 2 October 1st, 2004 09:35 AM





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