Results 1 to 1 of 1

Thread: Close window from codebehind *RESOLVED*

  1. #1

    Thread Starter
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668

    Close window from codebehind *RESOLVED*

    I have a simple memo form that when the user clicks the delete it runs some code that access the database, deletes the memo and then closes the form, I'm at a loss as to how to close the stupid window.... I figured I could do btnDelete.Attributes.Add("onclick","window.close()")

    well it closes the window but it doesn't run the codebehind.... some direction would be appriciated.

    EDIT: durrrrrr figured it out. Response.Write("<script lang=Javascript>window.close();</script>
    Last edited by Graff; Nov 19th, 2004 at 01:04 PM.
    If wishes were fishes we'd all cast nets.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width