SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to add a method in ascx which has some parameters and one of parameter is ResolveUrl(Eval("PageAbsoluteURL").ToString())

when i am trying its throwing me error

i am attaching the code here can anyone tell me what i am doing wrong here

 <%= sample("ResolveUrl(Eval("PageAbsoluteURL").ToString()", rdoLiteratureList.SelectedValue, sap.stm, "", true)%>

      <td >  
     <a id="lnkDoc" href='<%# ResolveUrl(Eval("PageAbsoluteURL").ToString()) %>' runat="server"      target="_blank" > Click here </a>

in the above code the first parameter i need to pass href value

share|improve this question
whats the error? – Mike Jan 12 '13 at 1:30
is your method visible from design-time, e.g. protected? – Marius Constantinescu - MVP Jan 12 '13 at 11:15

Can you try this and see if the error is gone:

<a id="lnkDoc" href="<%#=ResolveUrl(Eval("PageAbsoluteURL").ToString()) %>" runat="server"      target="_blank" > Click here </a>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.