Wednesday, May 26, 2010

TFS Implementation

Application Life cycle management ALM

ALM three aspects
Governance : business management
1) Business case
2) Project portfolio management
3) Application portfolio management


Development
SDLC : Scrum , algae, CMMI , MSF.

TFS Architecture information
- Team Project Collection : each project has a project collection that has all projects, by this ; admin can grant the privileges for users on the TFS. such like TTL has some admin but the Dev doesn't have , but he has some rights to check-in check-out

- Database Changes: Branches, label
Branching : like labeling in VSS but it considered for the major release for the application.
- TFS Farms
Distribute the TFS on Farm application.

Tuesday, May 18, 2010

Simple way to user CallPage with ASP.Net

aspx Page:
---------------------------------

---------------------------------
javascript:
-----------------------
var xmlhttp
// function showHint(str) {
function showHint() {

xmlhttp = GetXmlHttpObject();
if (xmlhttp == null) {
alert("Your browser does not support XMLHTTP!");
return;
}
var url = "http://localhost:2144/CWeb/Default3.aspx";
url = url + "&xxx=" + "1";
xmlhttp.onreadystatechange = stateChanged;
xmlhttp.open("GET", url, true);
xmlhttp.send(null);
}
function stateChanged() {
//readyState means after the code behind is done the job
if (xmlhttp.readyState == 4) {
var Time = xmlhttp.responseText;
alert(Time);
}
}
function GetXmlHttpObject() {
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
return new XMLHttpRequest();
}
if (window.ActiveXObject) {
// code for IE6, IE5
return new ActiveXObject("Microsoft.XMLHTTP");
}
return null;
}




--------------------------
The Code Behind Is:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["xxx"] == "1")
{
Response.Write("One");
}
Response.Flush();
Response.End();

}

}

Sunday, May 9, 2010

Shrinking log Database SQL Server 2005

USE DBNAME
GO
DBCC SHRINKFILE(DBNAME_log, 1)
BACKUP LOG DBNAME WITH TRUNCATE_ONLY
DBCC SHRINKFILE(DBNAME_log, 1)
GO