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

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 4 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 2 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

jQuery Get Elements with Id or CSS Class Name with Example

Mar 19, 2015 0 comments
Introduction

Here I will explain how to use
jQuery to get elements with css class name or id with example. We can get elements (div) by using class name or id easily in jQuery.

Description:
  
In previous articles I explained
best login page design using css, change button color on mouseover using css, jQuery add border to images using css classes, 8 best audio player plugin examples and many articles relating to css, AngularJS, jQuery, JavaScript and asp.net. Now I will explain how to use jQuery to get elements with css class name or id with example.

To get elements with class name or id using jQuery we need to write the code like as shown below

jQuery Remove() and Empty() Functions with Examples

Mar 18, 2015 1 comments
Introduction

Here I will explain how to use
jQuery empty() function and remove() function with examples. In jQuery both empty() and remove() functions are used to remove the elements. Empty() function in jQuery is used remove inside content of div element and remove() function is used to remove complete div element.

Description:
  
In previous articles I explained 8 best audio player plugin examples, jQuery video player plugin examples,
jQuery Hover dropdown menu, jQuery bouncing menu example and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how to use jQuery empty() function and remove() function with examples.

By using empty() function we can remove inside content of div element and remove() function will remove complete div element for that we need to write the code like as shown below

jQuery Check Whether Div Element is Empty or Not

0 comments
Introduction

Here I will explain how to use
jQuery to check whether div element is empty or not or jQuery hide or delete div element in case if div empty. By using html selector property we can check whether div element is empty or not based on that we can hide or remove div.

Description:
  
In previous articles I explained
jQuery Hover dropdown menu, jQuery bouncing menu example, jQuery zoom image on mouse over using zoom plugin, jQuery split string into array by comma and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how to use jQuery to hide or remove div if it’s empty.

By using html selector we can check whether div empty or not. If it’s empty we can hide or remove div for that we need to write the code like as shown below

jQuery Remove or Hide Div Element If It's Empty or Contains No Data

0 comments
Introduction

Here I will explain how to use
jQuery to hide or remove div if it’s empty or jQuery hide or delete div incase if div empty. By using html selector property we can check whether div empty or not based on that we can hide or remove div if it’s empty.

Description:
  
In previous articles I explained
jQuery Hover dropdown menu, jQuery bouncing menu example, jQuery zoom image on mouse over using zoom plugin, jQuery split string into array by comma and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how to use jQuery to hide or remove div if it’s empty.

By using html selector we can check whether div empty or not. If it’s empty we can hide or remove div for that we need to write the code like as shown below

Disable Mouse Right Click on Page using JavaScript and jQuery in Asp.net

Mar 17, 2015 0 comments
Introduction

Here I will explain how to disable right click in asp.net (aspx) webpage using
JavaScript and jQuery. To disable right click on page using JavaScript and jQuery we need to disable oncontextmenu event, onmousedown and onmouseup events.

Description:
  
In previous articles I explained jQuery change image on mouse over, jQuery social sharing plugin examples,
jQuery Hover dropdown menu, jQuery bouncing menu example, jQuery zoom image on mouse over using zoom plugin, jQuery split string into array by comma and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how to disable right click in asp.net (aspx) webpage using JavaScript and jQuery.

To disable right click on web page we need to write the code like as shown below

jQuery Hide Parent DIV if Child DIV (HTML) is Empty with Example

0 comments
Introduction

Here I will explain how to use
jQuery to hide parent div of child div empty or jQuery hide parent div incase if child div contains empty or without html data. By using empty selector and parent method we can find whether child div empty or not in jQuery.

Description:
  
In previous articles I explained jQuery Hover dropdown menu, jQuery bouncing menu example,
jQuery zoom image on mouse over using zoom plugin, jQuery split string into array by comma and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how to use jQuery to hide parent div if child contains empty.

By using empty selector and parent method we can hide parent div if child div contains empty for that we need to write the code like as shown below

jQuery Remove (Delete) Multiple Divs with Same Id or Class Name

1 comments
Introduction

Here I will explain how to use
jQuery to delete multiple divs with same id or jQuery remove or delete all divs with same class name or jQuery delete elements with class name. By using remove() property we can delete or remove multiple divs with sample class name.

Description:
  
In previous articles I explained jQuery remove specific element from array by value, jQuery add items into array with example,
jQuery zoom image on mouse over using zoom plugin, jQuery split string into array by comma and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how to use jQuery to delete multiple divs with same id or same class name.
© 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.