_global.asax

来自「This is a book about vb.you could learn 」· ASAX 代码 · 共 14 行

ASAX
14
字号
<%@ Import Namespace="Microsoft.WebServices.Security" %>
<%@ Import Namespace="System.Security.Principal" %>

<script Language="VB" runat="server">
  Public Sub WebServiceAuthentication_OnAuthenticate(sender As Object, e As WebServiceAuthenticationEvent)
    If ((e.User = "you@aabbcc.com") AND (e.Password = "LetMeIn")) Then
'      e.Authenticate()

      Dim s(1) As String
      s(0) = "Customer"
      e.Authenticate(s)
    End If
  End Sub
</script>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?