Solved

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

Posted on 2008-10-24
1
177 Views
Last Modified: 2012-05-05
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?
0
Comment
Question by:dzumwalt
1 Comment
 

Accepted Solution

by:
dzumwalt earned 0 total points
Comment Utility
Nevermind ....

I found the answer in question # 23043623

0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now