dispaying only close btn in a web page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • durga2005
    New Member
    • Nov 2007
    • 49

    dispaying only close btn in a web page

    Hi

    i m using VB in asp.net.

    In my web page,i want only the close button to be displayed. Min and Max btns should not be displayed .

    how can i do this????
  • kunal pawar
    Contributor
    • Oct 2007
    • 297

    #2
    Yes you can do it for Pop windows or child windows
    use window.showMode lDialog()

    Comment

    • durga2005
      New Member
      • Nov 2007
      • 49

      #3
      Hi

      Can you explain

      I m using visual studio 2005

      I have two forms.
      One contains a Button
      if i click the button in form1,form2 should be opened like a pop up.only close button should be there in form2.
      till closing this form2, form1 should be disabled .


      can you help me???

      Comment

      • Shashi Sadasivan
        Recognized Expert Top Contributor
        • Aug 2007
        • 1435

        #4
        That code given above is javascript.

        Asp .Net being a server side functionality cannot control what the client uses and how they use it.
        You wil have to look into javascripts to manipulate browser settings, however disabling functionalities is now highly reccommended as something which should not be done.

        Comment

        • durga2005
          New Member
          • Nov 2007
          • 49

          #5
          Hi

          How can i create a pop up in Asp.Net
          ie when i click form1 ,form2 should be open as a pop up.

          Can you help me?????

          Comment

          • durga2005
            New Member
            • Nov 2007
            • 49

            #6
            hi
            i dont know javascript.
            Can anyone explain how to do this?

            Comment

            • durga2005
              New Member
              • Nov 2007
              • 49

              #7
              hi
              i dont know javascript.im using visual studio 2005

              Can you explain ???

              Comment

              • kunal pawar
                Contributor
                • Oct 2007
                • 297

                #8
                if your button is server control then its having event onClientClick event write above code for this event

                Comment

                • vinci
                  New Member
                  • Aug 2006
                  • 62

                  #9
                  use popup dialog to show your page using javascript...


                  example:

                  function displayPage() {
                  var myWin = window.open("Yo urPageName.aspx ","","width=670 px,height=580,l eft=200,top=100 ","scrollbars=y es,toolbar=0,st atus=1,menubar= 0,resizable=0,t itlebar=no");
                  myWin.focus();
                  }

                  you do the adjustments on the size of the window... trial and error until the desired size is achieved...

                  Comment

                  • durga2005
                    New Member
                    • Nov 2007
                    • 49

                    #10
                    Hi

                    i m getting the second web form..
                    But i want to make the first webweb page disabled unless the second web page is closed.

                    Comment

                    Working...