Saturday, 22 April 2017

Get (Access) Session Values in JavaScript (Client Side) in asp.net

Description:


In this example we explain that how to access session value at client side JavaScript in asp.net or how to get session variable value in JavaScript at client side in asp.net.or how to access asp.net session value at client side using JavaScript or JQuery.

Sometime we have requirement like to display login user details at client side or in some functionality if we have to check the session is exists for the current user or not at that time below code is very useful.

Get (Access) Session Values in JavaScript (Client Side) in asp.net

Get (Access) Session Values in JavaScript (Client Side) in asp.net

Description:


In this example we explain that how to access session value at client side JavaScript in asp.net or how to get session variable value in JavaScript at client side in asp.net.or how to access asp.net session value at client side using JavaScript or JQuery.

Sometime we have requirement like to display login user details at client side or in some functionality if we have to check the session is exists for the current user or not at that time below code is very useful.

Sunday, 26 March 2017

display more divs when clicking button jquery
Description:

In this example we explain that how to display more Divs when clicking on button using jQuery.or jQuery load first 3 elements(divs) and then when click on l”oad more” button to display next 3 elements (divs) using jQuery.

Sometimes we have requirement like display only first 3 news in our homepage and if user click on load more news button then it will again load next 3 news because of load on server we only display required news at a time using jQuery clientside.

So below is the code that demonstrate load more elements when click on button using jQuery.

load more div when click on button using jquery

display more divs when clicking button jquery
Description:

In this example we explain that how to display more Divs when clicking on button using jQuery.or jQuery load first 3 elements(divs) and then when click on l”oad more” button to display next 3 elements (divs) using jQuery.

Sometimes we have requirement like display only first 3 news in our homepage and if user click on load more news button then it will again load next 3 news because of load on server we only display required news at a time using jQuery clientside.

So below is the code that demonstrate load more elements when click on button using jQuery.

Saturday, 25 March 2017

Compare dates in dd/mm/yyyy format using ASP.Net CompareValidator

Description:

in this example we explain that how to compare dates in dd/mm/yyyy format using compare validator in asp.net.by default compare validator are worked in mm/dd/yyyy format so there are many question are raised in our mind like compare validator are not worked for dd/mm/yyyy format or for dates compare validator are not works.

So to fire compare validator in dd/mm/yyyy format we need to change the Culture property of the page to “en-GB” in the @Page directive of the asp.net Page. if you are using the Master page concept and if the compare validator are not worked for dd/mm/yyyy format then you can set the page culture in code behind page of the aspx page like.

Compare dates in dd/mm/yyyy format using ASP.Net CompareValidator.

Compare dates in dd/mm/yyyy format using ASP.Net CompareValidator

Description:

in this example we explain that how to compare dates in dd/mm/yyyy format using compare validator in asp.net.by default compare validator are worked in mm/dd/yyyy format so there are many question are raised in our mind like compare validator are not worked for dd/mm/yyyy format or for dates compare validator are not works.

So to fire compare validator in dd/mm/yyyy format we need to change the Culture property of the page to “en-GB” in the @Page directive of the asp.net Page. if you are using the Master page concept and if the compare validator are not worked for dd/mm/yyyy format then you can set the page culture in code behind page of the aspx page like.
Tabs and Section in CRM

Description:

In this example we explain that how to get all Tabs and Setions  using javascript in Dynamic CRM.or how to fetch all Tabs of the form in dynamic crm using javascript.or how to controlling Tabs and Sections with javascript in Dynamic CRM.

Here is the code to get or fetch all Tabs and all Sections in dynamic CRM using javascript.

Get All Tabs and Sections using javascript in Dynamic CRM.

Tabs and Section in CRM

Description:

In this example we explain that how to get all Tabs and Setions  using javascript in Dynamic CRM.or how to fetch all Tabs of the form in dynamic crm using javascript.or how to controlling Tabs and Sections with javascript in Dynamic CRM.

Here is the code to get or fetch all Tabs and all Sections in dynamic CRM using javascript.

Friday, 24 March 2017

