VB.NET properites not seen in C#? -


I have a project in vb.net that I use for authentication. I refer to it within my C # app and I do all the work till I can not find a user originally.

Is there any way to rewrite me in C #

  Get the string as a public readline property user id () _userId End End End Property  

Or can it be something that does not like C #? And here's the code that gives reference to the class. _the user comes back. Which makes me suspect that properties are not being read in VB.

  Public Partial Category _Default: System.Web.UI.Page {Personal ADSecurity.UserCredentials _theUser; Secure Zero Page_load (object sender, event events e) {if (IsPostBack) {_theUser = (ADSCB user credentials) session ["this user"]; If (_theUser.IsValidUser) {if (_theUser.IsAdminGroup | _theUser.IsManagersGroup | _theUser.IsProjManagersGroup | _theUser.IsProduction | _theUser.IsSales | _theUser.IsFlight | _theUser.Is support] {}  

If _theUser is empty then you probably have not kept anything ["this user"] in the session.

I do not see any connection to the UserId property.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -