Thursday, 23 April 2015


checkbox validation


Description:-

In this example we explain that how to validate checkbox is checked in a sequence order or not. Or validate checkbox selection in sequence order using jquery.or jquery getting sequence number from selected checkbox on checkbox list.or checkbox validation in asp.net using javascript or jquery.

 

I have faced real problem in my application like in my application one form contain four checkbox year1, year2, year3 and year4. In which condition is that user can select checkbox of the year must be in sequence order like 1,2,3,4. If user select year2 checkbox and year1 checkbox is not checked then alert message will be display like please select year checkbox in sequence order.

 

So how to achieve this at client side using JavaScript or jquery.

how to validate checkbox is checked in a sequence order or not. Or validate checkbox selection in sequence order using jquery


checkbox validation


Description:-

In this example we explain that how to validate checkbox is checked in a sequence order or not. Or validate checkbox selection in sequence order using jquery.or jquery getting sequence number from selected checkbox on checkbox list.or checkbox validation in asp.net using javascript or jquery.

 

I have faced real problem in my application like in my application one form contain four checkbox year1, year2, year3 and year4. In which condition is that user can select checkbox of the year must be in sequence order like 1,2,3,4. If user select year2 checkbox and year1 checkbox is not checked then alert message will be display like please select year checkbox in sequence order.

 

So how to achieve this at client side using JavaScript or jquery.

Monday, 13 April 2015


add row to gridview when click on button




Description:-

In this example we explain that how to add dynamically add rows to grid view using jquery in asp.net. Or dynamically add rows to grid view when click on add button in asp.net.

Here we use explain dynamically add rows to grid view at client side without post back using jquery in asp.net.

Here we take three textbox in which you enter data and click on submit button then this data will be added as a row in a grid view using jquery without post back at client side.

how to add dynamically add rows to grid view using jquery in asp.net


add row to gridview when click on button




Description:-

In this example we explain that how to add dynamically add rows to grid view using jquery in asp.net. Or dynamically add rows to grid view when click on add button in asp.net.

Here we use explain dynamically add rows to grid view at client side without post back using jquery in asp.net.

Here we take three textbox in which you enter data and click on submit button then this data will be added as a row in a grid view using jquery without post back at client side.

Thursday, 2 April 2015

dynamically load html page in div tag

Description:-

In this example we explain that how to load html page in div tag dynamically using jquery in asp.net.or dynamically load page in DIV using jquery in asp.net.

Here we use jquery Load () method to load page dynamically inside the DIV tag using jquery. Generally Load () method load the data form the server and that data you can put inside any element in jquery.

how to load html page in div tag dynamically using jquery in asp.net

dynamically load html page in div tag

Description:-

In this example we explain that how to load html page in div tag dynamically using jquery in asp.net.or dynamically load page in DIV using jquery in asp.net.

Here we use jquery Load () method to load page dynamically inside the DIV tag using jquery. Generally Load () method load the data form the server and that data you can put inside any element in jquery.

Saturday, 28 March 2015

convert text to uppercase while type in textbox

Description:-

In this example we explain that how to convert text to uppercase while typing or entering text in textbox. Or how to make character uppercase when you enter text in textbox.

We all show that in many websites there is a many field have a this facility like in your First name and Last name you fill up the form this two field automatically get uppercase text . So achieve this type of facility in your application you should follow the following code.

Convert Text to Uppercase While Typing in Textbox

convert text to uppercase while type in textbox

Description:-

In this example we explain that how to convert text to uppercase while typing or entering text in textbox. Or how to make character uppercase when you enter text in textbox.

We all show that in many websites there is a many field have a this facility like in your First name and Last name you fill up the form this two field automatically get uppercase text . So achieve this type of facility in your application you should follow the following code.

Friday, 27 March 2015

display map in modal popup


Description:-

In this example we explain that how to display Google maps inside the modal popup using jquery in asp.net. Or display Google maps of any location inside jquery dialog modal popup.
Here we use Google API to display Google maps in a modal popup.

You can display Google maps of your Location by just adding your location Latitude and Longitude in a method.
You can easily find Latitude and Longitude of your location by using this link


display Google maps inside the modal popup using jquery in asp.net.

display map in modal popup


Description:-

In this example we explain that how to display Google maps inside the modal popup using jquery in asp.net. Or display Google maps of any location inside jquery dialog modal popup.
Here we use Google API to display Google maps in a modal popup.

You can display Google maps of your Location by just adding your location Latitude and Longitude in a method.
You can easily find Latitude and Longitude of your location by using this link


Tuesday, 24 March 2015

 display multiple images preview


Description:-

In this example we explain that how to display multiple images preview before upload in fileuplaod in asp.net using JavaScript and jquery. Or display preview list of the selected images or browse images before upload in file upload control at client side using JavaScript/jquery.

In many website that provide preview facility before upload the file and that is really useful because user can easily show that which images or file that he/she was uploaded.
Here we provide multiple files preview facility before file upload without any post back using JavaScript and jquery.

