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

SQL Server - Query to use Distinct Keyword with Top Statement in SQL Server

Jun 28, 2012 0 comments
Introduction:

In this article I will explain how to write SQL query to use distinct keyword with Top statement in SQL Server.

Description:

In previous posts I explained Replace function, substring function to get particular part of string and many articles relating to SQL Server. Now I will explain how to use distinct keyword with top statement in sql server.

Generally by using Distinct keyword we can get distinct records from datatable that declaration will be like this

SQL Server - Query to Get Last Inserted Record Id

4 comments
Introduction:

In this article I will explain how to write query to get last inserted record id in sql server or last modified record id value in SQL Server.

Description:

In previous post I explained how to set identity property or auto increment column in data table and many articles relating to SQL Server. Now I will explain how to write a query to get last inserted record id value or last modifies record id in SQL Server. Generally if we create data table we will set identity column or auto increment column in table to increase column id value automatically whenever new record inserted in SQL Server. In one situation I got requirement like to get last inserted record Id from data table in SQL Server.

JQuery html or asp button click event in asp.net

Jun 26, 2012 3 comments
Introduction

In this article I will explain how to use html button click event or asp button click events in asp.net using JQuery.

Description:

In previous article I explained how to show session timeout message before session expires in JQuery. In one situation I got requirement like implement some functionality in html button click event for that I used JQuery button click events. Here I will explain how to implement button click functionality in JQuery for html and asp button controls for that first open visual studio create new application and design your aspx page like this 

JQuery Show Session Timeout message before session expires in asp.net

Jun 23, 2012 54 comments
Introduction

In this article I will explain how to show session timeout message before session expires or redirect to login page when user inactive on website using JQuery in asp.net.

Description:
  
In previous article I explained show alert message when user idle or inactive on website using JQuery. I am using that concept here to show session timeout message before session expires when user idle or inactive on website using JQuery in asp.net.

Generally in banking sites if we stay idle for sometime automatically we will get alert like your session is going to expire and it will show options like do you want to continue or Signout. Whenever we click on continue our session will active in that site without any session expire if we click on Sign Out option it will signout from that site and return to home page. We can implement this functionality easily by using available JQuery plug-in.

JQuery show alert when user idle on website for sometime in asp.net

0 comments
Introduction

In this article I will explain how to show alter message when user idle or inactive for sometime on website in asp.net using JQuery.

Description:
  
In previous articles I explained many articles on JQuery. Now I will explain how to show alert message when user idle for sometime on website in asp.net using 
JQuery.

Generally in banking sites if we stay ideal for sometime automatically we will get alert like your idle for this much time on site and your session is going to expire within 5 minutes or something else we can implement this functionality easily by using available
 JQuery plug-in. For that first create new website write the following code in your aspx page 

How to access asp.net content page controls from master page

Jun 20, 2012 5 comments
Introduction

In this article I will explain how to access or get content or child page controls from master page in asp.net.

Description:

In previous post I explained how to access content page controls from master page in asp.net. Now I will explain how to access content page controls from master page in asp.net.

How to access asp.net master page controls from content page

8 comments
Introduction

In this article I will explain how to access or get master page controls from child or content page in asp.net

Description:

In previous posts I explained many articles relating to asp.net, gridview, SQL Server, JQuery, JavaScript and etc. Now I will explain how to access master page controls from child page or content page in asp.net.

update delete statement with inner join in sql server

Jun 19, 2012 5 comments
Introduction:

In this article I will explain how to use delete or update statement with inner join in SQL Server.

Description:

In previous post I explained how to use update statement with replace function in SQL Server and many articles relating to SQL Server. Now I will explain how to use delete or update statement with inner join in SQL Server.  In one application I got requirement like delete data from database based on multiple table column values in SQL Server. Generally we will use joins concept to get data from multiple tables and if we want to delete data based on the column values of multiple tables we will use subqueries instead of use multiple subqueries we can reduce it by using inner join with delete statement.

Get Find control inside of asp.net gridview in rowdatabound event

