|
|
Posted 21/06/2005 21:03:20 |
|
|
Forum Newbie
      
Group: Customers
Last Login: 11/08/2005 21:38:49
Posts: 6,
Visits: 34
|
|
| hi, i'm integrating IF.net to my exisitng application which written in c#. I've problem to changing the global.ascx to c# code. After i convert the vb code to c# code into my global.ascx and add InstantForum.DLL as reference to my current application, the code in session_start seem doesn't execute. Below is my code: string UserID = InstantASP.InstantForum.CookieUtil.GetEncryptedCookieValue("InstantForum_UserID"); if (!(UserID=="")) { if (InstantASP.InstantForum.Logic.UserExists(Convert.ToInt32(UserID))) { InstantASP.InstantForum.Logic.UserLogin(Convert.ToInt32(UserID)); } else { Session["InstantForum_UserID"] = ""; Session["InstantForum_Skin"] = ConfigurationSettings.AppSettings["InstantForum_SkinURL"].ToString() + ConfigurationSettings.AppSettings["InstantForum_DefaultSkin"].ToString(); InstantASP.InstantForum.CookieUtil.SetEncryptedCookie("InstantForum_UserID", "", new DateTime(2000, 1, 1)); } } else { InstantASP.InstantForum.Logic.GuestLogin(); } Any one can help me??? 
|
|
|
|