Solved

Refer to e As RepeateritemEventArgs in another method

Posted on 2006-07-20
3
254 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 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

Technology Partners: 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 have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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