Posts Tagged .NET

SuzanneASP.NET 4 and Visual Studio 2010 Released

Thursday, April 15th, 2010

ASP.NET 4 and Visual Studio 2010 are released, which include lots of new features and improvements that enable the developers to build, deploy and manage great Web sites and applications.

Need to Build Better Websites-

Visual Studio 2010
Visual Studio 2010 makes it easier to edit, search, and navigate code. Improved VB and C# Intellisense makes it even easier to find and use classes within the .NET Framework. Improved JavaScript IntelliSense enables better AJAX development.

New code navigation and visualization features enable to find quickly and navigate large projects and visualize dependencies across your code-base. Improved unit testing, debugging and profiling help support builds robust applications.

ASP.NET Web Forms
With ASP.NET 4, Web Forms controls now render clean, semantically correct, and CSS friendly HTML markup. Built-in URL routing functionality allows you to expose clean, search engine friendly, URLs and increase the traffic to your Website.
ViewState within applications is smaller and can now be more easily controlled. And more controls, including rich charting and data controls, are now built-into ASP.NET 4 and enable you to build applications even faster.

ASP.NET MVC
ASP.NET MVC 2 is now built-into VS 2010 and ASP.NET 4, and provides a great way to build web sites and applications using a model-view-controller based pattern. ASP.NET MVC 2 adds features to easily enable client and server validation logic, provides new strongly-typed HTML and UI-scaffolding helper methods, enables more modular/reusable applications, and facilitates a clean unit testing and TDD workflow with Visual Studio 2010.

Web Deployment
Visual Studio 2010 makes deploying your Websites easy. You can now publish your Websites and applications to a staging or production server from within Visual Studio itself.

Visual Studio 2010 makes it easy to transfer all your files, code, configuration, database schema and data in one complete package. VS 2010 also makes it easy to manage separate web.config configuration files settings depending upon whether you are in debug, release, staging or production modes.

Tags: , , , , , ,
Posted in New Product Release | No Comments »

NaggieRemove unprintable or invisible characters from string in VB.net

Monday, April 12th, 2010

This function will help to remove all invisible characters in vb.net string

Public Function Remove(ByVal str As String) As String
        Remove = str
        Dim x As Long
        ' remove all non-printable characters
        While InStr(Remove, vbCrLf) > 0
            Remove = Replace(Remove, vbCrLf, String.Empty)
        End While

        While InStr(Remove, vbTab) > 0
            Remove = Replace(Remove, vbTab, String.Empty)
        End While

        For x = 0 To 31
            While InStr(Remove, Chr(x)) > 0
                Remove = Replace(Remove, Chr(x), String.Empty)
            End While
        Next x

        For x = 127 To 255
            While InStr(Remove, Chr(x)) > 0
                Remove = Replace(Remove, Chr(x), String.Empty)
            End While
        Next x

        'Dim s = New String(" ", 2)
        'While InStr(Remove, s) > 0
        '    Remove = Replace(Remove, s, " ")
        'End While
    End Function

http://www.all1social.com

http://get-a-designer.com

http://www.all1sourcetech.com

Tags: , , , ,
Posted in Purely Technical | No Comments »

NaggieHow to generate readable/remeberable random password?

Saturday, March 27th, 2010

<?php
$randPwd = generatePassword(12);
?>

Fast, simple, and easy way to generate readable/remeberable random password

<?php
//Generates readable/rememberable random password.
function generatePassword($length = 6) {
$chars = array(”a”, “b”, “c”, “d”, “e”, “f”, “g”, “h”, “i”, “j”, “k”, “l”, “m”, “o”, “p”, “r”, “s”, “t”, “u”, “v”, “x”,”y”, “z”);
$vocals = array(”a”, “e”, “i”, “o”, “u”);
$password = “”;
mt_srand ((double) microtime() * 1000000);
for ($i = 1; $i <= $length; $i++)
$password .= ($i % 2 == 0)?$chars[mt_rand(0, count($chars) - 1)]:$vocals[mt_rand(0,count($vocals) - 1)];
return $password;
}
?>
<?php

//Generates readable/rememberable random password.
function generatePassword($length = 6) {
       $chars = 
        array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "o", "p", "r", "s", "t", "u", "v", "x","y", "z");
       $vocals = array("a", "e", "i", "o", "u");
       $password = "";
       mt_srand ((double) microtime() * 1000000);
       for ($i = 1; $i <= $length; $i++)
           $password .= ($i % 2 == 0)?$chars[mt_rand(0, count($chars) - 1)]:$vocals[mt_rand(0,count($vocals) - 1)];
return $password;
}
?>

http://get-a-designer.com

http://www.all1sourcetech.com

Tags: , , ,
Posted in Purely Technical | No Comments »

NaggieVisual Studio 2010 clean application level web.config

Friday, February 19th, 2010

Introducing new small improvement that has been made in Visual Studio 2010 & .NET 4 to reduce the size of the ASP.NET application level web.config 3.0 and 3.5 web.config

As ASP.NET technology evolved, the application level Web.config had new things added to it. Since the earlier frameworks were using the same set of machine level configuration files, incremental feature that was added subsequent to the 2.0 release resulted in additional config settings included in the file.
.NET 4 web.config

With .NET 4, the web.config is tremendously reduced in size to improve the simplicity of ASP.NET

The config settings have been moved down to the machine config file. This includes registers all of the ASP.NET tag sections, handlers, modules and settings for the following:
• ASP.NET AJAX
• ASP.NET Dynamic Data
• ASP.NET Routing
• ASP.NET Chart Control

You can look at the trimmed down web.config by creating a .Net 4 ‘ASP.NET Empty Web Application’ in Visual Studio 2010.

Following is the web.config file for .NET 4 C# ‘ASP.NET Empty Web Application’:

image thumb Visual Studio 2010 clean application level web.config

The config file above has settings to tell ASP.NET to enable debugging by default for the application and provides the version of .NET framework to use.

http://www.all1tunes.com

http://www.all1social.com

Tags: , , , , , , ,
Posted in Microsoft Technology, Purely Technical | No Comments »

SuzanneEcno jit in net framework

Thursday, February 18th, 2010

EconoJITstands for Just-in-Time. In .NET all the lanuages use a runtime compiler known as CLR (Common Language Runtime). All the languages wishing to target CLR need to comply with CTS or Common Type System.

CLR compiles the code written in .NET based languages to IL code or Intermediary Language or MSIL. MSIL is a set of instructions that can be compiled into native mahcine level code as a second and final step of compilation.

This MSIL code is JIT compiled i.e compiled on the need-to basis as and when called. The runtime provides three compilers – PreJIT, standard JIT and EconoJIT.

PreJIT compiles the entire code. EconoJIT compiles only those methods that are being called during runtime. These compiled methods are removed later when not required.

StandardJIt is like EconoJIt except that the compiled methods are not removed but kept in cache for next run.

Tags: , , , , , ,
Posted in Microsoft Technology | No Comments »