locked
Error: argument not specified for parameter 'e'... RRS feed

  • Question

  • User2098947605 posted

    Trying to implement a class for ITemplate...getting the error in the subject line on this line of code:

    AddHandler lc.DataBinding, AddressOf TemplateControl_DataBinding()


    Private Sub TemplateControl_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs)
            Dim lc As Literal
            lc = sender
            Dim container As DataListItem = lc.NamingContainer

            lc.Text += "<divPost""><divPostTitle""><A href=" & DataBinder.Eval(container.DataItem, "URL") & ">" & DataBinder.Eval(container.DataItem, "Title") & "</a></div><div class=\PostSubtitle\>" & DataBinder.Eval(container.DataItem, "Description") & "</div> <divPostInfo"">Posted on " & DataBinder.Eval(container.DataItem, "CreatedOn", "{0:d} @ {0:t}") & " By " & DataBinder.Eval(container.DataItem, "CreatedBy") + " in " & DataBinder.Eval(container.DataItem, "Category") & "</div> "
        End Sub


    I've done this before I just don't see what I missed.


    Thks


    <input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">

    Saturday, August 1, 2009 6:33 PM

Answers

  • User-158764254 posted

    remove the parenthesis at the end of the statement:

    AddHandler lc.DataBinding, AddressOf TemplateControl_DataBinding   '<-- no parens

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, August 1, 2009 9:45 PM