Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page.Init -> Page.Load -> Page.PreRender ...

Status
Not open for further replies.

vladibo

Programmer
Sep 14, 2003
161
CA
I have a program that follows this sequence


1.Execute Main Page Page.Load Event
- here I initialize my database connection

2.Execute Web Control Page.Init Event
- here I initialize main flags

3.Execute Web Control Page.Load Event
- here I print table from database results

4.Execute Main Page Page.PreRender Event
- here I close my database connection

5.Execute Web Control Page.PreRender Event
-

6.Web Controls as <asp:TextBox are available just here :(


This way I can not use web controls like <asp:TextBox or <asp:DropDownList because
1. I need them to be executed before I print table from database results what I do in Web Control Page.Init
2. My database connection is already closed after Main Page Page.PreRender

Is there a way to force Web Controls to be available in Page.Init or Page.Load?

Because when I try now there MyTextBox.Text it is enmty :(

I solved it by not using web controls. Did I take right desision?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top