Category Archives: ASP.NET

SageFrame a powerful ASP.NET CMS

SageFrame Overview SageFrame is a powerful Content Management System (CMS) built on top of ASP.NET. Its inclusive feature helps you develop rich, attractive and secure websites at no time. Simply put, SageFrame is a rapid site builder. From an end-user’s perspective, SageFrame is a dynamic workplace that provides users a conducive environment to add and manage […]

Continue Reading...

How to maintain TAB Order after POSTBACK Event in order to Set Focus to Next Control

Use below code in order to set focus to next control after post back. protected void Page_Load(object sender, EventArgs e)  {  if (Page.IsPostBack)  {  WebControl wcICausedPostBack = (WebControl)GetControlThatCausedPostBack(sender as Page);  int indx = wcICausedPostBack.TabIndex;  var ctrl = from control in wcICausedPostBack.Parent.Controls.OfType<WebControl>()  where control.TabIndex > indx  select control;  ctrl.DefaultIfEmpty(wcICausedPostBack).First().Focus();  }  }  protected Control GetControlThatCausedPostBack(Page page)  {  […]

Continue Reading...

How to implement CSS style to GridView Export to Excel in ASP.NET ?

Abstract: Exporting GridView to Excel is a very common task which is performed in most of the web applications. There are various techniques of exporting the GridView to excel and it highly depends on the application scenario. In this article I will demonstrate some techniques that you will find useful. Introduction: Exporting GridView to Excel […]

Continue Reading...

How To Dynamically freeze ASP.Net Gridview header using JavaScript?

Note: For jQuery Users I have created a Ready to use Plugin Scrollable GridView with Fixed Headers jQuery Plugin But the issue was that these articles had some HTML and CSS arrangements need to be done which was not a piece of cake for many users. Hence I decided to find out an easy solution to the […]

Continue Reading...

How To Make Scrollable GridView with Fixed Headers using jQuery Plugin?

HTML Markup <form id=”form1″ runat=”server”> <asp:GridView ID=”GridView1″ runat=”server” AutoGenerateColumns = “false”> <Columns> <asp:BoundField DataField = “ContactName” HeaderText = “Contact Name” /> <asp:BoundField DataField = “City” HeaderText = “City” /> <asp:BoundField DataField = “Country” HeaderText = “Country” /> </Columns> </asp:GridView> </form> Applying the Scrollable Grid jQuery Plugin <script src=”Scripts/jquery-1.4.1.min.js” type=”text/javascript”></script> <script src=”Scripts/ScrollableGridPlugin.js” type=”text/javascript”></script> <script type = “text/javascript”>     $(document).ready(function () {         $(‘#<%=GridView1.ClientID %>’).Scrollable({             ScrollHeight: 300,             Width: 467         });     }); </script> Above you will notice I have referenced the jQuery and the Scrollable Grid plugin JS files. After that you […]

Continue Reading...

How To Freeze ASP.NET GridView Headers by Creating Client-Side Extenders ?

After searching the Web I came across a lot of “pure” CSS ways to freeze a header.  After researching them more they tend to rely on a lot of CSS hacks to do the job and require HTML to be structured in a custom way.  I also found a lot of custom GridView classes (another […]

Continue Reading...
www.000webhost.com