473,507 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Event Arugements not being passed to RaisePostBackEvent

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.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 17 '05 #1
0 1083

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2205
by: Lloyd Dupont | last post by:
I am developing a special control, in fact it's a <td> tag however on click I need to submit somedata. so I write protected void Render(HtmlTextWriter htw) { // ...... htw.Write("<td...
11
1945
by: Mike | last post by:
I have done this many times but for some reason it's not working, the raise postback event fires but the eventArgument passed to it is empty. This is a simple custom control that implements...
2
4355
by: The Crow | last post by:
i want to raise an event on the server with a javascript call on the client. i found a solution but i think its not so elegant. the solution is: i call __doPostBack("RefreshPage", ""); from...
5
10354
by: Verde | last post by:
This is admittedly an apparently odd request... but please indulge me if you don't mind: Suppose I have two <asp:Button.../> on a page (Button1 and Button2). User clicks Button1 and triggers a...
0
2933
by: Demetri | last post by:
I have created a web control that can be rendered as either a linkbutton or a button. It is a ConfirmButton control that allows a developer to force a user to confirm if they intended to click it...
2
3899
by: John Kotuby | last post by:
Hi guys, I am converting a rather complicated database driven Web application from classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The original ASP application works quite...
1
1474
by: John Dalberg | last post by:
What causes a server event to fire when something happens on the client? Say a user changed the gridview's page index, the server side PageIndexChanged event is fires. What makes...
2
2044
by: Paul F | last post by:
Im interested in knowning how the web control event gets passed to server and how its processed there. Like how the click event of a web control button gets called for example any sort of...
0
10077
by: =?Utf-8?B?ZWdzZGFy?= | last post by:
Hi, I have created a second gridview when customer clicks on select link with this code: Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.