intrinsic.vb

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

VB
37
字号
Imports System
Imports System.Web
Imports System.Drawing
Imports System.Web.UI
Imports System.Web.UI.WebControls

Namespace WroxControls 

   Public Class IntrinsicDisplay
   	Inherits WebControl

      Protected Overrides Sub Render(writer As HtmlTextWriter) 

			writer.Write("<H3>Application Variables</H3>")

			Dim key As String
			For Each key In Context.Application
				writer.Write( "<BR>Key = '" & key & _
								  "' , Value = '" & _
								  Context.Application(key) & "'" )
			Next

			writer.Write("<H3>Session Variables</H3>")

			For Each key In Context.Session

				writer.Write( "<BR>Key = '" & key & _
								  "' , Value = '" & _
								  Context.Session(key) & "'" )
			Next
      
      End Sub

   End Class
   
End Namespace

⌨️ 快捷键说明

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