display multiple images preview before upload in fileuplaod in asp.net using JavaScript and jquery.

 display multiple images preview


Description:-

In this example we explain that how to display multiple images preview before upload in fileuplaod in asp.net using JavaScript and jquery. Or display preview list of the selected images or browse images before upload in file upload control at client side using JavaScript/jquery.

In many website that provide preview facility before upload the file and that is really useful because user can easily show that which images or file that he/she was uploaded.
Here we provide multiple files preview facility before file upload without any post back using JavaScript and jquery.

how to display child record of the table in a single column as a CSV format in sqlserver


Description:-

In this example we explain that how to display child record of the table in a single column as a CSV format in sqlserver. Or how to display list of state under a country in a single column as a CSV format.

Sometime you have a real this type of requirement in your project in which you have to display data in grid like one column for country name and second column for state. But at that time in a single country there are multiple state under single country so better ways to display state is in single column separated by comma.

how to display child record of the table in a single column as a CSV format in sqlserver

how to display child record of the table in a single column as a CSV format in sqlserver


Description:-

In this example we explain that how to display child record of the table in a single column as a CSV format in sqlserver. Or how to display list of state under a country in a single column as a CSV format.

Sometime you have a real this type of requirement in your project in which you have to display data in grid like one column for country name and second column for state. But at that time in a single country there are multiple state under single country so better ways to display state is in single column separated by comma.

Monday, 23 March 2015




Description:-

In this example we explain that how to fetching or gets multiple IDENTITY values after inserting record in sql server table.

Generally we have a situation where we need get IDENTITY of the last inserted record and this is simply achieved by using SCOPE_IDENTITY(), @@IDENTITY and IDENT_CURRENT() functions provide by sql server.
But when we want to capturing multiple IDENTITY values after inserting multiple record at that time this all function will not satisfy our condition.so  how to achieve this follow the below post.

insert into demo(name) values('pavan')

you can easily fetch this last inserted  record id by following query.
SELECT @@IDENTITY
But after inserting multiple record how can you fetch or capture the IDENTITY of the last inserted records.

select * from demo



then fire this query like

DECLARE @DEMOTABLE TABLE ([id] INT,[name] VARCHAR(100));

INSERT INTO [DBO].[Demo]
(
[name]
)
OUTPUT INSERTED.[id],INSERTED.[name]
INTO @DEMOTABLE ([id],[name]) select name from demo



Now if you want to fetch all IDENTITY that inserted at last query then you can easily fetch by using this query.

SELECT [id],[name] FROM @DEMOTABLE

when you fire above query it will return Id 9 and 10 both.



Capturing multiple IDENTITY values after inserting into SQL Server table




Description:-

In this example we explain that how to fetching or gets multiple IDENTITY values after inserting record in sql server table.

Generally we have a situation where we need get IDENTITY of the last inserted record and this is simply achieved by using SCOPE_IDENTITY(), @@IDENTITY and IDENT_CURRENT() functions provide by sql server.
But when we want to capturing multiple IDENTITY values after inserting multiple record at that time this all function will not satisfy our condition.so  how to achieve this follow the below post.

insert into demo(name) values('pavan')

you can easily fetch this last inserted  record id by following query.
SELECT @@IDENTITY
But after inserting multiple record how can you fetch or capture the IDENTITY of the last inserted records.

select * from demo



then fire this query like

DECLARE @DEMOTABLE TABLE ([id] INT,[name] VARCHAR(100));

INSERT INTO [DBO].[Demo]
(
[name]
)
OUTPUT INSERTED.[id],INSERTED.[name]
INTO @DEMOTABLE ([id],[name]) select name from demo



Now if you want to fetch all IDENTITY that inserted at last query then you can easily fetch by using this query.

SELECT [id],[name] FROM @DEMOTABLE

when you fire above query it will return Id 9 and 10 both.



Sunday, 15 March 2015

validate date at client side



Description:-

In this example we explain that how to validate end date should be greater than start date and allow user to select only dates within range of dates using jquery date picker in asp.net. Or how to validate End date should be greater than Start date when using two query Date Pickers

Here we explain that how to disable all previous dates from the date picker based on the start date selected by the user from the date picker. Here we disable the dates that is lower than the start date when user is select the end date from the jquery date picker.
Sometime you have requirement like you have two date pickers for select the start date and end date. Once you pick a start date, then you want to grey out or disable all previous dates on the date picker for the end date field.so how to achieve this thing.

How to validate end date greater than start date in asp.net using jquery.

validate date at client side



Description:-

In this example we explain that how to validate end date should be greater than start date and allow user to select only dates within range of dates using jquery date picker in asp.net. Or how to validate End date should be greater than Start date when using two query Date Pickers

Here we explain that how to disable all previous dates from the date picker based on the start date selected by the user from the date picker. Here we disable the dates that is lower than the start date when user is select the end date from the jquery date picker.
Sometime you have requirement like you have two date pickers for select the start date and end date. Once you pick a start date, then you want to grey out or disable all previous dates on the date picker for the end date field.so how to achieve this thing.

