Solved

Asp.net vb.net hide show control when page call is products.aspx

Posted on 2010-09-15
2
307 Views
Last Modified: 2012-06-27
I have a master page and other content pages and i need to hide a control when user click in products.aspx page and show control when click in another page
0
Comment
Question by:rflorencio
2 Comments
 
LVL 25

Expert Comment

by:Luis Pérez
ID: 33680720
In javascript, you can do the following:

document.getElementById('control_id').style.display = 'none'

Hope that helps. Maybe if you give more details of what control you want to hide/show it will be easier to answer.
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 33680745
If the control is located in the masterpage itself then you can checn the requested page and hide/show the control accordingly:


// in masterpage

protected void Page_Load(object sender, EventArgs e)

{

   if (Request.Url.AbsoluteUri.Contains("Products.aspx"))

      // hide the control

   else

      // show the control

}

Open in new window

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now