calling a server side function with parameter inline C#
<p>can anyone help me with this : </p>

<pre><code>  &lt;asp:Repeater ID="rep_Categories" runat="server" &gt;
       &lt;ItemTemplate&gt;
      &lt;li&gt;&lt;a href='&lt;%#WriteUrl("&lt;%#Eval("PARTNER_CATEGORY_NAME")%&gt;"," &lt;%#Eval("PARTNER_CATEGORY_ID")%&gt;") %&gt;'  &gt;&lt;%# Eval("PARTNER_CATEGORY_NAME") %&gt;  &lt;/a&gt;&lt;/li&gt;
    &lt;/ItemTemplate&gt;
       &lt;/asp:Repeater&gt;
</code></pre>

<p>server side :</p>

<pre><code> public string WriteUrl(string PartnerName, string CategoryID)
{
    string url=Page.GetRouteUrl("Category ID", new { PartnerName = PartnerName } + "," + new { CatID = CategoryID });
    return url;
}
</code></pre>

<p>i know that my syntax above is incorrect but i cldn't manage to find a way to fix it can anyone tell me how can i fix my problem ?</p>
