Wednesday, September 29, 2010

UML Diagrams

UML Diagrams and its explanation

UML Diagram Types: There are nine standard UML diagrams, roughly ordered here by their by their utility during the analysis and design timeline.

Diagram

Significance

Use Case Diagram

  • A set of use cases and actors and their relationships.
  • Important for organizing and modeling system behaviors.
  • Cruicial for requirements management and communication with end users using their own domain terminology.
  • Uses very few symbols, all software independent.

Object Diagram

  • A set of objects (instances of classes) and their relationships.
  • A static snapshot of a dynamic view of the system.
  • Reperesent real or prototypical cases.

Class Diagram

  • A set of classes, interfaces, collaborations, and relationships
  • Reflects the static design of a system.
  • Can be confusing if used to explain system dynamics; use less abstract Object Diagrams instead.

Sequence Diagram and
Collaboration Diagram
(Interaction Diagrams)

  • Composed of objects and messages dispatched between them.
  • Shows a dynamic view of the system.
  • Sequence Diagram exposes time ordering of messages.
  • Collaboration Diagram exposes exposes structural organization of messages.
  • In some tools (i.e. Rational Rose), these diagrams can be interchanged from the same underlying information.

Statechart Diagram

  • Represents a state machine, composed of states and transitions.
  • Addresses the dynamic view of the system.
  • Useful for reactive behaviors.
  • Important for modeling interfaces, classes, or collaborations.

Activity Diagram

  • Addresses a dynamic view of the system.
  • Important for modeling system functions.
  • Emphasizes the flow of objects and synchronization of the flow in support of parallel processing.
  • An extension of the old "flow chart" diagram combined with Petri nets.

Package Diagram

  • Addresses larger system engineering issues, and package dependence.

Component Diagram

  • Shows organization and dependencies among a set of components.
  • Components are composed of one or more classes or interfaces.
  • A static view of the system implementation.

Deployment Diagram

  • Shows the configuration of run-time processing nodes in the system.
  • Nodes contain one or more components.
  • Address a static deployment view of the system.

How to pass a list of values or array to SQL Server stored procedure?

Hi,
Guys its very useful. It is very nice.

http://vyaskn.tripod.com/passing_arrays_to_stored_procedures.htm

Uploading a files and downloading it

Uploading a files like .jpg, .gif, .doc, .txt files.
Please refer this below url. it is very nice.
http://imar.spaanjaars.com/414/storing-uploaded-files-in-a-database-or-in-the-file-system-with-aspnet-20

Selecting a single Radio Button in Grid View

Step 1: Create a function in java script
function RadioCheck(rb) {
var gv = document.getElementById("<%=gvLeft.ClientID%>");
var rbs = gv.getElementsByTagName("input");
var row = rb.parentNode.parentNode;
for (var i = 0; i < rbs.length; i++) { if (rbs[i].type == "radio") { if (rbs[i].checked && rbs[i] != rb) { rbs[i].checked = false; break; } } } }

Call this function in Grid View item template where ever the radio button is there as shown below:
asp:RadioButton ID="chk1" runat="server" onclick="RadioCheck(this);"

Saturday, January 9, 2010

steps to remove genuine virus file in windows

steps to remove Genuine
-----------------------


1.click onthe ctrl+alt+del search for wgatray.exe

2.search same file in the c:\windows or c:\windows\system32\

3.delete the files at the same time.

4.Restart your system in safe mode

5.goto run dialog->type regedit->

6.goto hkey_local_machine->software->microsoft->
winnt->currentversion->winlogon->notify->delte wgalogon file

Code for word wrap for a row in table

script type="text/javascript"



// Needed for IE 7+ and Firefox.

function windowOnLoad()

{

// If Internet Explorer less than version 7...

if ( navigator.appName.indexOf('Microsoft') != -1 )

{

var versionValue = new String(navigator.appVersion);

var msieIndex = versionValue.indexOf('MSIE');



if ( msieIndex >= 0 )

{

versionValue = versionValue.substr(msieIndex, versionValue.length-msieIndex);

versionValue = versionValue.replace('MSIE ', '');

}



if ( parseInt(versionValue) < spantagarray =" document.getElementsByTagName('span');" i="0;" if="" classname="=" wordwrap="" var="" spantext="spanTagArray[i].innerHTML;" innerhtml="spanText.replace(/(.*?)/g,">');

}

}

}



window.onload = windowOnLoad;



/script