Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select case?

Status
Not open for further replies.

Linkan

Programmer
Feb 7, 2001
44
SE
Today my problem is that I want to use the right include file for language depending on who is loging in.
Is there an easy way of doing this?

Thanks for a great forum!

//Linkan
 

<%
Dim strUserID

strUserID = Session.Contents(&quot;UserID&quot;)

Select Case strUserID

Case 1%>

<!--#include file=&quot;c:\file1.asp&quot;-->

<%Case 2%>

<!--#include file=&quot;c:\file2.asp&quot;-->

'ect......

<%End Select%>
 
Hi,

Okay I put this in my connect.asp file I have this included in all my pages.
It seems like if both files loads for some reason.

It is two language files Swedish or English.
Somthing goes wrong here, maybe I have to do it in every page??

Thanks again.

//Linkan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top