Add Item to Listbox using jquery


Description:-

In this example we explain that how to Add or Insert Items in List box using JavaScript or query in asp.net. Or how to add or Insert Items in list box at client side without postbox.
Here we have one tax box and one add button. When any item enter in textbox and click on add button then this items are inserted to the list box at client side without post back using JavaScript/query.
How to add /insert Items to ASP.Net List Box at client side using JavaScript and query. The value from the Textbox will be added to the ASP.Net List Box control using JavaScript and query.


Add /nsert Items to ASP.Net ListBox using JavaScript and jQuery

Add Item to Listbox using jquery


Description:-

In this example we explain that how to Add or Insert Items in List box using JavaScript or query in asp.net. Or how to add or Insert Items in list box at client side without postbox.
Here we have one tax box and one add button. When any item enter in textbox and click on add button then this items are inserted to the list box at client side without post back using JavaScript/query.
How to add /insert Items to ASP.Net List Box at client side using JavaScript and query. The value from the Textbox will be added to the ASP.Net List Box control using JavaScript and query.


Sunday, 8 March 2015


autocomplete textbox using jquery


Description:-


In this example we explain that how to create autocomplete textbox using jquery in asp.net. or how to populate JQuery UI Autocomplete TextBox.

Here we create autocomplete for textbox not from the database but create when user enter any value or words in textbox and click on save button then it will automatically bind this value to the textbox as an autocomplete item.

We also maintain autocomplete different from each browser means mozila’s autocomplete value not show in chrome and chrome autocomplete value not show in mozila.

We also explain that how to push or insert autocomplete item to the textbox and retrieve it.
Here below is code to create autocomplete textbox using jquery.

How to create JQuery Auto Complete textbox in asp.net


autocomplete textbox using jquery


Description:-


In this example we explain that how to create autocomplete textbox using jquery in asp.net. or how to populate JQuery UI Autocomplete TextBox.

Here we create autocomplete for textbox not from the database but create when user enter any value or words in textbox and click on save button then it will automatically bind this value to the textbox as an autocomplete item.

We also maintain autocomplete different from each browser means mozila’s autocomplete value not show in chrome and chrome autocomplete value not show in mozila.

We also explain that how to push or insert autocomplete item to the textbox and retrieve it.
Here below is code to create autocomplete textbox using jquery.

Wednesday, 4 March 2015


send email with read receipt and delivery notification



Description:-

            In this example we explain that how to send email with read notification and delivery receipt or sending mail using read notification and delivery receipt in asp.net using c#.

What is Read Notification in email:-

            Read notification means when you send the mail anyone one and then it received but we cannot judge that our sent mail is read by receiver or not so when you send mail with mail Read Notification checked then it will direct ally resend mail to you that user is reading your mail.


What is Delivery Receipt in email:-

            Delivery receipt are used to know that our mail is send to the user successfully or not.


send email with read receipt and delivery notification in asp.net


send email with read receipt and delivery notification



Description:-

            In this example we explain that how to send email with read notification and delivery receipt or sending mail using read notification and delivery receipt in asp.net using c#.

What is Read Notification in email:-

            Read notification means when you send the mail anyone one and then it received but we cannot judge that our sent mail is read by receiver or not so when you send mail with mail Read Notification checked then it will direct ally resend mail to you that user is reading your mail.


What is Delivery Receipt in email:-

            Delivery receipt are used to know that our mail is send to the user successfully or not.


Saturday, 3 January 2015

compare two file in asp.net


Description:-

In this example we explain that how to compare two file in asp.net or how to check two files content are same or duplicate in asp.net.

Generally file duplication can create problem when we work with lots of  file in our application and most of the aapllication only check file names and creation date or modification date. But in this example we also check the content of two files are equal or duplicate.

Here we compare two file by byte to byte comparision of this two file. Two compare content of the two file in 
asp.net we used one algorithm and it is known as the Hash Algorithm. This algoriyhm is provided my .Net inbuilt and is aim is to compare two file by byte to byte and return result true or false.


Sorting Row data in gridview Gridview Sorting 

How to handle Concurrency in Linq to Sql Concurrency Example 

How to check two files are equal or not in asp.net using c#.

compare two file in asp.net


Description:-

In this example we explain that how to compare two file in asp.net or how to check two files content are same or duplicate in asp.net.

Generally file duplication can create problem when we work with lots of  file in our application and most of the aapllication only check file names and creation date or modification date. But in this example we also check the content of two files are equal or duplicate.

Here we compare two file by byte to byte comparision of this two file. Two compare content of the two file in 
asp.net we used one algorithm and it is known as the Hash Algorithm. This algoriyhm is provided my .Net inbuilt and is aim is to compare two file by byte to byte and return result true or false.


Sorting Row data in gridview Gridview Sorting 

How to handle Concurrency in Linq to Sql Concurrency Example