i pass employee name and an employee id from the main site to my dotnetnuke site.
when I get it in my dotnetnuke site, i put it in sessions -----> session("employee name") = request.form("employeename")
session("employee id") = request.form("employee id")
then i try to log the person in:
if userid > 0
object as userinfo = new userinfo
Usercontroller.userlogin(username, object as userinfo..................................)
response.redirect("default.aspx")
if userid<0
(i should register the user first. meaning this user is not in the users table of dotnetnuke)
usercontroller.createuser(object)
but then again, it doesn't work well. is it that easy? how? forgive me for the simple code, i just summarized it and simplified it so you could understand what i mean better. so i am having trouble with the method usercontroller.createuser(object). there is no object created even if I put the necessary stuff:
object.membership.isapproved = true
object.username = Session ("employee name")
object.membership.password = "password"
etc etc etc... please help me sir thanks.
John