Posts

Showing posts from 2015

Dynamic Mega Menu With Asp.Net with c#,java script and Sql Server.

Image
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 ...

how to Repeater update only when table rows updated in sql using SqlCacheDependency in ASP.Net?

Advantage -repeater/Gridview/Datalist do not load every time from database ,it load when any change or add in database . In this article, we are going to learn how to implement SQL Caching in ASP.NET using Poll based SQL Cache dependency SQL Cache dependency helps to cache tables in ASP.NET application in memory. So rather than making SQL server trips we can fetch the data from the cached object from ASP.NET. Step- 1 ALTER DATABASE MyDatabase SET ENABLE_BROKER Step- 2  aspx Page <asp:Repeater ID="RepDetails" runat="server">     <ItemTemplate>         <asp:Label ID="lblid" runat="server" Text='<%#Eval("Cat_Id") %>' Font-Bold="true"             Visible="false" />         <asp:LinkButton ID="LinkButton1" runat="server" Text='<%#Eval("Cat_Name") %>' ForeColor="Green"></asp:LinkButton>     </I...

how to add/change css for MultiHandleSliderExtender

Image
In this Article i will explian how to add css for MultiHandleSliderExtender step1-add ajaxtoolkit manager in page.    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager> step2-add  MultiHandleSliderExtender in page. <div>      <asp:TextBox ID="txtfrom" runat="server" Width="70" Text="0"></asp:TextBox>         <asp:TextBox ID="txtto" runat="server" Width="70" Text="200"></asp:TextBox>         <br /><br />         <asp:MultiHandleSliderExtender ID="MultiHandleSliderExtender1" ShowHandleDragStyle="true" runat="server"  BehaviorID="multiHandleSliderExtenderTwo"             ShowInnerRail="true" HandleAnimationDuration="0.1" TooltipText="{0}" TargetControlID="slider" InnerRailStyle="SlidingDoors...