Posts

Showing posts from March, 2009
My new blog present here.

Featured Post

Insights into Sitecore Search: A Definitive Introduction

A key component of digital experience management is effective information retrieval. A simplified approach is required for websites, applications, and platforms containing a lot of material so that consumers can easily get the data they require. This need is met by Sitecore, a well-known name in the field of digital experience platforms (DXPs), which provides powerful and comprehensive search functionality. We will travel into the realm of Sitecore Search in this article, learning about its capabilities, architecture , and the enormous value it offers both developers and end users. Introduction to Sitecore Search    A headless content discovery platform powered by AI , Sitecore Search enables you to build predictive and custom search experiences across various content sources. To extract and index you

Custom paging in grid view control using c#

Image
In one of my application I required to implement custom paging in the ASP.Net 2.0 Gridview control in the following pattern: " Previous 10 Pages Previous Page 1 2 3 4 5 6 7 8 9 10 Next Page Next 10 Pages " In ASP.Net 2.0 GridView is most often used to display the data retrieved from the database in Tabular form with features of Gridview like data paging, sorting and auto formats. For above mentioned paging, I find a way to implement custom paging in ASP.Net 2.0 GridView control. So this article basically describes how we can implement custom paging style in ASP.Net GridView control. CSharp (C#) code: #-----region Class for creating grid view navigation links-------- class NumericWithNext : ITemplate { GridView localGrid; int intSlotNo = 0; #region CONTRUCTOR public NumericWithNext(GridView gv) { localGrid = gv; //intSlotNo = slotNo; intSlotNo = localGrid.PageIndex / 10; //co

How to move vertical scroll bar using javascript in ASP.Net Web Form

Whenever ASP.NET Web Form page loaded, by defualt its focus set to first control (vertical scroll bar moved downward in this case) in the ASP.Net web form page. If you required to move your vertical scroll bar to the top of the page, then following client-side script help you in achieving this task: <script> function moveVerticalScroll() { document.body.scrollTop=0; } window.onload= moveVerticalScroll ; </script>

How to set focus on control using javascript

This article demonstrates how to set focus to an ASP.NET Web Form control by using client-side script. ASP.NET Web Form controls provide a similar look and feel of the traditional HTML controls while they provide a consistent and structured interface and more robust features. In addition, you can use client-side scripting to enhance the functionality that these controls provide. In my project, i required to set focus on particular control on the drop down change event. For this i used/added following javascript on the SelectedIndexChanged event of drop down list: Page.RegisterStartupScript("MoveVerticalScrollBar", "<script>document.all('" + chkEmployee.ClientID + "').focus();</script>"); With the help of above script, focus set to chkEmployee control after the SelectedIndexChanged event of drop down list.