644 users online

How to create a page that requires login ?

Posted: one year ago Quote
Currently is there any way to create a page for public store (from admin section) that will require the user to login first ?

If yes, then how to do that ?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Please VOTE for the post if it helps you.

Thanks
Mike-nickname

If im not available here, post ur question on my site forum & I'll reply back there ASAP

www.strivingprogrammers.com
(Online Forums: ASP.NET, SQL, C#, AJAX, HTML, CSS, VB, C++, MS Office, Photoshop, Windows, Linux & more)
Posted: one year ago Quote
I do like this ::

In Page_Load Event check

if(NopContext.Current.User==null)
  Response.Redirect("~/login.aspx")


Simple !!!
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: one year ago Quote
ketan.pipaliya wrote:
I do like this ::

In Page_Load Event check

if(NopContext.Current.User==null)
  Response.Redirect("~/login.aspx")


Simple !!!


I apologize for the confusion my friend, actually my question was to make sure that is there any feature (in Access Control List) by which we can add public page from the admin section that requires login...But i don't think there's any feature available in admin section...

But, thanks for your reply....i appreciate it...
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Please VOTE for the post if it helps you.

Thanks
Mike-nickname

If im not available here, post ur question on my site forum & I'll reply back there ASAP

www.strivingprogrammers.com
(Online Forums: ASP.NET, SQL, C#, AJAX, HTML, CSS, VB, C++, MS Office, Photoshop, Windows, Linux & more)