Posted on 17/07/2008 10:49:05
np wrote:
Hi Sune
Do like this in your pop-up:
Dim CurrentUser As New Dynamicweb.Frontend.Extranet
If CurrentUser.LoggedIn Then
Response.Write(CurrentUser.UserName)
End If
or
Dynamicweb.Frontend.Extranet CurrentUser = new Dynamicweb.Frontend.Extranet();
if (CurrentUser.LoggedIn) {
Response.Write(CurrentUser.UserName);
}
Thanks, that makes things a lot easier.
On that note; what is the smoothest way to instantiate an AccessUserClass?
I have my own function:
public AccessUserClass GetUser(int userID)
{
try
{
DataRow d = Database.getDataSet("SELECT * FROM AccessUser WHERE AccessUserID = " + userID, "Access.mdb").Tables[0].Rows[0];
return new AccessUserClass(d);
}
catch{return null;}
}
Does DW have a similar function to get an accessUser by id or is the new AccessUserClass(Datarow) the way to do it?
- Sune