Imports System
Imports System.Collections
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Web
Imports System.Web.SessionState
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Imports DotNetWebMenu
Namespace DotNetWebMenu
'/ <summary>
'/ WebForm1 ժҪ˵
'/ </summary>
Public Class ҳ
Inherits System.Web.UI.Page
Protected tdMenu As System.Web.UI.HtmlControls.HtmlTableCell
Protected tdContent As System.Web.UI.HtmlControls.HtmlTableCell
Private Shared hv As String = "H"
Private Sub Page_Load(sender As Object, e As System.EventArgs)
' ڴ˴ûԳʼҳ
Dim menuid As String = Request.QueryString("MenuID")
Dim m As New MenuControl()
m.RootPath = "."
m.MenuData = Server.MapPath("./menu.xml")
If menuid = "V" OrElse menuid = "H" Then
hv = menuid
End If
m.RepeatDirection = hv
m.CreateMenu()
Me.tdMenu.Controls.Add(m)
If Not (menuid Is Nothing) Then
Me.tdContent.InnerHtml = "<br><br>ѡ˲˵<font color=red>" + menuid + "</font>"
End If
End Sub 'Page_Load
#Region "Web Form Designer generated code"
Protected Overrides Sub OnInit(e As EventArgs)
'
' CODEGENõ ASP.NET Web ġ
'
InitializeComponent()
MyBase.OnInit(e)
End Sub 'OnInit
'/ <summary>
'/ ķ - Ҫʹô༭
'/ ˷ݡ
'/ </summary>
Private Sub InitializeComponent()
End Sub 'InitializeComponent
#End Region
End Class 'ҳ
End Namespace 'DotNetWebMenu
解决方案 »
- asp.net 导出Excel2007
- 附件上传问题
- girdview绑定时候的疑问
- 如何上传图片到远程主机
- DropDownList 的 text 和value 初始错误
- calendar控件显示时很大,能不能设置成类似dropdownlist这样的方式
- 在线急求一问题!!!
- 用Visual Studio .NET 2003创建ASP.NET Web 应用程序时出现 “HTTP/1.1 500 Internal Server error”错误,请有经验者赐教,谢谢!
- 文本中存在多个相同的字符串,String.IndexOf查找到字符串后,我还想查找下一个这样的字符串,用什么函数和方法?
- 50分求一sql语句,不是很难的,请各位大虾帮忙!
- 如何在datagrid中实现删除数据时,提示是否删除提示框?
- 消息提示框?
Imports System
Imports System.Collections
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Web
Imports System.Web.SessionState
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Imports DotNetWebMenu
Namespace DotNetWebMenu
'/ <summary>
'/ WebForm1 ժҪ˵
'/ </summary>
Public Class ҳ
Inherits System.Web.UI.Page
Protected tdMenu As System.Web.UI.HtmlControls.HtmlTableCell
Protected tdContent As System.Web.UI.HtmlControls.HtmlTableCell
Private Shared hv As String = "H"
Private Sub Page_Load(sender As Object, e As System.EventArgs)
' ڴ˴ûԳʼҳ
Dim menuid As String = Request.QueryString("MenuID")
Dim m As New MenuControl()
m.RootPath = "."
m.MenuData = Server.MapPath("./menu.xml")
If menuid = "V" OrElse menuid = "H" Then
hv = menuid
End If
m.RepeatDirection = hv
m.CreateMenu()
Me.tdMenu.Controls.Add(m)
If Not (menuid Is Nothing) Then
Me.tdContent.InnerHtml = "<br><br>ѡ˲˵<font color=red>" + menuid + "</font>"
End If
End Sub 'Page_Load
#Region "Web Form Designer generated code"
Protected Overrides Sub OnInit(e As EventArgs)
'
' CODEGENõ ASP.NET Web ġ
'
InitializeComponent()
MyBase.OnInit(e)
End Sub 'OnInit
'/ <summary>
'/ ķ - Ҫʹô༭
'/ ˷ݡ
'/ </summary>
Private Sub InitializeComponent()
End Sub 'InitializeComponent
#End Region
End Class 'ҳ
End Namespace 'DotNetWebMenu
{
// 在此处放置用户代码以初始化页面
dim menuid as string
menuid=Request.QueryString("MenuID")
MenuControl m = new MenuControl()
m.RootPath="."
m.MenuData=Server.MapPath("./menu.xml")
if(menuid="V" or menuid="H") then
hv=menuid
end if
m.RepeatDirection=hv
m.CreateMenu()
this.tdMenu.Controls.Add(m)
if(menuid<>null) then
this.tdContent.InnerHtml="<br><br>您选择了菜单:<font color=red>" + menuid + "</font>"
end if
}