You are here:   Blogs
Register   |  Login

Search

Minimize

PPG&A Blogs

Minimize
Dec 14

Written by: pporter
12/14/2009 9:07 AM 

I like the quick add links that Iron Speed generates so that supporting data elements can be setup on the fly.  I do not like the additional page header and navigation options presented to the user when the add record panel is all that is needed.  To hide these additional controls I added the following code to the header and menu panels LoadData event so the control is hidden.

Orignally posted here on the ISD Technical forums.


In the Header and Footer directory find the code behind file Header.ascx.(cs/vb) and place the following code in the LoadData event;

C# Code
this.Visible = (BaseClasses.Utils.NetUtils.GetUrlParam(this, "Target", false) == null && BaseClasses.Utils.NetUtils.GetUrlParam(this, "DFKA", false) == null);

VB Code:
Me.Visible = (BaseClasses.Utils.NetUtils.GetUrlParam(Me, "Target", False) = Nothing AndAlso BaseClasses.Utils.NetUtils.GetUrlParam(Me, "DFKA", False) = Nothing)

In the Menu Panels directory locate the code behind file Menu.ascx.(cs/vb) and place the following code in the LoadData event;

C# Code
this.Visible = (BaseClasses.Utils.NetUtils.GetUrlParam(this, "Target", false) == null && BaseClasses.Utils.NetUtils.GetUrlParam(this, "DFKA", false) == null);

VB Code:
Me.Visible = (BaseClasses.Utils.NetUtils.GetUrlParam(Me, "Target", False) = Nothing AndAlso BaseClasses.Utils.NetUtils.GetUrlParam(Me, "DFKA", False) = Nothing)


I you are in need of a quick solution to a problem you are having send me an e-mail at pporter@ppgainc.com

Phil

Tags:

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 

Archive

Minimize

WARRANTIES

Minimize

SOURCE CODE SAMPLES MAY BE INCLUDED IN SOME BLOGS. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Other marks and trade names used in this publication are the property of their respective owners.