diff --git a/Readme.md b/Readme.md index d22b3f2..fb7323a 100644 --- a/Readme.md +++ b/Readme.md @@ -1,5 +1,4 @@ -![](https://img.shields.io/endpoint?url=https://codecentral.devexpress.com/api/v1/VersionRange/128579785/16.2.5%2B) [![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/T490897) [![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183) diff --git a/VB/WebDashboard_SetMasterFilter.sln b/VB/WebDashboard_SetMasterFilter.sln index 8b4ef8c..31f4267 100644 --- a/VB/WebDashboard_SetMasterFilter.sln +++ b/VB/WebDashboard_SetMasterFilter.sln @@ -1,4 +1,4 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 +Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 diff --git a/VB/WebDashboard_SetMasterFilter/Global.asax b/VB/WebDashboard_SetMasterFilter/Global.asax index 6693a6d..65aed05 100644 --- a/VB/WebDashboard_SetMasterFilter/Global.asax +++ b/VB/WebDashboard_SetMasterFilter/Global.asax @@ -1 +1 @@ -<%@ Application Codebehind="Global.asax.vb" Inherits="WebDashboard_SetMasterFilter.Global_asax" Language="vb" %> \ No newline at end of file +<%@ Application Codebehind="Global.asax.cs" Inherits="WebDashboard_SetMasterFilter.Global_asax" Language="C#" %> \ No newline at end of file diff --git a/VB/WebDashboard_SetMasterFilter/Global.asax.vb b/VB/WebDashboard_SetMasterFilter/Global.asax.vb index 1c04643..59e15b9 100644 --- a/VB/WebDashboard_SetMasterFilter/Global.asax.vb +++ b/VB/WebDashboard_SetMasterFilter/Global.asax.vb @@ -1,36 +1,39 @@ -Imports System - Imports System.Collections.Generic - Imports System.Linq - Imports System.Web - Imports System.Web.Security - Imports System.Web.SessionState - Imports DevExpress.Web +Imports System +Imports System.Web +Imports DevExpress.Web - Namespace WebDashboard_SetMasterFilter - Public Class Global_asax - Inherits System.Web.HttpApplication +Namespace WebDashboard_SetMasterFilter - Private Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) - AddHandler DevExpress.Web.ASPxWebControl.CallbackError, AddressOf Application_Error - End Sub + Public Class Global_asax + Inherits HttpApplication - Private Sub Application_End(ByVal sender As Object, ByVal e As EventArgs) - ' Code that runs on application shutdown - End Sub + Private Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) + ''' Cannot convert AssignmentExpressionSyntax, System.NullReferenceException: Object reference not set to an instance of an object. +''' at ICSharpCode.CodeConverter.VB.NodesVisitor.VisitAssignmentExpression(AssignmentExpressionSyntax node) +''' at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor`1.Visit(SyntaxNode node) +''' at ICSharpCode.CodeConverter.VB.CommentConvertingVisitorWrapper`1.Accept(SyntaxNode csNode, Boolean addSourceMapping) +''' +''' Input: +''' DevExpress.Web.ASPxWebControl.CallbackError += new System.EventHandler(this.Application_Error) +''' End Sub - Private Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs) - ' Code that runs when an unhandled error occurs - End Sub + Private Sub Application_End(ByVal sender As Object, ByVal e As EventArgs) + ' Code that runs on application shutdown + End Sub - Private Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs) - ' Code that runs when a new session is started - End Sub + Private Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs) + ' Code that runs when an unhandled error occurs + End Sub - Private Sub Session_End(ByVal sender As Object, ByVal e As EventArgs) - ' Code that runs when a session ends. - ' Note: The Session_End event is raised only when the sessionstate mode - ' is set to InProc in the Web.config file. If session mode is set to StateServer - ' or SQLServer, the event is not raised. - End Sub - End Class - End Namespace \ No newline at end of file + Private Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs) + ' Code that runs when a new session is started + End Sub + + Private Sub Session_End(ByVal sender As Object, ByVal e As EventArgs) + ' Code that runs when a session ends. + ' Note: The Session_End event is raised only when the sessionstate mode + ' is set to InProc in the Web.config file. If session mode is set to StateServer + ' or SQLServer, the event is not raised. + End Sub + End Class +End Namespace diff --git a/VB/WebDashboard_SetMasterFilter/Properties/AssemblyInfo.vb b/VB/WebDashboard_SetMasterFilter/Properties/AssemblyInfo.vb new file mode 100644 index 0000000..98e0955 --- /dev/null +++ b/VB/WebDashboard_SetMasterFilter/Properties/AssemblyInfo.vb @@ -0,0 +1,31 @@ +Imports System.Reflection +Imports System.Runtime.InteropServices + +' General Information about an assembly is controlled through the following +' set of attributes. Change these attribute values to modify the information +' associated with an assembly. + + + + + + + + +' Setting ComVisible to false makes the types in this assembly not visible +' to COM components. If you need to access a type in this assembly from +' COM, set the ComVisible attribute to true on that type. + +' The following GUID is for the ID of the typelib if this project is exposed to COM + +' Version information for an assembly consists of the following four values: +' +' Major Version +' Minor Version +' Build Number +' Revision +' +' You can specify all the values or you can default the Revision and Build Numbers +' by using the '*' as shown below: + + diff --git a/VB/WebDashboard_SetMasterFilter/Web.Debug.config b/VB/WebDashboard_SetMasterFilter/Web.Debug.config index f7c5612..2e302f9 100644 --- a/VB/WebDashboard_SetMasterFilter/Web.Debug.config +++ b/VB/WebDashboard_SetMasterFilter/Web.Debug.config @@ -1,4 +1,4 @@ - + diff --git a/VB/WebDashboard_SetMasterFilter/Web.Release.config b/VB/WebDashboard_SetMasterFilter/Web.Release.config index 52c6bbe..c358444 100644 --- a/VB/WebDashboard_SetMasterFilter/Web.Release.config +++ b/VB/WebDashboard_SetMasterFilter/Web.Release.config @@ -1,4 +1,4 @@ - + diff --git a/VB/WebDashboard_SetMasterFilter/WebDashboard_SetMasterFilter.vbproj b/VB/WebDashboard_SetMasterFilter/WebDashboard_SetMasterFilter.vbproj index a153b8d..9dc0971 100644 --- a/VB/WebDashboard_SetMasterFilter/WebDashboard_SetMasterFilter.vbproj +++ b/VB/WebDashboard_SetMasterFilter/WebDashboard_SetMasterFilter.vbproj @@ -1,18 +1,23 @@ - + + On Debug AnyCPU - + + 2.0 {C9704B61-48D7-4243-B7AD-3F1DC8B3AAD7} {349c5851-65df-11da-9384-00065b846f21};{F184B08F-C81C-45F6-A57F-5ABD9991F28F} Library - + Properties + + WebDashboard_SetMasterFilter v4.5.2 - + + 4.0 true @@ -21,40 +26,24 @@ - On - Binary - Off - On true full false bin\ - true - true + DEBUG,TRACE prompt + 4 pdbonly true bin\ - false - true + TRACE prompt + 4 - - - - - - - - - - - - @@ -118,7 +107,7 @@ Global.asax - + WebForm1.aspx ASPXCodeBehind @@ -147,7 +136,8 @@ http://localhost:58938/ False False - + + False @@ -160,4 +150,4 @@ --> - + \ No newline at end of file diff --git a/VB/WebDashboard_SetMasterFilter/WebForm1.aspx b/VB/WebDashboard_SetMasterFilter/WebForm1.aspx index 9de35d1..18385ca 100644 --- a/VB/WebDashboard_SetMasterFilter/WebForm1.aspx +++ b/VB/WebDashboard_SetMasterFilter/WebForm1.aspx @@ -1,4 +1,4 @@ -<%@ Page Language="vb" AutoEventWireup="true" CodeBehind="WebForm1.aspx.vb" +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebDashboard_SetMasterFilter.WebForm1" %> <%@ Register Assembly="DevExpress.Dashboard.v16.2.Web, Version=16.2.17.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" @@ -25,6 +25,7 @@ - + - \ No newline at end of file + + diff --git a/VB/WebDashboard_SetMasterFilter/WebForm1.aspx.designer.vb b/VB/WebDashboard_SetMasterFilter/WebForm1.aspx.designer.vb index da02f62..17c8c13 100644 --- a/VB/WebDashboard_SetMasterFilter/WebForm1.aspx.designer.vb +++ b/VB/WebDashboard_SetMasterFilter/WebForm1.aspx.designer.vb @@ -1,4 +1,4 @@ -'------------------------------------------------------------------------------ +'------------------------------------------------------------------------------ ' ' This code was generated by a tool. ' @@ -6,11 +6,9 @@ ' the code is regenerated. ' '------------------------------------------------------------------------------ - Namespace WebDashboard_SetMasterFilter - - Partial Public Class WebForm1 + Public Partial Class WebForm1 ''' ''' form1 control. diff --git a/VB/WebDashboard_SetMasterFilter/WebForm1.aspx.vb b/VB/WebDashboard_SetMasterFilter/WebForm1.aspx.vb index dfbc0d4..51677fb 100644 --- a/VB/WebDashboard_SetMasterFilter/WebForm1.aspx.vb +++ b/VB/WebDashboard_SetMasterFilter/WebForm1.aspx.vb @@ -1,16 +1,14 @@ -Imports System -Imports System.Collections.Generic -Imports System.Linq -Imports System.Web +Imports System Imports System.Web.UI Imports System.Web.UI.WebControls Namespace WebDashboard_SetMasterFilter - Partial Public Class WebForm1 - Inherits System.Web.UI.Page + + Public Partial Class WebForm1 + Inherits Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) ASPxDashboard1.DashboardXmlPath = Server.MapPath("App_Data/Dashboard.xml") End Sub End Class -End Namespace \ No newline at end of file +End Namespace