Page_Load is not working in VB.NET?

Posted by Poster under ASP.NET on 12/8/2008 | Views : 22817 | Status : [Member] | Replies : 2
What is the problem with following code?

Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
If Not IsPostBack Then
BindTheGrid("A")
End If
End Sub

Why my above code is not working? Even debug poing is not coming to this method while debugging.

Thanks




Responses

Posted by: Jayakumars on: 9/30/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
check this method have or not

BindTheGrid

then attach ur process for debug mode.

Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com

Poster, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raja on: 12/8/2008 [Member] Starter

Up
0
Down
You missed the "Handles Me.Load" in the Page_Load method, just attach them and it will start working.

 Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load

If Not IsPostBack Then
BindTheGrid("A")
End If
End Sub


Thanks

Regards,
Raja, USA

Poster, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response