[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Refer to e As RepeateritemEventArgs in another method

Posted on 2006-07-20
3
Medium Priority
?
263 Views
Last Modified: 2010-05-18
Hi,

I'm writing a method that has to refer to e As RepeaterItemEventArgs in a Repeater_ItemDataBound event method.

How can I do this?

Thanks,
Jens
0
Comment
Question by:tmccrank
[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
  • 2
3 Comments
 
LVL 24

Accepted Solution

by:
Justin_W earned 1000 total points
ID: 17148250
Use:
Sub R1_ItemDataBound(Sender As Object, e As RepeaterItemEventArgs)
0
 

Author Comment

by:tmccrank
ID: 17148472
It works, but I left out the Sender As Object.

In the Repeater_ItemDataBound event method I now just have RepeaterBindEvent(e).  Is there any reason to use Sender As Object?

Thanks
0
 
LVL 24

Expert Comment

by:Justin_W
ID: 17148544
In this case, not really. For other events that have EventArgs that don't contain useful information, you would generally use sender to figure out which object/control raised the event.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

650 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