Posts

launch of Visual Studio 2010 and .NET Framework 4 Beta 1

Microsoft Launched Visual Studio 2010 Beta 1. For more information please visit http://blogs.msdn.com/jasonz/archive/2009/05/20/general-download-of-vs2010-net-framework-4-0-beta-1.aspx Can also download from http://msdn.microsoft.com/hi-in/vstudio/dd582936(en-us).aspx One new language suite F# http://msdn.microsoft.com/hi-in/fsharp/default(en-us).aspx The final release will take time to be launched. I really want to hear your feedback! I will definitely follow blog comments, but the best way to give us that feedback is through the Visual Studio 2010 / .NET Framework 4 Beta 1 site . You can get your issues and suggestions routed to the teams directly by going through this route.

Remote Desktop Access: Team viewer, Remote, Desktop, Sharing, Files Sharing, Data Sharing, Team Sharing, Team Meetings

Image
In today’s world of technology remote desktop sharing has become a common way of working on remote pc’s or servers. We all know how to access Remote desktop, but what if I have to share my desktop to give a demo of application or module or anything. Suppose I have to give a simple demo to a friend, like how to create a Power Point Slides. Now, the first idea is to create a document or to create a pictorial document or create a video and upload to youtube.com or some other alternate. But here is the solution. You can use Team Viewer http://www.teamviewer.com/download/index.aspx Install team Viewer to both the PC (From where you have to access and to which you have to access) Ask for the Id and password of the machine which you want to access. Now enter ID into box and click connect to partner. If ask for password provide password. Now, you can view desktop of your partner or friend. You can also take control into your hand. You can also view more option like file transfer etc. For mor...

How to use DateDiff Function in C#

How to use DateDiff Function in C#. As earlier in ASP and VB6 we have too may conversion and date time functions. After working for so many years, we all had become habitual of working with the same. We have almost all the functions available in c#. But, sometimes lost control on some functions. Like for datediff WE have to write so much code in C#. At this moment we just remember functions of VB. Now, say thanks to Microsoft… What we can use is:- Add a reference of Microsoft.VisualBasic and access the DateDiff function like following ex. long nYears = Microsoft.VisualBasic.DateAndTime.DateDiff(Microsoft.VisualBasic.DateInterval.Year, dt, dtNow, Microsoft.VisualBasic.FirstDayOfWeek.System, Microsoft.VisualBasic.FirstWeekOfYear.System); By using the reference of visual basic you can use any function of Visual Basic or vice-versa.

Client side validations in C# using javascript

Client-side validation uses the same error display mechanism as server-side checking. Validating input data on web pages is usually a function performed by the server. The web page allows the user to enter data, and when the Submit button is pressed, the browser wraps up the data into an HTTP request and sends it to the server. The server checks each data field to make sure it is valid, and if any problems are found, a new form along with error messages is sent back to the browser. Wouldn't it be much more useful if problems could be detected in the browser before a server request is made? This approach would provide two primary advantages. It would lighten the load on the server, and, more importantly, it would notify the user of a problem with a data field almost immediately after he or she entered the bad data. This supports the truism that errors are cheapest to fix the closer the detection is to the original creation of the error. For example, if there is a problem with a zip ...

How to make Human Verification Code or Image Verification Code in c#.net

Now, on many sites we can see image verification or human verification codes. By entering the verification code shown on the web page when a user sign up, the web site or application can prevent automated registrations. This reduces system loads and ensures better performance and security of web site or application. This tutorial will show you how to create the randomly generated verification code in ASP.NET 2.0 and C#. Now, questions arises how to make these code. Now, time to say thanks to .net who had given a wonderfull library with the name of System.Drawing. Before stating any thing import System.Drawing. Copy this code: Using System.Drawing; In order to create a random verification code, we create a method called CreateRandomCode at first public string CreateRandomCode(int codeCount) { string allChar = "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z"; string[] allCharArray = allChar.Split(','); string randomC...

How to encrypt and decrypt a file by using Visual C#

Encryption and decryption The System.Security.Cryptographic namespace in the Microsoft .NET Framework provides a variety of tools to help you with encryption and with decryption. The CryptoStream class is one of the many classes that is provided. The CryptoStream class is designed to encrypt or to decrypt content as it is streamed out to a file. You can download working example also. This is a basic example so, if you have any more questions please let me know.

How to Compare Files -File Compare

In contemporary world we have so many powerfull tools for version control like VSS, Tortoise SVN etc. With help of there tools we can check different version of file with dates and other information. But, what if I have to simply compare two files like notepad, word etc. Let's take an simle example. I had made a file .cs file a year ago. I had made so many changes in that a year. Now I am facing some problem in my code. I have only option to check older versions of my file, which is a time consuming job. Means after each version I have to build and test my code. Let me suggest you a simple solution which I had found on net using scootter softwares (Download Beyond Compare) Beyond Compare allows you to quickly and easily compare your files and folders. By using simple, powerful commands you can focus on the differences you're interested in and ignore those you're not. You can then merge the changes, synchronize your files, and generate reports for your records. You can co...