hwaheed

Stories kicked by hwaheed

Unity - Dependency Injection and Inversion of Control Container(dotnethitman.spaces.live.com)

submitted by misbaharefinmisbaharefin(845) 3 years, 8 months ago

Dependency injection is a programming technique to reduce component coupling. Dependency injection is also commonly known as “inversion of control” or IoC or sometimes as The Hollywood Principle - "Don’t call us, we’ll call you”. The goal of dependency injection is to separate the concerns of how a dependency is obtained from the core concerns of a boundary. This improves reusability by enabling components to be supplied with dependencies which may vary depending on context. read more...

add a comment |category: |Views: 368

tags: another

Table-Value Parameters in SQL Server 2005(dotnethitman.spaces.live.com)

submitted by misbaharefinmisbaharefin(845) 3 years, 9 months ago

In pre-SQL Server 2005 in order to pass in a set of values one had to create a temporary table, populate it with data using INSERT, and then just use it in the procedure or function since they are created for the current session and are available to all processes in that session. I did a blog on how to pass in Table-Value Parameters in SQL Server 2008 but what if we have a need to pass in multiple rows of data to a T-SQL statement, or a routine such as stored procedure or function in SQL Server 2005? read more...

add a comment |category: |Views: 224

tags: another

Maintain Browser History with AJAX (weblogs.asp.net)

submitted by hwaheedhwaheed(245) 3 years, 9 months ago

The article aims at understanding History Points in AJAX that allow the browser to keep track of AJAX steps and therefore move through them using forward and backward buttons. read more...

add a comment |category: |Views: 122

tags: another

Forms Authentication Timeout vs Session Timeout(dotnethitman.spaces.live.com)

submitted by misbaharefinmisbaharefin(845) 3 years, 10 months ago

If we set the forms authentication and session timeouts to 10 minutes and after the 10th minute the user clicked on any link the app would redirect the user to the login page but the session was not abandoned i.e. the forms authentication ticket had expired but not the session state timeout. read more...

add a comment |category: |Views: 419

tags: another

Don't Use SELECT *(dotnethitman.spaces.live.com)

submitted by misbaharefinmisbaharefin(845) 3 years, 10 months ago

I've seen many developers actually using and abusing SELECT * FROM queries. SELECT * query not only returns unnecessary data, but it also can force clustered index scans for query plans because columns in the SELECT clause are also considered by the optimizer when it identifies indexes for execution plans. read more...

1 comment |category: |Views: 370

tags: another

ASP.NET Performance Tips(weblogs.asp.net)

submitted by hwaheedhwaheed(245) 3 years, 10 months ago

The article lists few of some of the many performance tweaks that can be implement to boost up ASP.NET performance. read more...

3 comments |category: |Views: 591

tags: another

Difference between LINQ to SQL and the Entity Framework(dotnethitman.spaces.live.com)

submitted by misbaharefinmisbaharefin(845) 3 years, 10 months ago

LINQ to SQL and the Entity Framework have a lot in common, but each have features targeting different scenarios. read more...

add a comment |category: |Views: 489

tags: another

Dependency Injection: Factory vs Container - Unity(dotnethitman.spaces.live.com)

submitted by misbaharefinmisbaharefin(845) 3 years, 10 months ago

As application size and complexity increase it becomes more and more difficult to reuse existing components and integrating these components to form an interconnected architecture because of the dependencies of the components. One way to reduce dependencies is by using Dependency Injection, which allows you to inject objects into a class, rather than relying on the class to create the object itself. read more...

add a comment |category: |Views: 223

tags: another

Serialize & Deserialize JSON Data (weblogs.asp.net)

submitted by hwaheedhwaheed(245) 3 years, 10 months ago

The article features on the in built support in .NET and JavaScript for JSON serialization, that can further be used for developing AJAX web services. read more...

add a comment |category: |Views: 422

tags: another

SQL Server 2008 Data Compression Part-1(weblogs.asp.net)

submitted by hwaheedhwaheed(245) 3 years, 10 months ago

The article provide a breif introduction of new data compression feature in SQL Server 2008. read more...

add a comment |category: |Views: 24

tags: another

Preventing SQL injection attacks in ASP.NET(dotnethitman.spaces.live.com)

submitted by misbaharefinmisbaharefin(845) 3 years, 11 months ago

SQL injection can occur when an application uses input to construct dynamic SQL statements or when it uses stored procedures to connect to the database. Conventional security measures, such as the use of SSL and IPSec, do not protect your application from SQL injection attacks. Successful SQL injection attacks enable malicious users to execute commands in an application's database. You should always be reviewing your code to find these or other security vulnerabilities; remember all type of attacks start with some input, and your first line of defense should be input validation using both client-side and server-side validation. read more...

add a comment |category: |Views: 19

tags: another

Create AJAX Validator Control(dotnethitman.spaces.live.com)

submitted by misbaharefinmisbaharefin(845) 4 years ago

Imagine that you are creating a website registration form and you need to validate a Login ID or Email field. You want to make sure that the Login ID or Email entered does not already exist in the database... read more...

add a comment |category: |Views: 53

tags: another