Tuesday, December 21, 2010

Working with MVC

Here is some links about MVC.
==> MVC 1.0
(1) ASP.NET MVC Framework - ScottGu's Blog

(2) ASP.NET MVC Framework (Part 1) - ScottGu's Blog

(3) ASP.NET MVC Framework (Part 2): URL Routing - ScottGu's Blog

(4) ASP.NET MVC Framework (Part 3): Passing ViewData from Controllers to Views - ScottGu's Blog

(5) ASP.NET MVC Framework (Part 4): Handling Form Edit and Post Scenarios - ScottGu's Blog
(6) ASP.NET MVC Framework Road-Map Update
(7) Free ASP.NET MVC “NerdDinner” Tutorial Now in HTML - ScottGu's Blog

(8) ASP.NET MVC 1.0 - ScottGu's Blog

(9) Download details: ASP.NET MVC 1.0

(10) Upgrading an ASP.NET MVC 1.0 Application to ASP.NET MVC 2: The Official Microsoft ASP.NET Site

(11) ASP.NET MVC Source Code Now Available - ScottGu's Blog

==> MVC 2
(1) ASP.NET MVC 2 Released - ScottGu's Blog

(2) ASP.NET MVC 2 - ScottGu's Blog

(3) ASP.NET MVC 2: Strongly Typed Html Helpers - ScottGu's Blog

(4) ASP.NET MVC 2: Model Validation - ScottGu's Blog

(5) What’s New in ASP.NET MVC 2: The Official Microsoft ASP.NET Site

(6) Download details: ASP.NET MVC 2 RC

(7) Localizing ASP.NET MVC Validation

==> MVC 3

(1) Introducing ASP.NET MVC 3 (Preview 1) - ScottGu's Blog

(2) Download details: ASP.NET MVC 3 RC2

(3) Download details: ASP.NET MVC 3 Release Candidate

(4) Brad Wilson: ASP.NET MVC 3 Service Location, Part 1: Introduction

(5) HTML5 Improvements with the ASP.NET MVC 3 Tools Update

(6) EF Code First and Data Scaffolding with the ASP.NET MVC 3 Tools Update

(7) ASP.NET MVC 3 Tools Update
   
     Introducing Razor
     (1) Introducing Razor

     (2) New @model keyword in Razor 

     (3) Layouts with Razor

     (4) Server-Side Comments with Razor

     (5) Razor’s @: and syntax

     (6) Implicit and Explicit code nuggets with Razor

     (7) ASP.NET MVC 3: Layouts and Sections with Razor

     (8) ASP.NET MVC 3 and the @helper syntax within Razor           
     

Friday, November 12, 2010

Some useful jQuery small functions

Here is some small jQuery functions.
(1) ready and load functions
    - ready and load functions
    $(document).ready(function() {
     // executes when HTML-Document is loaded and DOM is ready
     alert("document is ready");
    });
   
    $(window).load(function() {
     // executes when complete page is fully loaded, including all frames, objects and images
     alert("window is loaded");
    });

    - hide the div on ready with the given class name
    jQuery(document).ready(function () {
            jQuery("div[class='class1 class2']").hide();
     });

(2) set the text of the label
jQuery("#Label1").text("Label1");
text


(3) set the attribute(attr())
//set single attribute
jQuery("#img").attr("src", "../images/up.png");

//set multiple attributes at once
$("#img").attr({
  alt: 'This is alt',
  title: 'This is title'
});

attr

(4) set the css for the div
jQuery("#div").css("display") = "none"
css

(5) show the div
jQuery("#div").show();
show

(6) hide the div
jQuery("#div").hide();
hide


(7) addClass/remove class
Hello
and
Goodbye

$("p:last").addClass("selected"); //adds the class to

$('p').removeClass('myClass noClass').addClass('yourClass') //removes class and add new one
addClass

(8) find the length of the  textbox value
var myLength = $("#TextBox1").val().length;
length

