Posts

AngularJs is a Framework of the Jscrit to work in a better way . A basic knowledge of HTML,cssand JScript is requiredbefore starting angular js. ng-directives are uses to extentHTML content. and we need to download the AngualrJs CLICK HERE After adding the AngularJs to your web page it will automatically gets loaded to your web page . 'ng-app' directive is added to div which tells the js that div is the owner of the AngularJs  applicaion <div ng-app=""> ------ ------ </div>  "ng-model" it binds the inserted values with a variable name <p>The name of the User is <input type="text" ng-model="first_name"/></p> here the firstname is the variable is which the value is being entered now we will bind this value to any other component . which is called as two way binding this can be get by 'ng-bind' <p>The name of the User is <input type="text" ng-model="firs...

Links from making the animation in XAML.

These are some links for adding animation to the XAML. http://msdn.microsoft.com/en- us/magazine/cc721608.aspx http://msdn.microsoft.com/en- us/library/cc189019(VS.95). aspx

How to post data in MVC using form collection for Beginners.

Here we can simply put the data into the form tag and give each component an name .We are creating a login form using the MVC Architecture. <form method="post" action="Name_of_the_function> <input type="text" name=username id=username> <input type="password" name =pass id=pass> <input id=submit type="submit"> on controller [httppost] public ActionResult Name_of_the_function(formcollection form) { string str=form["username"]; string str1= form["pass"]; }

How to post data using J-Query

Here we are making a post method using the J-Query. Firstly we specify the component which is calling the function. Here "btn" is the component Id which is calling the post method . The post function is AssignVal(). $("#btn").click(function(){ $.(post)("AssignVal",{ARG1:$('#Component1_Id ').text(), empid:$(' Component2_Id ').text()}); location.reload();  });

Delete a specific row using LINQ

Here we are having a table in the Database name DBentities . The name of the table is Employee. here we are deleting a row where emplyee_id is emp_id var v = from row in dbentities.employee  where employee_id==emp_id select row if(v != null) { dbentities.employee.remove(v); }

Inserting Data using EF with MVC4.

I think you can add EF in your project. Then open model1.edmx or what ever is the name of your file .noe go to it property and change  the property CODE GENERATION STRATEGY to default. Now delete the 2 xyz.tt file from the model1.edmx. Firstly add your model on the file like using PROJECT_NAME.model den u can add your model entity as modelentities obj= new modelentities (); then creating a function in the controller as . public void addintotable() { table1s obj1= new  table1s(); obj1.atribute1= value;// adding string value obj1.attribute2=convert.toint32(value); // adding an int value  // you can add as many as atttribute you ant to add . } 

For Beginers on Entity Framework (EF.)

Enitity Framework is another way to ad database to your  project.Here can add a model in the solution so that we can link the database. Here we don't need to write the SQL connection again and again. this also uses LINQ. that is the  another way to insert or fetch the data from the database.. firstly right click on the solution in the solution explorer window. then we can add ADO entity model from the "Data" section.then give the server name and select your database then select the table you want to add. NOTE:  primary key is required in  every table for EF to work on that specific table .