Skip to main content


Showing posts from May, 2009

Microsoft Bing –Search Engine by Microsoft

Microsoft on Thursday announced the new search engine bing. They are rebranding there search engine from live search to the bing search and will replace the live search in the future. It’s a good search product and beat some way to Google. Bing is not available to public yet bug we don't have wait too much. From June 1 some user will get the user will get the beta version. It is new version of the old project called kumo from the Microsoft.Microsoft will introduce the new tools with the bing family of search like cash backs on search,price predictor etc. For more details visit the following links

DataSet Vs Datareader

Before some time a reader  vamsi asked me in my increase application performance post that why should i prefer data reader over dataset. Both data reader and dataset are usually use to fetch data from the database but both are having different mechanism for fetching data from database. First we looked into that and then we decide in which condition we need to use dataset and in which condition we need to use data reader.DataReader:Datareader fetch data one by one from the database. You can have one row(record)  at a time in datareader. Once you read next row with read method of the datareader the older record is destroyed from memory and new record will take place instead of it. You can do that only forward only and you can not modify the data. It also require a database connection to stayed open while fetching data. You can use CommandBehavior.CloseConnection property to close connection after data reader finish reading data from database.Dataset:You can call dataset a mini d…

What is the difference between User Control and Custom Control

Custom controls are compiled code(Dlls) easier to use,difficult to create and can be place in toolbox. You can drag and drop controls, Attributes of this control are visually set at design time. A custom control can be used in multiple application as shared DLLS. Any one can copy DLL of custom control in bin directory and add reference and use them. Normally custom controls are designed to provide custom functionality independent of consuming application.User controls are similar to those of asp include files easy to create, can not be placed into the toolbox and dragged dropped from it. A User controls can share single application files. Normally designed to provided functionality that is reusable for the particular application.

JavaScript Events

Following are some of the events that are provided by JavaScriptOnChange:Occurs when user changes values in an input control. In text controls this event fire after user changes focus to other controls OnClick:This event occurs when a user clicks on the button control.This event is also occurs when a form is submitted to server.OnMouseOver:This events occur when user moves the mouse pointer over a control.OnMouseOut:Occurs when the user move mouse pointer over a control.OnKeyUp:Occurs when user release a pressed key.OnSelect:Occurs when the User selects a portion of a text in a user control.OnFocus:Occurs when a control receive focus.OnBlur:Occurs when a focus leaves controls.OnAbort:Occurs when user cancels image download.OnError:Occurs when an image can’t be downloadedOnload:Occurs when a new page finishes downloading.OnUnLoad:Occurs when a page is unloaded(This typically occurs when a new url has been entered_

Authentication and authorization in

Authentication is the process that determines the identity of a user after a user has been authenticated, a developer can determine if the identified use has authorization to proceed.Authorization is the process of determining whether an authenticated user is permitted access to other any part of application or access to specific data view that application provides.There are three types of authentication method is provided by the users.Windows Authentication –Basic, Digest .Forms Authentication.Passport and integrated authentication. Windows Authentication:Windows authentication is used together with IIS authentication. When IIs Authentication is complete,ASP.NET uses the authenticated identity to authorize access. This is default settings.Forms Authentication:In forms authentication request that are no authenticated are redirect to an html form using HTTP client side redirection. The user provides his login information and submits the form. If application the request, the sys…

Increase Performance in application

For every enterprise level application the key to make that application success is the responsiveness of application. ASP.NET also offers great deal of the features for developing web based enterprise application but some times due to avoiding best practice to write application the performance of application performance of application is not so fast as it should be. Here are the some use full suggestion to make your application super fast.Always set debug=”false” in web.config production environment.Always set trace=”false” in web.config production environmentIf you are using 2.0 or higher version then always use precompiled version of your code and also prefer web application project over website. If you are using website then always publish it and then upload that precompiled version of your site in production environment.Always compile your project in Release Mode before uploading application to production environment.Decrease your html kb as much as you can for that use ta…

Microsoft Visutal Studio 2010 Beta Available for download now

We all .NET developers are waiting for the visual studio .NET 2010 for long time. Microsoft just have enabled download for all beta users. Following is the link for downloading the visual sutdio 2010.

From this link you will know all the things related to visual studio 2010.

Following are the some glimpse of the features of visual studion 2010.

F# SupportJava Script code compilation and debuggingJQuery is included in visual studio 2010UMLBetter display of code in editor.Parrallel Programing facilities.

Implementing repository pattern with the entity model

There are lots of ways to implement repository pattern but with entity model you can create repository pattern within 10 to 15 minutes.

If you are creating mvc application then just right click->Model folder->Add->Net Item->select entity data model.

From database explorer right click and drag your tables to your database explorer. It will create a entity class. For example i have created a notes table for my sample and it will create a notes entity class in my entity data model.

After creating the entity class not its time to create a interface for repository pattern which will contain my all the operations related to notes entity.

Following is the interface which we will implement use for repository.

namespace DotNetJapsMVC.Models.Respository.Interface
interface INotesRepository
void CreateNotes(Notes notesToCreate);
void EditNotes(Notes notesToEdit);
void DeleteNotes(Notes notesToDelete);
Notes GetNotes(GuidnoteId);

Which .NET Object Relational Mapper is fastest? In .NET Nhibernate,Linq 2 SQL,Entity Framework Or SubSonic, NHibernate

There are lots of ORM(Object Relational Mapper) tools are available for the Microsoft.NET like linq 2 sql, entity framework, nhibernate, subsonic and so many others. Developer often confuses which technlogy he should choose but i think a developer should deternmine his requiremnt first then he has check the pros and cons of every tool there .

I have used entity framework for my application as i like it most and its easy to use.
Following are some good article which will help you to choose right orm tool for your applications.

Happy Programming...