(9) Check the browser
- returns true if browser is Internet Explorer
    $.browser.msie
- Check whether the browser if mozilla
   if(
$.browser.msie)
      alert("Do stuff for IE");
   else      alert("Do stuff for firefox");  });

(10) working with substring
- check whether the substring is there or not
$.isSubstring("hello world", "world")); // true;

- gets the substring from o start position to 40 end position
$("#TextBox1").val().substring(0, 40);

(11) string uppercase & lowercase
//Lowercase
$("#TextBox1").val().toLowerCase();
//Uppercase
$("#TextBox1").val().toUpperCase();

(12) split the word
var element = $("#TextBox1").text().split(" ");
alert(element);
text

(13) Create new element
//append some text to the p element
$("p").append("Hello");

//to append new element to div main

$('My Anchor').appendTo('div#main');

//Crteate an element
$("").appendTo('body'); //This will append div to body
appendTo

(14) create clone of the element
a paragraph

$("p").clone().add("Again").appendTo(document.body);
clone

(15) Replacing using jQuery
replaceWith

(16) s ways to remove all of the information bound to an elemtnt
$("div").removeData(); 
removeData
$("div").remove();
remove

(17) to remove the attribute
jQuery("#" + "<%=TextBox1.ClientID %>").removeAttr("disabled");
removeAttr

(18) trim string using jQuery
var myString = " an example of a string ";
myString = jQuery.trim(myString);
trim

(19) //Determinig the width
- find the width of the element
$("#main").innerWidth();
innerWidth

- find the width of the window
$(window).width();
width

(20) binding the click event
$('#table td ').click(function() {
   alert("The TD you clicked contains '" + $(this).text() + "'");
});
$('#table td ').bind('click', function() {
  alert("The TD you clicked contains '"+$(this).text()+"'");
});
click 

(21) check all checkbox using jQuery

Where
(1) "selectAll" is button on click of the checkboxes should be checked
(2) on click of the button it will loop through the all the checkbox items and check one by one
SelectAll CheckBox

(22) how to fill full calender using the jQuery

(23) check whether the checkboxes provided are checked or not, if not then prompt message for the same
$("#<%= Button1.ClientID %>").click(function () {
            var n = $("input:checked").length;
            if (n > 0)
                return true;
            else {
                alert('Please select checkboxes.');
                return false;
            }
        });

(24) confirming the gridview onclick of the remove
$(document).ready(function() {
            //To remove the row on click on click of the row
            $("#<%=grdStudent.ClientID%> tr").click(function() {
                //Get confirmation from the user
                var answer = confirm('Are you sure you want to delete->' + $(this).find("td:first").html());
                //if answer is true remove the row(here you can remove row from database)
                if (answer) {
                    //Change the backgroupd color while removing the GridView row and fade out feel to the user
                    $(this).css("background-color", "green");
                    $(this).fadeOut(500, function() {
                        $(this).remove();
                    });
                }
            });
        });

GridView and jQuery Confirm

(25) Validate inputboxes using jQuery 

(26) Load Page Content
ASP.NET MVC Loading a page content into a div using JQuery 

load 

(27) validation method required
Plugins/Validation/Methods/required 

(28) scroll webpage to top of the page
Go to top of the page using jQuery
How do I scroll to the top of the page with jQuery?
Scroll to the top of a webpage with jQuerySmooth Page Scroll to Top with jQueryScrolling to the Top and Bottom with jQuery       
              

Thursday, October 14, 2010

Some Links about Excel


Here is some links about various topics in excel.

- Named Range and Data Validations

TFS Tips n Tricks


Here is some links of Tips n Tricks of TFS.
(1) An Overview of Source Control in Visual Studio Team System

(2) TFS 2008 Tips and Tricks: Enable Get Latest on Check Out « Sushantp’s Weblog

(3) Prabir's Blog | Save Team Foundation Server Password

