Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

how create desktop shortcut key to lock computer just by with mouse click or Lock Computer with simple mouse click

Mar 11, 2011 7 comments
Introduction

Here I will explain how create desktop shortcut key to lock computer just by with mouse click.

Description:

Hi first time I am writing article that is not related to .NET why I am writing this article means I found solution to create shortcut key to lock our computer by just with mouse click generally we will use Ctrl+Alt+L key to lock our computer if we do the same thing with mouse click it’s very easy to lock our computer that is the reason I am writing this article to help someone who is having this same requirement like shortcut to lock computer. To create shortcut key we need to follow below steps

how to get userdetails from Active Directory based on username using asp.net

29 comments
Introduction:

Here I will explain how to get userdetails from Active directory based on username using asp.net

Description:

One day I got requirement like to get user details from Active directory based on username.

For that first create one new website after that right click on website and select Add Reference option after that select System.DirectoryServices from .NET tab and click ok now directory services reference has added to our application do you know why we have added this directory service to our application because by using this service we can get userdetails from Active directory.

Gridview paging example in asp.net with Numeric, NextPrevious, NextPreviousFirstLast, NumericFirstLast

Mar 8, 2011 29 comments
Introduction:

Here I will explain how to show the gridview with different type of paging in asp.net.

Description:


I have one gridview with multiple number rows at that time I tried to set paging for my gridview for that I have search gridview properties at that time I found different type of paging mode styles are available in gridview for paging those are

1.      1) Numeric
2.      2) NextPrevious
3.      3) NextPreviousFirstLast
4.      4) NumericFirstLast

Ajax autocompleteextender example with progressbar image in asp.net

Mar 6, 2011 27 comments
Introduction:

Here I will explain how to use Ajax AutoCompleteExtender to display the words begin with prefix typed into the textbox using asp.net

Description:

In Google if we type anything in search textbox we will find all related words below the textbox it has developed by using Ajax autocomplete extender. We can attach Ajax autocomplete exteneder to any textbox to implement this and after assign autocomplete extender to textbox and
type more content than the specified minimum word length, a popup will show words or phrases starting with that value.  So the user can choose exact word from the popup panel. Here we are implementing autoCompleteextender to fetch data from the database through a Webservice.

First design table in your database like this 


Display Gridview images with lightbox effect whenever user clicks on images in gridview using asp.net

Mar 5, 2011 24 comments
Introduction:

In this article I will explain how to show gridview images with lightbox effect using asp.net.

Description:
  
In my previous article I explained clearly how to insert images into our images folder and images path in database and display images in gridview from folder based on imagepaths exists in database for that check this link
how to insert images into folder and imagespath into database and display images I gridview .After inserting images in folder and displayed in gridview I extended functionality to display gridview images using lightbox effect if user click on any image in gridview at that time we need to show that images with lightbox effect. To display images in gridview with lightbox effect we need to design our aspx page like this

how to save images into folder and images path in database and display images from folder in gridview based on images path in database using asp.net

Mar 3, 2011 122 comments
Introduction:

In this article I will explain how to insert images into our project folder and display the images from folder in gridview based on images path in database using asp.net.

Description:
  

In my previous article I explained clearly how to insert images into database and display images from database into gridview. Now I will explain how to insert images into our project folder and insert images path into database and display images in gridview from images folder based on Images path in database. For that first create new website after that right click on your website and add new folder and give name as Images because here I used same name for my sample if you want to change folder name you need to change the images folder name in your code behind also
first design table in your database like this to save images path in database.

how to select/deselect checkboxes in gridview Or check/uncheck all the checkboxes in gridview using header checkbox or select header checkbox if all checkboxes selected in gridview using JavaScript.

Mar 1, 2011 30 comments
Introduction:
In this article I will explain how to select/deselect all the checkboxes in gridview using JavaScript.
Description:

I have a one gridview with checkboxes here my requirement is if I select header checkbox of gridview I need to select all the child checkboxes in gridview and if I deselect header checkbox I need to deselect all the child checkboxes in gridview and if I select all the child checkbox I need to select the header checkbox and if any child checkbox deselected I need to deselect header checkbox for this I have written JavaScript function to achieve this functionality.

Design your aspx page like this

Resize multiline asp.net textbox dynamically based on text using javascript

Feb 25, 2011 9 comments
Introduction:

In this article I will explain how to change or increase the textbox height dynamically using asp.net

Description:

I have one textbox my requirement is if user enters text in texbox that height of textbox needs to be adjusting with text for that I have written one JavaScript function to adjust textbox height here one more point is we need to set the
TextMode="MultiLine" property for textbox to adjust textbox height 
 
Now design your aspx page like this

how to show the up and down arrows during sorting of column in gridview using asp.net

Feb 23, 2011 21 comments
Introduction:

In this article I will explain how to show the up and down arrows during sorting of gridview columns using asp.net.


Description:

I have a one gridview with some data here my requirement is to show up and down arrows during sorting of columns in gridview because if I didn’t used arrows we are unable identify the sorted column in gridview and we don’t have chance to know that sorted column data is either in ascending or descending order if we use up and down arrows we can clearly show which column has sorted and whether that particular column data is in ascending or descending order.
 
Now design your aspx page like this

Display sum of columns total in gridview footer in asp.net

Feb 22, 2011 54 comments
Introduction:

In this article I will explain how to display the sum of total of columns in gridview footer   using asp.net.


Description:

I have a one gridview with multiple rows and columns and for that gridview paging also has enabled now my requirement I need to display sum of all the columns (Total) in gridview footer for that I have used gridview row databound condition this functionality will work for paging enabled gridview also. Before proceed to functionality first we need to design one table in database and give name EmployeeSalary

 

© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.