all groups > asp.net building controls > august 2003 >
You're in the

asp.net building controls

group:

EventArugment Not Being Passed


EventArugment Not Being Passed Lucas Tam
8/19/2003 2:24:21 PM
asp.net building controls:
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.

--
Lucas Tam (REMOVEnntp@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
Re: EventArugment Not Being Passed Teemu Keiski
8/20/2003 9:31:01 AM
I answered this on the previous thread.

--
Teemu Keiski
MCP,Designer/Developer
Mansoft tietotekniikka Oy
http://www.mansoft.fi

AspInsiders Member, www.aspinsiders.com
ASP.NET Forums Moderator, www.asp.net
AspAlliance Columnist, www.aspalliance.com

"Lucas Tam" <REMOVEnntp@rogers.com> kirjoitti viestissä
news:Xns93DC6A09A7DE0nntprogerscom@140.99.99.130...
[quoted text, click to view]

AddThis Social Bookmark Button