Wednesday, July 27, 2005

SQL Server 2005, SPROC

well i were wondering how to make sprocs in C# and i found the following page:

http://www.dotnetfun.com/articles/sql/sql2005/SQL2005CLRSProc.aspx

Thursday, July 21, 2005

Page directive

The page directive in the code behind version contains the attribute to corresponding source code file over attribute CompileWith="xxxx" and the class in the source code attribute="xxxx"

<@% Page CompileWith="YourPage.aspx.cs" ClassName="YourClassName"%>

Notice that the new class is a partial class which doesn't contains all information
you were used to it in version 1.x.

partial classes derives from System.Web.UI.Page.

Sample:

using System;
using System.Web;

.....


public partial class YourWebSite_aspx
{
void foo()
{
// your stuff goes here.....
}
}

the following link describes you this and some additional new features:

http://www.c-sharpcorner.com/Code/2004/July/WhidbeyFeatures.asp


If you wonder how the whole construct works you can do a research about
"Dynamic Page Compilation".

Code Inline vs. Code Behind

Microsofts IDE Visual Studio 2005 supports both models of writing code.

Code Inline - means that all your code is insise the *.aspx
Code Behind - means that all your code is separeted into two or MORE files.
*.aspx just contain markup data

by code behind selection you will generate a *.vb or *.cs file


Microsfts pronounced - is no performance difference between inline or behind option.

check Querystring parameters

today i found the following method inside the String class:

if(!String.IsNullOrEmtpy(this.Request["myQuerystringParameter"]) )
{
// here goes your code
}

Monday, July 11, 2005

Background of the Rational Unified Process

Background of the Rational Unified Process
The writers or developers of this software engineering process focused on diagnosing the characteristics of different software projects that failed; by doing this they tried to recognize what the common aspects were that made these software projects fail. They also looked at the existing software engineering processes and their solutions for these symptoms that caused the failure of these projects.

The symptoms are:

Ad hoc requirements management .
Ambiguous and imprecise communication
Brittle architecture
Overwhelming complexity
Undetected inconsistencies in requirements, designs, and implementations
Insufficient testing
Subjective assessment of project status
Failure to attack risks
Uncontrolled change propagation
Insufficient automation
Project failure is caused by a combination of several symptoms, though each project fails in a unique way. The outcome of their study was a system of software best practices they named the Rational Unified Process. Since knowing these problems will not guarantee a successful software product unless the solutions are also considered, they went on to create the Rational Unified Process Product (RUPP).

The Process was designed with the same techniques the team used to design software; it has an underlying object-oriented model, using Unified Modeling Language UML.

Refactoring Home

Refactoring Home

ONDotnet.com: Refactoring with Visual Studio Macros

ONDotnet.com: Refactoring with Visual Studio Macros

Wednesday, July 06, 2005

Make your life easier with "Shortcut keys"

To get things done, sometimes it's more efficient to use
keyboard shortcuts, instead of playing around with the
mouse. It's more quicker! Here are some useful shortcut
keys for most frequently used software packages like
Windows, Internet Explorer, Outlook etc.




Windows shortcut keys:
-------------------------------------------------------------------------
F2 Select a file and press F2 to rename the file
F3 In Windows Explorer and on Desktop, pressing F3 brings up the Find dialog box
Alt + Enter Select a file and press Alt + Enter to bring up its Properties dialog box
Alt + Space bar Inside a window, press Alt + Spacebar to bring up the system menu of that window
Ctrl + Escape Brings up the windows start menu
Alt + Tab Lets you switch between currently running applications
Shift + Delete Permanently deletes a file without moving it to Recycle Bin
Ctrl + A Selects all the files in Windows Explorer. Also selects all the text in text boxes
Alt + F4 Closes the current window
Double left click Double left click on the system icon of a window closes that window
Ctrl + Tab Changes the tabs in a tabbed dialog box in forward direction. Also switches windows in an MDI form
Ctrl + Shift + Tab Changes the tabs in a tabbed dialog box in backward direction
Ctrl + F6 Switches between the currently open child windows in an MDI form
Ctrl + Left click Deselects a specific item from a selected range. Works in Windows explorer
Crtl + Alt + Delete Brings up task manager in Windows 95/98. Brings up more options in NT/2000
Shift + F10 Brings up the context sensitive pop-up menu
Ctrl + W Closes the current window
Windows Key + m Minimizes all windows
Ctrl + (+) key from the right hand side of the keyboard Rearranges the widths of the list view's columns properly


Internet Explorer shortcut keys
-------------------------------------------------------------------------
Ctrl + F Brings up the Find dialog box
F5 Refreshes the page
Ctrl + N Opens a new browser window
Alt + Home Takes you to your homepage
Escape Stops loading the current page
Ctrl + A Selects the entire page
F11 Toggles between full-screen mode and normal mode
Backspace Takes you to the previously loded page
Alt + Right arrow Forwards you by one page in the available page stack
Alt + Left arrow Takes you to the previous page in the available page stack
Ctrl + Enter In the address bar, avoid typing http, ://www and .com by just typing the domain name and pressing Ctrl + Enter
Enter Not sure if the domain name ends with .com or .net? Type the domain name & press enter. IE will search for the domain
F4 In IE 5.0, F4 drops down the address bar combo box
Ctrl + P Prints the current page
Crtl + O Brings up the 'file open' dialog box
Ctrl + H Brings up the History window
Crtl + B Brings up the 'Organize Favorites' dialog box
Ctrl + R Reloads/refreshes the current page
Shift + Left click Opens the clicked link in new window

Outlook shortcut keys
-------------------------------------------------------------------------

Alt + S Sends the current mail
Ctrl + Enter Sends the current mail
Ctrl + K Resolves the email addresses from the address book
Alt + K Resolves the email addresses from the address book
F7 Starts spell check
Ctrl + D Deletes the current mail
Shift + Delete Permanently deletes the current mail
Ctrl + Z Undoes the last change
Ctrl + Y Redoes the last change
F4 Brings up the Find dialog box
Shift + F4 Finds the next occurence of the search string
Ctrl + R Brings up the reply window for the current mail
Ctrl + Shift + R Brings up the 'reply all' window for the current mail
Ctrl + P Prints the current mail
F5 Sends and receives mails

Shared Cache - .Net Caching made easy

All information about Shared Cache is available here: http://www.sharedcache.com/. Its free and easy to use, we provide all sources at codeplex.

Facebook Badge