EventArugment Not Being Passed

L

Lucas Tam

Hi all,

I've been struggling for the past few days to get a custom control to
pass events to RaisePostBackEvent.

My page successfully fires the RaisePostBackEvent, however, the
EventArugment is always nothing. I do not understand why the event
argument is not being passed.

Here is how I'm creating my links which fire the events:

Dim hlPrevious As HyperLink = New HyperLink()
hlPrevious.ID = "btnPrevious"
hlPrevious.NavigateUrl = "javascript:" & Page.GetPostBackClientEvent
(hlPrevious, "Previous")
hlPrevious.Text = "<<"

Dim hlNext As HyperLink = New HyperLink()
hlNext.ID = "btnNext"
hlNext.NavigateUrl = "javascript:" & Page.GetPostBackClientEvent(hlNext,
"Next")
hlNext.Text = ">>"

Any ideas why the arguments "Previous" and "Next" are not being sent to
the event handler?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top