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

Showing posts with label Code Snippets. Show all posts
Showing posts with label Code Snippets. Show all posts

jQuery Count (Get) Number of Rows in Table with Example

May 19, 2015 0 comments
Introduction

Here I will explain how to get number of rows count in table in
jQuery or count number of rows in table in jQuery with example or jQuery get number of table rows length or jQuery get rows length in table with example.

Angularjs $interval Example to Refresh Div for Every n Seconds

May 11, 2015 0 comments
Introduction

Here I will explain how to refresh div for every 1 second using $interval in 
AngularJS with example. Generally in JavaScript we will use setInterval() function to run our code for every specific period of time same way in AngularJS we have $interval angular module to do same functionality like setInterval() function. To refresh div for every 1 second here I am going to use $interval angular module.

Description:
  
In previous articles I explained jQuery setInterval() function example, start and stop time in javascript using setInterval function, jQuery redirect to another page after 5 seconds, Javascript redirect to another page after 5 seconds and many articles relating to
jQuery, JavaScript and asp.net. Now I will explain how to refresh div for every 1 second using AngularJS.

Angularjs Open Url in New Browser Window with Custom Height Width Example

May 9, 2015 0 comments
Introduction

Here I will explain how to open url in new browser window using
AngularJS with custom height and width on button click example or AngularJS open new popup / browser window on button click or AngularJS open child window from parent window on button click with example. By using “$window.open” we can new popup browser window with custom size in AngularJS.

Description:
  
In previous articles I explained
Angularjs convert number to currency format, Angularjs get dropdownlist selected value, Angularjs convert text to uppercase while typing, Angularjs refresh div for every 1 second using interval mode and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how to open new browser window with custom height and width on button click using AngularJS.

jQuery to Show Hide a Div when Checkbox is Checked (Selected) or Unchecked

0 comments
Introduction

Here I will explain how to use
jQuery to show or hide div when checkbox checked (selected) or unchecked or jQuery show and hide div tag based on checkbox selection with example or jQuery show div with elements when checkbox checked / selected otherwise hide div elements when checkbox unselected / unchecked.

Description:
  
In previous articles I explained jQuery fadein fadeout effects example, jQuery drag and drop div example, jQuery show hide or toggle div content with example, jQuery slideup, slidedown, slidetoggle effects example,
jQuery add border to images using css classes and many articles relating to css, AngularJS, jQuery, JavaScript and asp.net. Now I will explain how to use jQuery to show or hide div when checkbox checked or unchecked with example.

Angularjs Show Hide Div when Checkbox is Checked using ng-change Event

0 comments
Introduction

Here I will explain how to show or hide div when checkbox is checked / selected using
AngularJS or show or hide div when checkbox checked (selected) or unchecked in AngularJS or show / hide div based on checkbox click / selection in AngularJS.

Description:
  
In previous articles I explained
Angularjs convert number to currency format, Angularjs get dropdownlist selected value, Angularjs convert text to uppercase while typing, Angularjs refresh div for every 1 second using interval mode and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how to show or hide div when checkbox is checked / selected in AngularJS.

Angularjs Show Hide Div on Button Click with Example

May 6, 2015 0 comments
Introduction

Here I will explain how to show or hide div on button click (ng-click) in
AngularJS or show / display or hide in AngularJS using button ng-click with example. By using “ng-show”, “ng-hide” properties in AngularJS we can show or hide div elements.

Angularjs Show JavaScript Alert Message (Box) on ng-click with Example

0 comments
Introduction

Here I will explain how to show alert message in
AngularJS or show / display JavaScript alert box or message in AngularJS using ng-click with example. Generally in JavaScript we will use “window” property to show alert message same way in AngularJS we will use “$window” property show alert message.

AngularJS ng-repeat Example to Populate (Bind) Select DropDownList with Options

May 5, 2015 0 comments
Introduction

Here I will explain 
AngularJS ng-options or ng-repeat example to bind dropdownlist value and text using AngularJS or populate or fill dropdowlist with option values using ng-repeat or ng-options in AngularJS. Generally in AngularJS we can fill or bind dropdownlist using ng-repeat or ng-options methods.

