Senator Guerra Souty original series calendar,replica hublot blue steel peach pointer collocation of rolex replica Rome digital scale, track type minute replica watches scale shows that the classical model is swiss replica watches incomparable, wearing elegant dress highlights.
mr-ponna.com

 

YOU ARE HERE: HOME Articles Page 2

ASP.NET, C# and SQL Server articles and tutorials

Read ASP.NET, C# and SQL Server articles

Sort by:

<< Start < Prev 1 2 Next > End >>
Page 2 of 2

ASP.NET, C# and SQL Server articles and tutorials

# articles: 18  


.NET Web Services and Security

View(s): 6279

.NET Web Services and Security

By Juval Lowy

When you use .NET to build a Web service, you rely on the built-in security support in ASP.NET and Internet Information Services (IIS). While this support makes developing secure ASP.NET Web Forms a breeze, it may require some work to develop and consume secure Web services. The problem is that ASP.NET and IIS security assumes there is a user on the other side of the wire, and that the user can type a user name and password into a dialog. Of course, with Web services there is no user involved, because Web services connect a client (an object) to a remote object (the Web service). This means that client-side developers have to provide your Web service with security credentials either explicitly or implicitly. .NET offers two security options to Web service developers: rely on Windows security or provide custom authentication. This article describes these two options and their different flavors and provides a side-by-side comparison of the security techniques.

Windows-Based Security

Using Windows-based security requires that the calling client application provide the credentials of an account on the server (or on the domain server). As a result, Windows security is most appropriate for intranet applications that use Web services to interact across a well-administered corporate network. This is because typically you have relatively fewer clients in an intranet application than in an Internet application. However, if managing a large number

(Continued...) View Full Aritlce


  Last updated on Monday, 23 December 2013
  Author: Mr. Ponna
3/5 stars (2 vote(s))



Understanding Object Lifetime

View(s): 30334

Understanding Object Lifetime

.NET objects are allocated in a memory called managed heap, where they will be automatically destroyed by the garbage collector.

Before going into details you have to know about the class, object, reference, stack and heap.

