solution pls
-
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
-
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
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 aVisible
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
-
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 aVisible
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
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
-
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
so wrap the controls within a div tag and apply the visibility toggle to that... Fred
-
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