Page Processing Events ques

S

Steve Taylor

I have never understood why intellisense doesn't show the available page
processing events (ie Page_Load) for easy inclusion in the code-behind.
Ideas?

The real question: I have master pages and content pages. The Master page
processes the events like "Page_Load()" but the content page only sees the
actual class.functions. Example:
------------------------------------------------------------------------
Partial Public Class DefaultPage
Inherits System.Web.UI.Page

Protected Overrides Sub OnInit(ByVal e As System.EventArgs)
AddHandler Me.ctrCustSearch.Customer_Select, AddressOf Customer_Select
End Sub

Protected Sub Page_Init(ByVal sender As Object, ByVal e As EventArgs)
AddHandler Me.ctrCustSearch.Customer_Select, AddressOf Customer_Select
End Sub
--------------------------------------------------------------------
In the above code only the OnInit() code executes as teh page is loaded!?!

(PS - I am a C# coder and used a conversion program to generate the code
into VB)
http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx

Humbly Yours,
Steve
 
G

Guest

I have never understood why intellisense doesn't show the available
page processing events (ie Page_Load) for easy inclusion in the
code-behind. Ideas?

There are two drop down boxes just about the code editor.

Select Page_Events in the left hand one.

In the right hand one you'll be presented with a bunch of events (i.e.
Page_Load, Page_Init, etc.)


In the above code only the OnInit() code executes as teh page is
loaded!?!

There should be a Page_Load event even in content pages.\
 

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

Top