Skip to main content

Posts

Iterate through nested JSON Data using javascript

Below is the code used: <! DOCTYPE html > < html > < head >     < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></ script >     < meta charset ="utf-8" />     < title > JS Bin </ title > </ head > < body >     < div id ="output">     </ div >     < script >         ( function () {             var myobj = {                 obj1: { key1: 'val1' , key2: 'val2' },                 obj2: { key1: '2val1' ,                     ...

Iterate through json array using javascript

Javascript Array: var myArray = { "artists" :[{             "a1" : "Adam Sandler" ,             "a2" : "Adam Lambert" ,             "a3" : "Avril Levine" ,             "a4" : "Backstreet Boys" ,             "a5" : "Blackstreet" ,             "a6" : "Black Eye Peas" ,             "a7" : "Cool and the Gang" ,              "a8" : "Chicago" ,             "a9" : "Charlie Manson"         }],         "songs" :[...

How to create table in sql server 2008

In this article i am going to explain about how to create table in sql server 2008. "Create Table" Statement is uesd to create table in sql server. In sql server tables are organised as rows and columns.And each column will have name and the datatype it accepts. So creating table in sql server we need to create columns with datatype. Below is the syntax to create table in sql server 2008. CREATE TABLE table_name ( column_name1 data_type ( size ), column_name2 data_type ( size ), column_name3 data_type ( size ), .... ); Below is the script to create student table CREATE TABLE StudentMaster ( Name VARCHAR ( 50 ), Standard INT , Section CHAR ( 5 ) ) After creating table you can check it in the object explorer. After creating table we can insert the record in the table in the below format INSERT INTO StudentMaster ( Name , Standard , Section ) VALUES ( 'Kannadasan' , '12' , 'A' ) ...

Validation Controls in ASP.Net

Introduction   It's very important to validate the user input in any data entry forms. Improper validation of form data is one of the main causes of security vulnerabilities. Invalid data can cause unexpected errors in system and also It exposes your website to attacks such as cross-site scripting and SQL injections etc. ASP.NET is rich with validation controls and In this article I’m trying to explore the ASP.NET Validation controls in depth with the help of samples.  I hope you will enjoy this article. For your reference I have  attached   the source code(s) for all the sections with this article.  I have put my time and efforts on all of  my articles , Please don't forget to mark your  votes ,  suggestions and feedback to improve the quality of this and upcoming articles.    Background    If we are assuming that the user will enter all data in expected form then it’s a wrong assumption. It’s always better to...