Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Complex logic
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Complex logic
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01331233
Message ID:
01331233
Vues:
64
Hi everybody,

I have a requirement to add a new tab but only for specific SiteID. I'm not certain as how to properly code logic using these, for example:
 <label class="link" id="tab5" onclick="showReport(5,5)" title="Family Info">
                                    Family Info</label>
In my case last 5 here should become 5+1 in case SiteID = 1. However, I don't see how can I do this.

UPDATE. Solved using
<%
                              int param2;
                              if (Profile.SiteID == 1)  
	                             param2 = 6;
                              else 
	                             param2=5;
                             %>
and then
<%=param2 %>
If it's not broken, fix it until it is.


My Blog
Répondre
Fil
Voir

Click here to load this message in the networking platform