CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2001
    Location
    Mobile, AL.
    Posts
    64

    LinkButton doesn't work

    I have inherited a C# ASP.Net web app from someone, and I am trying to dynamically LinkButtons to an HTMLTableCell. The html table is in a user control. I copied the code from another user control which adds them to a panel.

    When I run the program, ones in the panel work. But the ones I added to the HtmlTable don't work. They display text, but when I click them, the events don't fire.

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto
    Posts
    805

    Re: LinkButton doesn't work

    what version of asp.net are you using? you have to wire up the events in asp.net 1.1 in the codebehind file.

    like
    this.linkButton1.Click += new System.EventHandler(functionName);

    that goes in the Webform Designer generated code region

    hth,
    mcm
    rate my posts!
    mcm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured