Forum  General Visual ...  Let's Chat Abou...  Authentication problem
Previous Previous
 
Next Next
New Post 9/24/2011 1:01 PM
  CodeWizards
13 posts
No Ranking


Authentication problem 

 Hi, 

I watched some videos and made a simple app with authentication enabled, but there a re some problems.

1. The login form is always showing as a web page. I'd like ot get a modal dialog and set in web.config the Authentication Mode to "Dialog" but nothing happens (yes I increased the privateversion counter). How I can make a popup dialog for login?

2. I would like display the mainform to the anonymous users and have a button on the form to display a login dialog and authenticate the users. But the default behaviour allways shows the login form first and after the successfull authentication displaying the mainform.

 

Is there any trick to get the other way as i described? 

 

Thanks

 

Regards

Sandor

 

 
New Post 9/24/2011 5:55 PM
  jayhobbs
1664 posts
1st Level Poster




Re: Authentication problem 

  Hi Sandor,

 
I would  turn off the authentication and set Mainform as your startup form.
 
The button opens the login form with a handler to detect the formclosing event
 
ol the login form if the user logins sucessfully you set Context.Session.IsLoggedOn = True
 
On Mainform you have a formclosing event which checks  ifContext.Session.IsLoggedOn = True and if so sets the  Button.Visible = False
 
That should work but you would need to handle timeouts using timeout.wgx
 
Best Regards
 
Jay
 
New Post 9/26/2011 1:59 AM
  CodeWizards
13 posts
No Ranking


Re: Authentication problem 

 Thanks a lot.

 

Can You give me some clue / links to get started with that timeout thing?

 

 
New Post 9/26/2011 3:12 AM
  jayhobbs
1664 posts
1st Level Poster




Re: Authentication problem 

 Hi Sandor,

I have never used the timeout.wgx as I need users to get thrown back to the login form.

I found this

http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/29/threadid/46163/scope/posts/Default.aspx

which has a sample app attached.

If that doesnt help I suggest you search the Wiki or KB

Best Regards

Jay

 

 
New Post 9/26/2011 4:17 AM
  CodeWizards
13 posts
No Ranking


Re: Authentication problem 

 Thanks a lot.

Trying to find some clue in KB.

 

 

 
Previous Previous
 
Next Next
  Forum  General Visual ...  Let's Chat Abou...  Authentication problem
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS