(this.IsPostBack) not working

Topics: Enterprise Library Core, General discussion
Jun 28, 2010 at 11:31 AM

Hi all,
I am using
- Enterprise library 4.1 with WCSF.
- Master page

the problem i am facing is that -

In my content page -

protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                // never comes here
                this._presenter.OnViewInitialized();
            }
            this._presenter.OnViewLoaded();
        }


In this code, execution pointer never come in

if (!this.IsPostBack).

Any idea regarding this? Thanks in advance.

Jun 29, 2010 at 2:41 AM

Hi,

It looks like your inquiry is more of an ASP inquiry rather than EntLib specific. Though, here's some other forum thread I've found that I think may be related with your current problem.

http://www.eggheadcafe.com/community/aspnet/7/72365/link-to-another-page-is-n.aspx

http://bytes.com/topic/c-sharp/answers/266784-ispostback-problem

http://forums.asp.net/p/1318239/2613119.aspx

For better answer for this you can also try posting your inquiry in ASP.net Forum.

Gino Terrado
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com