Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

in 1.1, Global.asax has a code behind : globalasax.vb where I could have "imports" and it had Intellisense..

 

Using 2.0 and I dont see a ".vb" file. I had to type in code below with no Intellisense:

 

Sub WindowsAuthentication_OnAuthenticate(ByVal Source As Object, _

ByVal e As WindowsAuthenticationEventArgs)

Dim userIdentity As String

userIdentity = e.Identity.Name()

End Sub

 

Am I missing something?

Posted

No, that didnt work...Should global.asax in 2.0 be in "App_Code"? Is "Global" as keyword in 2.0?

 

I get :

Keyword is not valid as an identifier.

 

Line 9:

 

Line 10:

 

Line 11: Public Class Global

 

Line 12: Inherits System.Web.HttpApplication

 

Line 13:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...