InstantASP Community Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


Integrated globax.ascx Expand / Collapse
Author
Message
Posted 21/06/2005 21:03:20
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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???

Post #7413
« Prev Topic | Next Topic »

Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ryan Healey, Mark Christianson, Bare, James Trott

Permissions Expand / Collapse

All times are GMT, Time now is 7:43pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.078. 9 queries. Compression Disabled.
Home | Products | Purchase | Support | Company | Contact Us
Privacy Statement | © 1999-2007 InstantASP Limited. All Rights Reserved.