Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Complex logic
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Complex logic
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01331233
Message ID:
01331233
Views:
65
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
Reply
Map
View

Click here to load this message in the networking platform