Show/Hide sections in Dynamics CRM

Description:

In this example we explain that how to show hide Section using javascript in Dynamic CRM.or how to set visible true false to Section using javascript in dynamic CRM. In previous example we already explain that how to show hide tabs in dynamic crm using javascript.

Sometime we need to show hide section at runtime on some event and again need to show it on particular event or some changes occur like on load event or field change event etc..

Show/Hide sections in Dynamics CRM using javascript

Show/Hide sections in Dynamics CRM

Description:

In this example we explain that how to show hide Section using javascript in Dynamic CRM.or how to set visible true false to Section using javascript in dynamic CRM. In previous example we already explain that how to show hide tabs in dynamic crm using javascript.

Sometime we need to show hide section at runtime on some event and again need to show it on particular event or some changes occur like on load event or field change event etc..
show hide tab in dynamic crm

Description:

In this example we explain that how to show hide Tabs using javascript in Dynamic CRM.or how to set visible true false to Tabs using javascript in dynamic CRM.

Suppose in your Dynamic CRM one entity called “Broker” entity and have one tab name like “Prospect” tab. Show how to show / Hide this Tab using Javascript in CRM.

Here we demonstrate Hide and Show tab using javascript in Dynamic CRM.

Hide and Show tab using javascript in Dynamic CRM.

show hide tab in dynamic crm

Description:

In this example we explain that how to show hide Tabs using javascript in Dynamic CRM.or how to set visible true false to Tabs using javascript in dynamic CRM.

Suppose in your Dynamic CRM one entity called “Broker” entity and have one tab name like “Prospect” tab. Show how to show / Hide this Tab using Javascript in CRM.

Here we demonstrate Hide and Show tab using javascript in Dynamic CRM.
convert date in C#

Description:

In this example we explain that how to convert date from thu jun 09 2011 00:00:00 gmt+0530 (india standard time) to yyyy-mm-dd in C#. we already explain that how to convert  date from thu jun 09 2011 00:00:00 gmt+0530 (india standard time) to yyyy-mm-dd in javascript.

Here we explain that how to convert date from thu jun 09 2011 00:00:00 gmt+0530 (india standard time) to yyyy-mm-dd using Code behind C# in asp.net. or how to convert kendo datepicker date into dd-mm-yyyy in C# code behind.

convert date from thu jun 09 2011 00:00:00 gmt+0530 (india standard time) to yyyy-mm-dd using C#

convert date in C#

Description:

In this example we explain that how to convert date from thu jun 09 2011 00:00:00 gmt+0530 (india standard time) to yyyy-mm-dd in C#. we already explain that how to convert  date from thu jun 09 2011 00:00:00 gmt+0530 (india standard time) to yyyy-mm-dd in javascript.

Here we explain that how to convert date from thu jun 09 2011 00:00:00 gmt+0530 (india standard time) to yyyy-mm-dd using Code behind C# in asp.net. or how to convert kendo datepicker date into dd-mm-yyyy in C# code behind.

Saturday, 18 March 2017

Bind data using ViewBag

Description:

In this example we explain that how to bind dropdown List using ViewBag in Asp.Net MVC.sometime we need to bind DropdownList using ViewBag property in MVC.

Suppose you have list of temporary country and you want to bind it in DropdownList control in MVC then ViewBag is the best way to bind all country in DropdownList in MVC.

Below is the code to demonstrate how to bind dropdownlist using ViewBag in asp.net MVC.

Bind DropDownList Using ViewBag In ASP.NET MVC

Bind data using ViewBag

Description:

In this example we explain that how to bind dropdown List using ViewBag in Asp.Net MVC.sometime we need to bind DropdownList using ViewBag property in MVC.

Suppose you have list of temporary country and you want to bind it in DropdownList control in MVC then ViewBag is the best way to bind all country in DropdownList in MVC.

Below is the code to demonstrate how to bind dropdownlist using ViewBag in asp.net MVC.
This entry was posted in :
convert date in javascript


Description:

