Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > linkbutton event not firing

Thread Tools linkbutton event not firing

Posts: n/a

I am unsure of why this is happening... When I run the same code at
work, I get the expected results. However, when I'm at home I

I have a LinkButton in a web user control that when I click on it I
want to raise an event back the the .aspx page.

Here is the code behind for the web user control:

Public Event linkbuttonclick()
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub

Private Sub lbutton_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles lbutton.Click
RaiseEvent linkbuttonclick()
End Sub

My .aspx page is simply this:

Protected WithEvents lbut As spin

Private Sub lbut_linkbuttonclick() Handles lbut.linkbuttonclick
End Sub

When I debug it never gets to the above code (.aspx). However, when
I'm at work it does! My javascript is turned on (in my browser). I
don't know what else to do. Can someone please offer some advicE!!!!!

Thank You,

Jeff V.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LinkButton click event not firing Mel ASP .Net 6 06-12-2007 01:23 PM
LinkButton event not firing Mantorok ASP .Net 1 02-21-2005 01:44 PM
Event not firing from dynamically added linkbutton JoakimR ASP .Net 3 01-08-2005 05:56 PM
Wrong LinkButton Firing Event - Very Odd Solomon Shaffer ASP .Net 0 07-29-2004 06:28 PM linkbutton event not firing webdad3 ASP .Net Building Controls 1 07-07-2003 12:11 AM