Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...firsttime login should go to introduction pagefirsttime login should go to introduction page
Previous
 
Next
New Post
6/19/2009 3:39 PM
 

 Hi everyone  i need some help with the following, When the user registered and when he login for the first time(just for the first time) he should redirect to different page and for 2nd ... nth time he should able to see normal home page. can someone give some idea on doing this

 
 Thanks
 
New Post
6/22/2009 9:44 AM
 

You will have to create a custom module to accomplish this behavior. It will determine which page the user should be directed to.


John Eimer
 
New Post
6/22/2009 1:30 PM
 

 Ya i am trying to create custom module but i dont know how to pass username or userid into stored procedure

here is my code:

Dim conn As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Visual Studio 2008\WebSites\Dnn13\App_Data\Database.mdf;Integrated Security=True;User Instance=True")

                    conn.Open()

                    Dim cmd As New SqlCommand("firsttime", conn)

                    cmd.CommandType = CommandType.StoredProcedure

                    Dim obj As Object

                    obj = cmd.ExecuteScalar()

                    conn.Close()

                    If (obj = 1) Then

                        Response.Redirect("http://www.gmail.com/")

                    Else

                        Response.Redirect("http://www.google.com/")

                    End If

 

here is stored procedure:

ALTER PROCEDURE firsttime

@IsNewUser bit,

@UserID int,

@Username nvarchar(100)

 

AS

 

SELECT IsNewUser from dbo.Users

WHERE  UserID = @UserID and Username=@Username

 

 
New Post
6/22/2009 6:41 PM
 

See this thread with additional linked info on the DNN "USERINFO" object:
 
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/160/threadid/313132/scope/posts/Default.aspx

Cheers!
-mamlin


esmamlin atxgeek.me
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...firsttime login should go to introduction pagefirsttime login should go to introduction page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out