I am developing a module in which some parts can access by anonymous user as well as registered users and some parts can only be allowed to access by registered users. I will explain it in detail :
My module have 5 ascx controls other than view.ascx and settings.ascx. In the 5 ascx control, 3 of them can access by anonymous users as well as registered users and the other 2 control pages can only be allowed to access by registered users.
This is a module developing for product search. so search, results, and detail of each results can be viewed by all users.
When an anonymous user check the home page of the module which we can name 1.ascx in which the search options included and submits for search; it will displays the results, i.e., 2.ascx.
Now there are some selection property set for each row shown with various products, and here the user can select any product(checkbox) and can send the selected products to his email. so when he clicks "send to email" link i have to check whether the user is registered or on anonymous status. If he is on anonymous mode, the login module should show and successfull login will direct him to the email sending page, 3.ascx.
I know on module settings, we can set the module to allow access to "ALL" or "registered" users. if i 'check' the registered users, then all parts of the module can only be accessed by registered users, but here in this case, only some parts of the module to be set for registered users. How can i direct him to the dnn login page if he is not yet login. and how can i direct to email page once he successfully login.
hope the question is clear ... I am developing a module in which some parts can access by anonymous user as well as registered users and some parts can only be allowed to access by registered users. I will explain it in detail :
My module have 5 ascx controls other than view.ascx and settings.ascx. In the 5 ascx control, 3 of them can access by anonymous users as well as registered users and the other 2 control pages can only be allowed to access by registered users.
This is a module developing for product search. so search, results, and detail of each results can be viewed by all users.
When an anonymous user check the home page of the module which we can name 1.ascx in which the search options included and submits for search; it will displays the results, i.e., 2.ascx.
Now there are some selection property set for each row shown with various products, and here the user can select any product(checkbox) and can send the selected products to his email. so when he clicks "send to email" link i have to check whether the user is registered or on anonymous status. If he is on anonymous mode, the login module should show and successfull login will direct him to the email sending page, 3.ascx.
I know on module settings, we can set the module to allow access to "ALL" or "registered" users. if i 'check' the registered users, then all parts of the module can only be accessed by registered users, but here in this case, only some parts of the module to be set for registered users. How can i direct him to the dnn login page if he is not yet login. and how can i direct to email page once he successfully login.
hope the question is clear ...