Introduction: In this article you’ll see how to Create dynamic Mega Menu in asp.net .Having a menu and sub menus with links is very normal in a Web application. Typically, we create static menu and menu items. But sometimes we need dynamic mega menu when we do not know what the menu names and links will be called. Mega menus are a growing trend in web design . For sites that involve a lot of pages and/or products, a mega menu may be able to improve navigation and usability. Dynamic Mega Menu with ASP.NET, C#, jQuery and SQL Server solution that I would like to share with others puzzled with the same as was one of my website development i was having a tough time creating a Mega menu from database. Step1 Database: I have 4 table category,subcategory subcategory2 and Brand GO /****** Object: Table [dbo].[tbl_Category] Script Date: 07/30/2015 08:03:43 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON ...
Hello, When we want to use serializersettings function in configure service (IN startup .cs) for CamelCasing .then we get this issue in asp core 3.0. So we can resolve it by adding below code in configure service file public void ConfigureServices(IServiceCollection services) { services.AddMvc(setupAction => { setupAction.EnableEndpointRouting = false; }).AddJsonOptions(jsonOptions => { jsonOptions.JsonSerializerOptions.PropertyNamingPolicy = null; }) .SetCompatibilityVersion(CompatibilityVersion.Version_3_0);
This tutorial will demonstrate how to create a simple system to count hits on pages using a database with ASP.NET 4.0 and C#. STEPS : Just follow the steps and get result easily. STEP-1 : CREATE NEW PROJECT Go to File > New > Project > Select asp.net web Form Application> Entry Application Name > Click OK. STEP-2: ADD A DATABASE. Go to Solution Explorer > Right Click on App_Data folder > Add >New Item> Select SQL Server Database Under Data > Enter Database name > Add. GO /****** Object: Table [dbo].[tbl_Hits] Script Date: 06/03/2014 16:04:51 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[tbl_Hits]( [Hit_Id] [int] NULL, [Hit_Name] [nvarchar](50) NULL, [Hits] [nvarchar](50) NULL ) ON [PRIMARY] GO STEP-4:ADDING THE COONCETING STRING <connectionStrings> <add name="ErpConnection" connectionString="Data Source=MANVENDRA;Initial C...
Comments
Post a Comment