Tuesday, June 16, 2009

To Create a DropDownList from an ENUM

You have an 'Enum' defined as follows:public enum CompanyAddressType { Unknown = 0, Primary = 1, Warehouse = 2, Distribution_Center = 3, Cross_Dock = 4 }You want to iterate through the list and put the data into an asp.net DropDownList.Here is the simple code:protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string[] names = Enum.GetNames(typeof...

Saturday, May 23, 2009

ஜிமெயில் ஷார்ட் கட் கீகள்

உங்களுடைய ஜிமெயில் அக்கவுண்ட்டை மவுஸ் கொண்டு செலுத்துவதற்குப் பதிலாக கீ போர்டு ஷார்ட் கட் கீகள் மூலம் செயல்படுத்தலாம். இந்த கீ போர்டு ஷர்ர்ட் கட் கீகளைப் பயன்படுத்துவதனால் நம் நேரம் மிச்சமாகிறது. மேலும் கீ போர்டிலிருந்து கைகளை எடுக்காமல் விரைவாக நம்மால் செயல்பட முடியும். இதோ சில ஷார்ட் கட் கீகள்:F : கீயை மட்டும் அழுத்தினால் இமெயில் செய்தியை அடுத்ததற்கு பார்வேர்ட் செய்திட முடியும்./: சர்ச் பாக்ஸில் உங்கள் கர்சரை நகர்த்த Shift+l : இமெயில் மெசேஜைப் படித்ததாக குறியீடு செய்வதற்குShift+u : இமெயில் மெசேஜைப் படிக்காததாகக் குறியிடr : மெயிலை அனுப்பியவருக்கு...

Tuesday, May 12, 2009

SQL SERVER – How to Drop Primary Key Contraint from a Table

First, we will create a table that has primary key. Next, we will drop the primary key successfully using the correct syntax of SQL Server.CREATE TABLE Table1(Col1 INT NOT NULL,Col2 VARCHAR(100)CONSTRAINT PK_Table1_Col1 PRIMARY KEY CLUSTERED (Col1 ASC))GOSecond, try to drop the primary key constraint using following lines./* For SQL Server/Oracle/MS ACCESS */ALTER TABLE Table1DROP CONSTRAINT PK_Table1_Col1GO/* For MySql */ALTER TABLE Table1DROP PRIMARY KEYGO Use the tips...

Thursday, April 23, 2009

Java Script : 'toFixed' Math function to format number

<div style="text-align: justify;">We can use 'toFixed()' function in math to format a number upto required decimal places. The value we get is after rounding the number upto the decimal place required. This function is frequently used in java script. </div>Here is the sample syntax. my_val.toFixed(4)my_val is the variable which stores the number. Here we are formatting the number upto 4 decimal places. Let us try with some examples with different number values. var my_val=11.257; document.write (my_val.toFixed(2)); // output 11.26...

Tuesday, March 31, 2009

Time Management

Time ManagementIn my profile, I mentioned as one of my strength is "Goal Setting". What is goal setting? We should plan our Day,Week & Month well before. As we plan we could achieve our goals. Just planning alone will not lead to complete our goals, we should implement it as per our plan. Time is most important here. If you plan half an hour for a job, you should try to finish it as you planned. First time it may not be possible, but when you practice it in your day today activities, it becomes your routine. After some time, you could finish...

Corporate Dress Code

Corporate Dress CodeCorporate dressing is a powerful tool in the office space. The manner in which you present yourself projects not only your personality but the image of the company too. Appropriate dress and grooming has a profound impact on co-workers as well as external customers.Dress Code Male:- Do’s1. Half /Full sleeve shirt with Tie2. Black/Brown Shoes - Dont’s1. Loud Design/Colour Shirts2. Sports ShoesDress Code Female: - Do’s1. Salvar /Saree’s2. Black/ Brown - Shoes / Chappal- Dont’s1. Tight Dresses and Sleeveless tops.2. Jeans...

Wednesday, March 25, 2009

WCF Performance: Making your service run 3 times faster

Wisely changing WCF defaults can yield a significant improvement in your service performance. The exact changes need to be made and their exact effect are dependent in the scenario. The example below how to speed up a certain service 3 times faster.Read more at http://webservices20.blogspot.com/2009/01/wcf-performance-gearing-up-your-service.Happy Codi...

Wednesday, March 4, 2009

Interview Question WCF - Part 1

What is WCF?Windows Communication Foundation (WCF) is an SDK for developing and deploying services on Windows. WCF provides a runtime environment for services, enabling you to expose CLR types as services, and to consume other services as CLR types.WCF is part of .NET 3.0 and requires .NET 2.0, so it can only run on systems that support it.Windows Communication Foundation is Microsoft's unified programming model for building service-oriented applications...

Tuesday, February 24, 2009

Online convertion tools from C# to VB.NET and VB.NET to C#

Online convertion tools for C# to VB.NET and VB.NET to C#.Use the following tools for converting C# code to VB.NET code and from VB.NET to C# code. Its very efficient and great tools available as of now. These tools are more reliable even for .Net 3.5 except for LINQ.Simply paste in your C# code , and this free utility will automatically convert it to its equivalent in VB.NET.http://www.developerfusion.com/tools/convert/csharp-to-vb/Simply paste in your VB.NET code , and this free utility will automatically convert it to its equivalent in C#.http://www.developerfusion.com/tools/convert/vb-to-csharp/Happy...

Tuesday, February 17, 2009

Interview Question asp.net 3.5 - Part 1

What do you mean by three-tier architecture?The three-tier architecture was comes into existence to improve management of code and contents and to improve the performance of the web based applications. There are mainly three layers in three-tier architecture. the are define as follows PresentationBusiness LogicDatabase1. First layer- Presentation contains mainly the interface code, and this is shown to user. This code could contain any technology that can be used on the client side like HTML, JavaScript or VBScript etc.2. Second layer - is Business...

Thursday, February 12, 2009

உலகின் முதல் இணையதளம்

செவ்வாய் கிரகத்தில் தெரியாது. ஆனால் பூமியில் டிசம்பர் 1990 கணக்குப்படி ஒரே ஒரு இணையதளம் தான் இருந்தது. அதன் விலாசம் info.cern.ch அதற்கு சொந்தக்காரர் www-வை அதாவது html-ஐ கண்டு பிடித்த Tim Berners-Lee ஆவார். இன்றைக்கு வெப் 2.0 வெப் 3.0 வென போய்கொண்டிருக்கின்றோம். ஆனாலும் அன்றைக்கு அவர் முதன்முதலாய் நெய்த அந்த வலைப்பக்கத்தை இன்றைக்கும் பத்திரமாய் வைத்திருக்கின்றார்கள். நீங்கள் கீழ்கண்ட சுட்டிபோய் அதை பார்க்கலாம்.http://www.w3.org/History/19921103-hypertext/hypertext/WWW/TheProject.html1990-ல் இவ்வெளிய பக்கத்தை உருவாக்க உங்களுக்குத் தெரிந்திருந்தால்...

Tuesday, January 6, 2009

Depositfiles Hack - No More "Wait 60 Seconds"!!!

Firstly, you need to be using a Firefox / Mozilla browser.1. Copy the Depositfiles download URL and paste it on your Browsers Address Bar, press Enter..2. Now click on "Free Downloading".3. Next, as soon as the COUNTDOWN Begins...4. Goto your browsers menu bar and click on VIEW ---> PAGE STYLE ---> NO STYLE5. Now the Download Button will appear... click on it and start downloading....No waiting!Thanks : KatforumHappy Downloading....