AngularJS ng-options Example to Populate (Bind) Select DropDownList with Options

0 comments
Introduction

Here I will explain 
AngularJS ng-options or ng-repeat example to bind dropdownlist value and text using AngularJS or populate or fill dropdowlist with option values using ng-repeat or ng-options in AngularJS. Generally in AngularJS we can fill or bind dropdownlist using ng-repeat or ng-options methods.

Angularjs Convert Size (Bytes) to KB, MB, GB, TB in jQuery or JavaScript

0 comments
Introduction

Here I will explain how to convert size bytes to kb, mb, gb or tb in
AngularJS or JavaScript or jQuery. By "Math" formulas we can convert size bytes to kb, mb, gb or tb in AngularJS or jQuery or JavaScript.

jQuery Check if Browser Supports History.Pushstate or Not in JavaScript

Apr 29, 2015 0 comments
Introduction

Here I will explain how to check if browser supports history.pushState HTML5 history function or not in
JavaScript and jQuery. Generally we will use pushState function in HTML5 to change browser url without refresh or reloading page in jQuery and JavaScript.

Description:
  
In previous articles I explained jQuery remove() and empty() function example, jQuery check whether div element is empty or not, disable mouse right click using jQuery and JavaScript,
jQuery add multiple markers to google map from database, jQuery check file size before upload in asp.net and many articles relating to jQuery, JSON, JavaScript and asp.net. Now I will explain how to check if browser supports history.pushState function of HTML5 in JavaScript and jQuery.

jQuery Change Browser URL without Reloading (Refreshing) Page using HTML5 Pushstate Function

0 comments
Introduction

Here I will explain how to change browser url without reloading or refreshing page using HTML5 history api in
JavaScript and jQuery. By using pushState function in HTML5 history API we can change browser url without reload or refresh page in jQuery and JavaScript.

Description:
  
In previous articles I explained jQuery remove() and empty() function example, jQuery check whether div element is empty or not, disable mouse right click using jQuery and JavaScript,
jQuery add multiple markers to google map from database, jQuery check file size before upload in asp.net and many articles relating to jQuery, JSON, JavaScript and asp.net. Now I will explain how to change browser url without reloading or refreshing page using HTML5 history api pushState function in JavaScript and jQuery.

Angularjs Get Current Date or Time or DateTime with Example

Apr 23, 2015 2 comments
Introduction

Here I will explain how to get current datetime in
AngularJS or get only current date or time from AngularJS. By using “new Date()” function we can get current date or time or datetime in AngularJS.

Scrollable HTML Table Body with Fixed Header using CSS with Example

Mar 29, 2015 1 comments
Introduction

Here I will explain how to implement scrollable html table body with fixed header columns using css styles with example or html table with fixed header and scrollable or scrolling body using css with example.

Description:
  
In previous articles I explained Best Login page design with html and css, jQuery add border to all images using css, change default text color selection using css,
jQuery add multiple markers to google map from database, Show more link to shorten text and display it and many articles relating to html, css, jQuery, JavaScript and asp.net. Now I will explain how to implement html table with fixed header and scrollable body using css.

To implement html table with fixed header and scrollable body using css we need to write the code like as shown below

AngularJS Convert Number to Currency Format and Limit to 2 Decimal Places

1 comments
Introduction

Here I will explain how convert number to currency format in
AngularJS or limit number to display / show with 2 or two decimal places in AngularJS with required currency format. By using currency property in AngularJS we can convert number to currency format and limit number to display with decimal values.

Description:
  
In previous articles I explained
Angularjs convert lower case to upper case while typing text, Angularjs refresh div for every 1 second using interval mode, 5 + Angularjs Gridview and table plugin examples with demos, jQuery redirect to another page after 5 seconds and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how convert number to currency format and limit number to 2 decimal places in AngularJS.

To convert number to currency format and limit number to 2 decimal places in AngularJS we need to declare number like as shown below

Other Related Posts

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