Solved

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

Posted on 2008-10-24
1
183 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
dzumwalt earned 0 total points
ID: 22798663
Nevermind ....

I found the answer in question # 23043623

0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
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 Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
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…

690 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