Jun 18, 2012 12 comments
Introduction

In this article I will explain how to find controls (textbox, dropdownlist, checkbox,radio button etc..) in inside of gridview and how to get values from controls which is inside of gridview in rowdatabound condition in asp.net.

Description:

In previous posts I explained many articles relating to
gridview now I will explain how to find or get values of controls which is inside of gridview in asp.net.
Generally if we want to find or get value from controls which is inside of gridview in rowdatabound condition we will write code like this

Get multiple datakeyname values from gridview rowcommand in asp.net

Jun 13, 2012 13 comments
Introduction

In this article I will explain how to declare multiple datakeynames in gridview and how to get multiple datakey values in gridview rowcommand event in asp.net. 

Description:

In previous posts I explained many articles relating to
gridview now I will explain how to declare multiple datakeyname values in gridview and how to get datakeyname values from gridview in gridview rowcommand event in asp.net.

Query to use update statement with Replace function in SQL Server

Jun 12, 2012 1 comments
Introduction:

In this article I will explain how to write query to use update statement with Replace function in SQL Server.

Description:

In previous posts I explained Replace function example and Substring function example in SQL Server and many more articles relating to SQL Server. Now I will explain how to use update statement with Replace function in SQL Server. In one application I got requirement like update particular part of the string with another value. To achieve this functionality I realized it’s better to use Replace() function with update query.

SQL Query to Get Count of Duplicate Records

Jun 6, 2012 4 comments
Introduction:

Here I will explain how to write a SQL query  to get duplicate records or Query to get count of duplicate records or rows in SQL Server or query to find duplicate records in SQL server.

Description:

In previous post I explained Query to alter table columns and Query to delete duplicate records in SQL Server. Now I will explain how to write SQL query to get duplicate records count that means how many times each duplicate record exists in datatable. In database I have one table that doesn’t contain any primary key column because of that duplicate records inserted in table that would be like this 

Query to Alter,Add,modify,delete columns in table - sql server

Jun 5, 2012 7 comments
Introduction:

In this article I will explain how to write SQL Query to add new column to existing table in sql server and query to delete column from table in sql and query to modify column in existing table.

Description:

In previous posts I explained many articles relating to SQL Server. Now I will explain how to write query to add, remove or modify column in existing table using SQL Server. During work with one application I got requirement like add new column to existing table in SQL Server at that time I realized that it’s better to write query to add new column instead of open table structure and modify to add new column in SQL Server. To add new column to existing table in SQL server the declaration of system will be like this

Ajax CalendarExtender Example In Asp.Net -Change date format and show calendar when click on button

Jun 4, 2012 34 comments
Introduction:

In this article I will explain how to use Ajax Calendar extender control in asp.net and how to change date format in ajax calendar control and display calendar control when click on image button in asp.net.

Description:

Previously I explained many articles relating to 
Ajax. Now I will explain how to use ajax calendar extender control in asp.net and change date format and display calendar control when click on image button in asp.net. Before proceed to implement this have you install ajaxcontroltoolkit in visual studio or not if not install it otherwise if you already done then follow the below steps to use Ajax calendar extender control example in asp.net.

CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" in vb.net

Jun 3, 2012 7 comments
Introduction

In this article I will explain alternative of CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" in vb.net.
Description:
  
In Previous article I explained move gridview rows up and down in asp.net during work with that one I mentioned
CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" for button it worked perfectly with C# code and I tried to use same CommandArgument code in VB.NET but it doesn’t work for me for that I used another way like this CommandArgument="<%# CType(Container,GridViewRow).RowIndex %>" then my problem got solved with vb.net

Move asp.net gridview rows up and down with arrow button click

Jun 2, 2012 14 comments
Introduction:

In this article I will explain how to move gridview rows up and down with arrow button clicks in asp.net.

Description
  
Previous I explained many articles relating to gridview in asp.net. Now in this article I will explain how to move gridview rows up and down with button clicks in asp.net. For that first design one table in database and give name as MobileDetails as shown below

Other Related Posts

© 2010-2012 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.