Code being called twice in my ASPX codebehind??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • C

    #1

    Code being called twice in my ASPX codebehind??

    Hi,

    I have an ASP.Net application.

    I have an aspx page with a button that submits the page.

    In my codebehind I check if it is a postback and
    instantaite a class and use a method of the class.

    On coming back from the class I instantiate it hits the
    End If of where I check it is a PostBack and runs through
    the code again.

    Am new to ASPX.

    Anyone know what could be wrong?

    Thanks,
    C.
  • John Kennedy[MSFT]

    #2
    RE: Code being called twice in my ASPX codebehind??

    Hard to say without seeing the code. You haven't accidentally wired up a
    OnClick twice or something?

    john

    Comment

    Working...