Solved

Refer to e As RepeateritemEventArgs in another method

Posted on 2006-07-20
3
242 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
  • 2
3 Comments
 
LVL 24

Accepted Solution

by:
Justin_W earned 250 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
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 …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 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

13 Experts available now in Live!

Get 1:1 Help Now