1

When I click on the linkbutton nothing fires. Here is the code:

 protected void AccessFile_Click(object sender, EventArgs e)
    {

        App_Code.bi.LogFileDownload("Access Fact Sheet", Session["UserID"].ToString());

    }

html

 <asp:LinkButton ID="AccessLink" runat="server" OnClick="AccessFile_Click" OnCommand="AccessLink_Command" Text="<img src='img/pdf_icon.png' border='0' />"></asp:LinkButton>
4
  • 2
    What is OnCommand doing? Commented Aug 30, 2013 at 19:35
  • Take out the OnCommand attribute. Commented Aug 30, 2013 at 19:39
  • 2
    Cannot reproduce. Are you building this button dynamically? Commented Aug 30, 2013 at 19:39
  • Do you have any JavaScript/jQuery that might be intercepting the click? Commented Aug 30, 2013 at 19:44

1 Answer 1

3

I figured it out, somehow there were 2 form tags....... :(

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.