It looks like you are using C#. Try this:
 
<asp:Repeater DataSource='<%#
GetSubCategories(Container.DataItem["CategoryID"]) %>' ID="DataRepeater1"
runat="server">
 
Thank you,
Ryan Olshan
     Website - http://www.StrongTypes.com <http://www.strongtypes.com/> 
     <Rolog> - http://blogs.dirteam.com/blogs/ryan/
 

  _____  

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of ramesh kumar
Sent: Sunday, December 11, 2005 8:45 PM
To: [EMAIL PROTECTED]
Subject: [AspNetAnyQuestionIsOk] How to call a Method inside DataRepeater


Hi all,
   
  Please tell me how to call a method inside datarepeater.
   
  I used this :   <asp:Repeater DataSource='<%#
GetSubCategories(Container.DataItem("CategoryID")) %>' ID="DataRepeater1"
runat="server">
   
  The error is 
   
  Error 1 'System.Web.UI.WebControls.DataListItem.DataItem' is a 'property'
but is used like a 'method'
c:\inetpub\wwwroot\ListingCategories\Default.aspx 15 



                  
---------------------------------
Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping 

[Non-text portions of this message have been removed]



  _____  

YAHOO! GROUPS LINKS 


        
*        Visit your group "AspNetAnyQuestionIsOk
<http://groups.yahoo.com/group/AspNetAnyQuestionIsOk> " on the web.
  

*        To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
e> 
  

*        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> . 


  _____  




[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to