A class is nothing but a blueprint that describes how an instance of this type will look and feel in memory. Classes, of course, are defined within a code file (which in C# takes a *.cs extension).

Consider a simple Car class defined in a C# Console Application project named SimpleGC:

    //Car.cs
    public class Car
    {
        private int currSp;
        private string petName;
        public Car() { }
        public Car(string name, int speed)
        {
            petName = name;
            currSp = speed;
        }

        public override string ToString()
        {
            return string.Format("{0} is going {1} MPH",
            petName, currSp);
        }
    }

Once a class is defined, you can allocate any number of objects using the C# new keyword.

Understand, that the new keyword returns a reference to the

(Continued...) View Full Aritlce


  Last updated on Tuesday, 03 December 2013
  Author: Kishore Kumar
4/5 stars (15 vote(s))



Beginner's Guide: How IIS Process ASP.NET Request

View(s): 4408

Beginner's Guide: How IIS Process ASP.NET Request

Introduction

When request come from client to the server a lot of operation is performed before sending response to the client. This is all about how IIS Process the request.  Here I am not going to describe the Page Life Cycle and there events, this article is all about the operation of IIS Level.  Before we start with the actual details, let’s start from the beginning so that each and every one understand it's details easily. 

What is Web Server ?

When we run our ASP.NET Web Application from visual studio IDE, VS Integrated ASP.NET Engine is responsible to execute all kind of asp.net requests and responses.  The process name is "WebDev.WebServer.Exe" which actually take care of all request and response of an web application which is running from Visual Studio IDE.

Now, the name “Web Server” come into picture when we want to host the application on a centralized location and wanted to access from many locations. Web server is responsible for handle all the requests that are coming from clients, process them and provide the responses.

http://www.dotnetfunda.com/UserFiles/ArticlesFiles/Abhijit%20Jana_634041500763171406_Firstone.JPG

What is IIS ?

IIS (Internet Information Server) is one of the most powerful web servers from Microsoft that is used to host your ASP.NET Web application. IIS has it's own ASP.NET Process Engine  to handle the ASP.NET request. So, when a request comes from client to server, IIS takes that request and  process it and send response back to clients

(Continued...) View Full Aritlce


  Last updated on Wednesday, 13 November 2013
  Author: Kishore Kumar
4/5 stars (8 vote(s))



Behind the Scenes - Discover the Design Patterns You're Already Using in the .NET Framework

View(s): 6207

Behind the Scenes - Discover the Design Patterns You're Already Using in the .NET Framework

By Rob Pierry

This article discusses:

  • Common design patterns used in .NET Framework classes
  • Patterns used to implement the ASP.NET programming model and request pipeline
  • How patterns make programming tasks faster and easier

Contents

  • Observer Pattern
  • Iterator Pattern
  • Decorator Pattern
  • Adapter Pattern
  • Factory Pattern
  • Strategy Pattern
  • Composite Pattern in ASP.NET
  • Template Method Pattern
  • Patterns in the ASP.NET Pipeline
  • Intercepting Filter Pattern
  • Page Controller Pattern
  • Other Web Presentation Patterns in ASP.NET


In this article, I'll cover a basic overview of several common design patterns and how they are used in the BCL and other areas of the .NET Framework. In doing so, you can discover some of the motivation for why the Framework is designed the way it is, as well as make the abstract concepts of the patterns themselves more intuitively understandable.

If you are already familiar with some of these patterns, feel free to read about those you aren't familiar with, since each section is relatively independent. The section on ASP.NET-related patterns requires familiarity with the request pipeline, a basic overview of which is provided in that section.

Within the .NET Framework, the use of some patterns is so prevalent that they have been built into programming languages themselves, instead of just represented by the class libraries. The first two patterns I will discuss, the Observer and the Iterator, are supported

(Continued...) View Full Aritlce


  Last updated on Thursday, 24 October 2013
  Author: Mr. Ponna
4/5 stars (4 vote(s))



ASP.NET Caching Basics

View(s): 5058

I will not bore you about "why caching is so great"; it is assumed you already understand, at least in theory, what caching can buy you as an ASP.NET developer.

At a minimum a developer wants to be able to cache some (or possibly all) of the pages in her ASP.NET Application. The simplest way to achieve this is to add the @ OutputCache directive to the top of the .aspx file of each page:

<%@ OutputCache Duration="5" VaryByParam="none" %>

Now, that was easy, wasn't it? But - exactly what does it do? You are specifying how long the page is to be retained in the Cache with the Duration attribute, in seconds. In the above example, this page will be rendered on the first request for it, and stored in Cache. For five seconds, all subsequent requests for this page will be served from the Cache, which is hugely faster than having to go through the entire Page lifecycle, possibly combined with database access, re-render and finally serve the page HTML to the client. After five seconds, the page will again be rendered (and once again, stored in the Cache).

The VaryByParam attribute is used to define parameters that determine which cached copy of a page should be sent to the browser. If your page doesn't change, you can set this to "none".

Caching Pages Based on QueryString items

If the contents of one of your pages can vary based on the value of certain items on the querystring, which is a common technique in ASP.NET, you can populate the VaryByParam attribute with a semicolon-delimited

(Continued...) View Full Aritlce


  Last updated on Friday, 04 October 2013
  Author: Mr. Ponna
5/5 stars (1 vote(s))



What is cookie less session? How it works?

View(s): 44413

When a user visits a Web site for the first time, the site creates a unique ID, known as a Session ID. The Session ID is unique for that current Session, making it possible for the server to keep track of the user's current Session information.

Generally this Session ID will be stored in cookie, for every request, browser will send this cookie back to server and will track the user session and restore correct user session back for that request.

What happens if cookies are not supported? ASP.NET server fails to track the session information. Then cookieless sessions are the best option. If you set the cookieless attribute of the sessionState element to "true" in your web.config, you will notice that sessions still work perfectly.

<sessionState cookieless="true" />

So, how it is tracking session information without cookies? Where is ASP.NET storing the session ID when cookies are not being used? In this case, the session ID is inserted in a particular position within the URL. Imagine you request a page like http://yourserver/folder/default.aspx, the slash immediately preceding the resource name is expanded to include parentheses with the session ID stuffed inside, as below.

http://yourserver/folder/(session ID here)/default.aspx

The session ID is embedded in the URL and there's no need to persist it anywhere.

Below are possible options to set cookieless session state.

  1. UseCookies - Cookies are always used, even if the browser or device doesn’t support cookies or
(Continued...) View Full Aritlce


  Last updated on Saturday, 14 September 2013
  Author: Mr. Ponna
3/5 stars (31 vote(s))



Overview ASP.NET Application Folders (About Special folders in ASP.NET)

View(s): 9966

Beginner's Guide to ASP.NET Application Folder

 

This Article Describe you about Special folders in ASP.NET like App_Code, App_Theme, App_Data, etc..

ASP.Net 2.0 uses file-based approach. It's means all class files, resource files, Data, Folder are maintain in a hierarchical way. If we are working with ASP.Net 2.0, we can add files and folder from "Add Items" Options. If we look at a sample application hierarchy, it will looks following figure.

Description: Description: Description: beginn1.jpg

we can add as many as files and folder (as per our requirements ) with our solutions.  And it's doesn't need to recompile them each and every time when they are added. Its Asp .NET’s overhead to dynamically compiled them when required. So, what ASP.Net 2.0 does, it contain a defined folder structure, contains files (Classes, Images, Resources etc..), compile them dynamically and even we can access those files throughout the application. ASP.Net Provides some special folder also to maintain files and resources. Let's see the advantages of using those folder .

Advantages of ASP.NET Application Folder 

Following are the main advantages of use of ASP.Net Application Folder

  • We can maintain resources (Classes, Images, Code, DatabasesThemes) in a organized way, which give us to developed and maintain sites easily.
  • All files and folder are accessible by through the application.
  • We can add as many files as possible as per our requirements.
  • Files
(Continued...) View Full Aritlce


  Last updated on Sunday, 25 August 2013
  Author: Mr. Ponna
4/5 stars (6 vote(s))



SQL Server 2005 Triggers

View(s): 6182

Introduction

Now Microsoft SQL Server 2005 is integrated with Microsoft .NET Framework Common Language Runtime (CLR), so we can use any .NET Framework language to create database objects. The CLR provides the execution environment for all the server side objects that are created using a .NET language. This means the database developers can now perform tasks that were impossible or difficult to achieve with T-SQL alone. Especially when working with large amounts of server code, developers can easily organize and maintain their code investments.

This article covers different types of triggers supported by Microsoft SQL Server 2005 with basic ideas about them with an example. It then describes the step-by-step approach to create a CLR trigger (a DML type).

What is Trigger?

A trigger is a Database object just like a stored procedure or we can say it is a special kind of Stored procedure which fires after (/before) a specified language event executes. More specifically, it is for the object which is attached to a Table or View or Database schemas for tracking the operations on them. The main difference between a trigger and a stored procedure is that the former is attached to a table or view and is fired only when an INSERT, UPDATE, and/or DELETE occurs, while a stored procedure executes at any time when it is called. 

Types of Triggers

There are some added types in SQL Server 2005 for triggering actions:

1.    DML Triggers

(Continued...) View Full Aritlce


  Last updated on Monday, 05 August 2013
  Author: Mr. Ponna
4/5 stars (9 vote(s))

<< Start < Prev 1 2 Next > End >>
Page 2 of 2
Register Login Ask Us Write to Us Help