Event Arugements not being passed to RaisePostBackEvent

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 (the doPostBack javascript seems to have
both parameters filled out).

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top