• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 917
  • Last Modified:

The type or namespace name 'ImageClickEventArgs' could not be found

I'd love some help on this one if possible please.
I'm working in ASP.NET 1.1 and C# and have a coposite user control. The user control consists of 10 LinkButtons, each of which has an On_Click handler called changePage.

changePage determines the sender and changes the page accordingley.

When I try to run it I get the following error message:

"The type or namespace name 'ImageClickEventArgs' could not be found (are you missing a using directive or an assembly reference?)"

Could anybody help with this please?
  • 2
1 Solution
LoomyAuthor Commented:
In case it helps -
I have the same code in an.aspx page and it works fine - the error only appears when the same code is pasted into a user control.
LoomyAuthor Commented:
This is now sorted.

Needed to reference: public void changePage(object sender, System.Web.UI.ImageClickEventArgs e)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now