A
A
AcidBat2015-09-24 18:46:48
ASP.NET
AcidBat, 2015-09-24 18:46:48

Where should the public object be initialized?

Where in the code (for example, in x.aspx.cs ) should an object of a third-party arbitrary class be initialized so that it is available to all methods of the _default class: System.Web.UI.Page ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kovalsky, 2015-09-24
@dmitryKovalskiy

Why can't it be recreated?
Basically, you can create a page property and trigger an object on Page_Load.
PS pull up MVC, everything is easier there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question