Knowledge Transfer

Wednesday, January 7, 2009

What is Jquery?

What is JQuery?
jQuery is an amazing JavaScript library that makes it easy to create wonderful web effects in just a few lines of code. As the website says:”

“jQuery is a JavaScript library that takes this motto to heart: Writing JavaScript code should be fun. jQuery achieves this goal by taking common, repetitive, tasks, stripping out all the unnecessary markup, and leaving them short, smart and understandable.”

Maybe you are thinking… “Why I would need another JavaScript library”? Just give a try and you will see how simple and powerful it is even if you have already used Moo.fx, Scriptaculous, TW-SACK or Prototype.

Why I should use jQuery?
Simple. In just one glance at the source code of a page using jQuery you’ll see how easy it is to use, how much it accomplishes in so few lines of code, and how graceful it is.

My mind was opened one day when I stumbled across some code written with jQuery. I was flipping through the RSS feeds and reading my daily dose of web design blogs when I came across an example of JavaScript loveliness that used jQuery. Truth be told, the code on that site had some browser related bugs… but the concept was something I hadn’t seen before.

What about the code?
The code looked almost simple. Like nothing I had seen before. It made sense.

I started reading through the documentation and was amazed to see how much could be done with so little extra code.

When you can use jQuery?
You should use jQuery when you need:

A small library that gives you powerful control over the Document Object Model
With very little effort or work on your part
Or

Quick access to AJAX
Without a lot of bloat (overhead - wasted code)
And some basic animation effects to spice things up
But…

If you need super fancy effects for animation, drag and drop, and super smooth animation then you’ll probably want to use Prototype and one of the many great library created to enhance the effects.

Where to get it?
You can download the source code (15k), a lot of plugins and read some excellent tutorials at the JQuery website . jQuery was created by John Resig.

Happy Coding ,
Uday.Adidham

Labels: , , , , ,

C# Ternary Operator

Hi DotNetGems,
First we discuss about the If..Else . I think Every one know about If..else and Nested If Else statements so same like that we use the Ternary Operators.the symbole is like this "?:".

If..else example

using System;
class Program
{
static void Main(string[] args)
{
int age = 31;
if (age > 75)
Console.WriteLine("Have a nice retirement");
else
Console.WriteLine("You are still young");
Console.Read();
}
}

Now The Ternary Operator

The ternary operator looks like this: "?:"
Ternary operator has one condition expression and can return one of possible two values. Lets take a look at an example:

using System;

namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
int a = 1;
string b = (a < 2) ? "true" : "false";
Console.WriteLine(b);
Console.Read();
}
}
}



Happy coding
Uday.Adidham

Labels: , ,

Monday, January 5, 2009

Datagrid Examples

To place a DataGrid on an ASP.NET Web page you simply need to add the following code:




Here the id you choose will be the name of the DataGrid you'll use when referring to it in your server-side code. The syntax above gets us started using a DataGrid by placing it in the HTML content, but in order to have the DataGrid display anything useful we need to bind the DataGrid to some collection of information. This collection of information can be any object that supports the IEnumerable interface. This includes things like Arrays, collection classes (ArrayList, Hashtable, etc.), DataSets, DataReaders, and a number of other objects. Since we'd like to focus on displaying database information, for this article we'll focus on binding DataGrids to DataReaders, which are synonymous to forward-only, firehose cursors Recordsets in classic ADO/ASP. (For more information on reading database results into DataReaders using ADO.NET be sure to read:

For furuther information http://aspnet.4guysfromrolla.com/articles/040502-1.aspx

Happy Coding
Uday.Adidham

Labels: , , ,

Thursday, January 1, 2009

Flex(Fx) For .Net Applications.

The Below two links for Adobe Flex Traing for .Net People.


"http://www.adobe.com/devnet/flex/videotraining/?sdid=EFMDI"


http://www.adobe.com/devnet/flex/flex_net.html


Happy Flex,
Uday.Adidham

Labels: , ,