In this example we explain that how to convert date from Thu Jun 09 2016 00:00:00 GMT+0530(India Standard Time) to YYYY-MM-DD format using JavaScript. Or how can I convert the time format “THU Jun 09 2016 00:00:00 GMT+0530(India Standard Time)” to YYYY-MM-DD in JavaScript.

So to convert the date using the Date constructor then split out the individual time components like using below function code

convert date from thu jun 09 2011 00:00:00 gmt+0530 (india standard time) to yyyy-mm-dd in JavaScript.

convert date in javascript


Description:

In this example we explain that how to convert date from Thu Jun 09 2016 00:00:00 GMT+0530(India Standard Time) to YYYY-MM-DD format using JavaScript. Or how can I convert the time format “THU Jun 09 2016 00:00:00 GMT+0530(India Standard Time)” to YYYY-MM-DD in JavaScript.

So to convert the date using the Date constructor then split out the individual time components like using below function code

Thursday, 19 January 2017

select the rows with same id but different value in another column

Description:

In this example we explain that how to select the rows with same id but different value in another column (parent column) in SQL Server. Or how to get all rows that have same ID but different value in other column. Or select only those records that have different/multiple values for a particular column in sql server. Or find record in same table with different company id but some other some values.

SQL Query to select the rows with same id but different value in another column.

select the rows with same id but different value in another column

Description:

In this example we explain that how to select the rows with same id but different value in another column (parent column) in SQL Server. Or how to get all rows that have same ID but different value in other column. Or select only those records that have different/multiple values for a particular column in sql server. Or find record in same table with different company id but some other some values.
This entry was posted in :

Tuesday, 17 January 2017

SQL Query to list number of records in each table in a database

Description:

In this example we explain that how to get total number of record in each table in SQL Server or SQL Query to fetch the total number of record in each table in SQL Server. Sometime you have requirements like list the number of records in each table in a database so different query for different user like sql query that provide the row counts and table names in a database. Or how to fetch the row count for all tables in a SQL Server database.

Keeping track of your row counts can be very useful for budgeting and capacity planning.

Suppose I have 100 table in my SQL Server database and I want to fetch all the table that have more than 500 record in each table so in this situation below is the sql query useful for us.
Below is the query to get exact row counts for all tables in sql server

SQL Query to list number of records in each table in a database

SQL Query to list number of records in each table in a database

Description:

In this example we explain that how to get total number of record in each table in SQL Server or SQL Query to fetch the total number of record in each table in SQL Server. Sometime you have requirements like list the number of records in each table in a database so different query for different user like sql query that provide the row counts and table names in a database. Or how to fetch the row count for all tables in a SQL Server database.

Keeping track of your row counts can be very useful for budgeting and capacity planning.

Suppose I have 100 table in my SQL Server database and I want to fetch all the table that have more than 500 record in each table so in this situation below is the sql query useful for us.
Below is the query to get exact row counts for all tables in sql server
This entry was posted in :

Friday, 6 January 2017


Retrieve a List of Installed Printers on the Network

Description:

In this example we explain that how to display list of printers in client computer in asp.net using C#.or how to find installed printers on client machine in asp.net.retrieve a list of installed printers on network using C#.

Suppose you have requirements likes to display list of printers on the network so below is the code to display it.

Retrieve a List of Installed Printers on the Network Using C# in asp.net


Retrieve a List of Installed Printers on the Network

Description:

In this example we explain that how to display list of printers in client computer in asp.net using C#.or how to find installed printers on client machine in asp.net.retrieve a list of installed printers on network using C#.

Suppose you have requirements likes to display list of printers on the network so below is the code to display it.

Monday, 19 December 2016

Description:

In this example we explain that how set and get the innerHTML of the Label and DIV control using jQuery or JavaScript. Or how to replace the innerHTML of the div using jQuery or javascript.

how set and get the innerHTML of the Label and DIV control using jQuery or JavaScript

Description:

In this example we explain that how set and get the innerHTML of the Label and DIV control using jQuery or JavaScript. Or how to replace the innerHTML of the div using jQuery or javascript.