Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to close current browser window in ASP.NET?

How to close current browser window in ASP.NET?

Scheduled Pinned Locked Moved ASP.NET
tutorialquestioncsharpasp-netdatabase
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chand10
    wrote on last edited by
    #1

    Hi I have an application in that, the broswer window popups up and should automatically closed after some selection is made in that window like..... If I checked a CheckBox then that value of the CheckBox i.e true should be entered into the DataBase, after that the window should atomatically closed. I am successful in entering the check box value into the DataBase but I am unable to close the window. How can I close the window. where should I write the code. Suggest me an example.

    I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu

    O S I 3 Replies Last reply
    0
    • C chand10

      Hi I have an application in that, the broswer window popups up and should automatically closed after some selection is made in that window like..... If I checked a CheckBox then that value of the CheckBox i.e true should be entered into the DataBase, after that the window should atomatically closed. I am successful in entering the check box value into the DataBase but I am unable to close the window. How can I close the window. where should I write the code. Suggest me an example.

      I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu

      O Offline
      O Offline
      originSH
      wrote on last edited by
      #2

      http://www.google.co.uk/search?hl=en&q=javascript+close+browser&meta=[^] you can do it with javascript.

      1 Reply Last reply
      0
      • C chand10

        Hi I have an application in that, the broswer window popups up and should automatically closed after some selection is made in that window like..... If I checked a CheckBox then that value of the CheckBox i.e true should be entered into the DataBase, after that the window should atomatically closed. I am successful in entering the check box value into the DataBase but I am unable to close the window. How can I close the window. where should I write the code. Suggest me an example.

        I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu

        S Offline
        S Offline
        SamRST
        wrote on last edited by
        #3

        hi, better to use javascript, in the check event of checkbox write to close the window , like window.close()

        1 Reply Last reply
        0
        • C chand10

          Hi I have an application in that, the broswer window popups up and should automatically closed after some selection is made in that window like..... If I checked a CheckBox then that value of the CheckBox i.e true should be entered into the DataBase, after that the window should atomatically closed. I am successful in entering the check box value into the DataBase but I am unable to close the window. How can I close the window. where should I write the code. Suggest me an example.

          I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu

          I Offline
          I Offline
          Imran Khan Pathan
          wrote on last edited by
          #4

          use self.close(); end of function Best Regard Pathan

          GOD HELP THOSE WHO HELP THEMSELVES

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups