Link to home
Start Free TrialLog in
Avatar of dzumwalt
dzumwalt

asked on

How to code evetns for controls (like buttons) that are contained in a login view.

I am employing a login view on an asp page. This view contains several controls (such as buttons) that under normal circumstances generate events. I have read elsewhere on EE where you can use the following code to modify properties of these object in a login view:

HyperLink MyHyperLink = (HyperLink) LoginView1.FindControl("HyperLink1")
MyHyperLink.NavigateUrl = "http://www.msn.com"

My problem is that I also need to respond to events for buttons that are under the login view. When I look in the drop down object list in my coding window, the objects aren't there. If I manually create the events handlers, I get the following:

Handles clause requires a WithEvents variable defined in the containing type or one of its base types

How do I code events for these buttons?
ASKER CERTIFIED SOLUTION
Avatar of dzumwalt
dzumwalt

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial