Javascript IsLoggedIn

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
Danny
User
Posts: 139

Javascript IsLoggedIn

Post by Danny »

Hi,

We use at server events:

If IsLoggedIn() then
" your function"
End if

But how to check at the Client Events if an user is Loggedin:?

Regards,


Webmaster
User
Posts: 9430

Post by Webmaster »

ASP.NET Maker 10 uses Razor so you need to use Razor syntax. Try:

@If IsLoggedIn() Then@<text>
// Your javascript here
</text>End If


Unicorn988
User
Posts: 1

Post by Unicorn988 »

how to check at the Client Events if an user is logged in?


Webmaster
User
Posts: 9430

Post by Webmaster »

Webmaster wrote:
Try:

@If IsLoggedIn() Then@<text>
// Your javascript here
</text>End If

Above is VB code, put that in Client/Startup Script, see Server Events and Client Scripts in the help file.

Post your code for discussion.


Post Reply