(4) Visual Studio Team Foundation Server-Use of Annotate Feature

(5) Tips and Tricks, Visual Studio ALM, and Team System by Neno Loje

(6) INDC Talk: Top Ten Tips for Team Foundation Server

(7) Sept 2010 TFS Power Tools Release Available's WebLog - Site Home - MSDN Blogs

(8) A Developer's Life: Visual Studio 2010/TFS 2010 Utility Roundup

(9) Connect to Tfs with defferent credentials

- Connect to TFS with different user credentials - Stack Overflow

- TFS Top Tip #2: Changing the Logged In User 

(10) TFS 2008 Web Access Report View Missing data

(11) TFS 2008 Web Access Report 100 record limitation

(12) Enable Visual Studio 2010 Online Template/Extension usage         

Unit Test With Visual Studio

Here is some link about Creating Unit Test with Visual Studio.

Wednesday, October 13, 2010

ASP.NET Web Development Server


Here is some links that shows about ASP.NET Web Development Server

What is Visual Web Developer?

How to start ASP.NET Development Server from command prompt


OOPS/C# Related Links


Here is some links for the OOPS concepts.
(1) ASP.NET article index from 4guysfromrolla.com

(2) Using Object-Orientation in ASP.NET : Overview

(3) 4GuysFromRolla.com-Orientation in ASP.NET : Encapsulation

(4) Understanding Interfaces and Their Usefulness

(5) Using Object-Orientation in ASP.NET: Inheritance

(6) 4GuysFromRolla.com-Orientation in ASP.NET: Polymorphism

(7) Abstract classes & methods

(8) Abstract Class versus Interface

(9) Method overloading# Tutorial

(10) Method Overriding in C#

(11) const, static and readonly at C# Online.NET (CSharp-Online.NET)

Difference between a constant and readonly variables/fields : (constant vs readonly)'s den...

(12) Generics in .NET 2.0

(13) System.Collections.Generic Namespace

An Introduction to C# Generics

Generic HashTable in C#.NET Forums


(14) The "Using" Statement in C#

C# Code Review# Using Statement - Try / Finally - IDisposable - Dispose() - SqlConnection - SqlCommand

Which is better, and when: using statement or calling Dispose() on an IDisposable in C#?

(15) var vs dynamic keyword in C# 4.0

C# 4.0-Dynamic Data Type, Difference between var and dynamic

(16) Indexer class in C#

(17) Yield statement in C#

(18) Partial Types, Class and Method in C#.NET 3.0/2.0

(19) DataSet Vs Datareader

(20) What is the difference between User Control and Custom Control

(21) The C# ?? null coalescing operator (and using it with LINQ)'s Blog

(22) Authentication and authorization in asp.net

(23) Application vs. AppDomain - Scott Forsyth's Blog
Enter the .Net AppDomain

(24) Understanding ASP.NET View State
What's better, a hidden form field or viewstate?

(25) Kodyaz Development Resources - Page.IsValid cannot be called before validation has taken place. It should be queried in the event handler for a control that has CausesValidation=True and initiated the postback, or after a call to Page.Validate.
Page.IsValid cannot be called before validation has taken place. It should be queried in the event handler for a control that has CausesValidation

(26) Regular Expression in C#
Regular Expressions Example

C# Regular Expression Recipes—Using Common Patterns at C# Online.NET (CSharp-Online.NET)

Regular Expressions Usage in C#

(27) An Intro to Constructors in C# - CodeProject

- Tips n Tricks for C#
(1) ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas - ScottGu's Blog

(2) Simple ASP.NET 2.0 Tips and Tricks that You May (or may not) have Heard About - Dan Wahlin's WebLog

(3) Hidden Features of C#? - Stack Overflow

(4) C# 2010 - A look

(5) Simple Delegate Example ...

(6) Hidden Features of C#? - Stack Overflow

(7) C# 3.0/4.0 in a Nutshell - PredicateBuilder