Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

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

     </td>
      <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? –  C. Marius - MVP Jan 12 '13 at 11:15

1 Answer 1

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

 
discard

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.