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. solution pls

solution pls

Scheduled Pinned Locked Moved Web Development
csharpasp-nethelptutorial
5 Posts 3 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.
  • S Offline
    S Offline
    sivaram praveen
    wrote on last edited by
    #1

    Hi all, I'm working on VB.Net 2003 with ASP.Net,in my application i want to place a button and on click of it, it has to show some controls and again on click of the same button the controls which r previously visible show hide (for the same button click). I'm not able to proceed further in this regard so pls help me how to proceed with this situation, if any examples are there it would be more helpful pls help me

    P 1 Reply Last reply
    0
    • S sivaram praveen

      Hi all, I'm working on VB.Net 2003 with ASP.Net,in my application i want to place a button and on click of it, it has to show some controls and again on click of the same button the controls which r previously visible show hide (for the same button click). I'm not able to proceed further in this regard so pls help me how to proceed with this situation, if any examples are there it would be more helpful pls help me

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      sivaram praveen wrote:

      I'm not able to proceed further in this regard

      Why not? What efforts have you made to solve the problem yourself?

      sivaram praveen wrote:

      pls help me how to proceed with this situation

      By writing some code. All ASP.NET controls inherit from System.Web.UI.Control[^]. The Control class has a Visible property. Handle the button click event and toggle the state of this property for each control to show or hide it.

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      S 1 Reply Last reply
      0
      • P pmarfleet

        sivaram praveen wrote:

        I'm not able to proceed further in this regard

        Why not? What efforts have you made to solve the problem yourself?

        sivaram praveen wrote:

        pls help me how to proceed with this situation

        By writing some code. All ASP.NET controls inherit from System.Web.UI.Control[^]. The Control class has a Visible property. Handle the button click event and toggle the state of this property for each control to show or hide it.

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        S Offline
        S Offline
        sivaram praveen
        wrote on last edited by
        #3

        Thanks for ur reply I have apply the "Visible" property, but on click of the button it is going to show all the controls n again on click of the same button event those controls should not be visible? For example when we post a query in our "CodeProject" Site, by clicking on the question or replies the text will be visible and again on click of the question only the title is visible; hiding the text. In this similar fashion i want to apply for my application? So pls help me

        F P 2 Replies Last reply
        0
        • S sivaram praveen

          Thanks for ur reply I have apply the "Visible" property, but on click of the button it is going to show all the controls n again on click of the same button event those controls should not be visible? For example when we post a query in our "CodeProject" Site, by clicking on the question or replies the text will be visible and again on click of the question only the title is visible; hiding the text. In this similar fashion i want to apply for my application? So pls help me

          F Offline
          F Offline
          Fred_Smith
          wrote on last edited by
          #4

          so wrap the controls within a div tag and apply the visibility toggle to that... Fred

          1 Reply Last reply
          0
          • S sivaram praveen

            Thanks for ur reply I have apply the "Visible" property, but on click of the button it is going to show all the controls n again on click of the same button event those controls should not be visible? For example when we post a query in our "CodeProject" Site, by clicking on the question or replies the text will be visible and again on click of the question only the title is visible; hiding the text. In this similar fashion i want to apply for my application? So pls help me

            P Offline
            P Offline
            pmarfleet
            wrote on last edited by
            #5

            To produce similar funcionality to the CodeProject forums, you will have to write Javascript code to show and hide elements. A quick Google search yielded the following results[^] on this subject.

            Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

            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