Monday 23 November 2015

Dynamically add controls to PlaceHolder control at run time in asp.net.

Introduction:

I will explain about How to dynamically add controls to PlaceHolder control at run time
in asp.net.

Explanation:

     I am going to create dynamic textbox controls to placeholder with
using PlaceHolder.Controls.Add method.

1.First create placeholder control to source code.

 <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>

2.Create c# code for creating  controls dynamically to place holder.


AdRotator control in Asp.Net

Introduction:

   I will explain here about adrotator control and how to show xml based advertisment file with using adrotator control.

Explanation:

  Adrotator control mainly used to display advertisement files in asp.net page.You can show images and text using adrotator control.You can display advertisment using xml file here i do that how to show advertisment with using xml file.

Global.asax file in Asp.Net.

Introduction:
 
I will explain about what is global.asax file and use of global.asax file.
 
Explanation:

If your application does not have global.asax file you can add  a new item to your ASP.NET application, you get the Add New Item dialog. From here, you can see that you can add a Global Application Class to your applications. This adds a Global.asax file. This file is used by the application to hold application-level events, objects, and variables - all of which are accessible application-wide.

Your ASP.NET applications can have only a single Global.asax file. This file supports a number of items. When it is created, you are given the following template:

Sunday 22 November 2015

Asp.Net Page Directives

Introduction:

Here we are going to discuss about asp.net page directives here I try to explain about different page directive of asp.net page.

Explanation:

 ASP.NET directives are something that is a part of every ASP.NET page. You can control the behavior of your ASP.NET pages by using these directives. Here’s an example of the Page directive:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"
    Inherits="_Default" %>

Eleven directives are at your disposal in your ASP.NET pages or user controls. You use these directives in your applications whether the page uses the code-behind model or  the inline coding model.
Basically, these directives are commands that the compiler uses when the page is compiled. Directives are simple to incorporate into your pages. A directive is written in the following format: 

<%@ [Directive] [Attribute=Value] %>

Life Cycle and Events of Asp.Net Page

Introduction:

I will explain here about life cycle and what are the events occur in the life cycle of page.

Explanation:

 Life Cycle of Page

Web page request comes from browser.

•    IIS maps the ASP.NET file extensions to ASPNET_ISAPI.DLL, an ISAPI extension provided with ASP.NET.

•    ASPNET_ISAPI.DLL forwards the request to the ASP.NET worker process (ASPNET_WP.EXE or W3P.EXE).

•    ISAPI loads HTTPRuntime and passes the request to it. Thus, HTTP Pipelining has begun.

•    HTTPRuntime uses HttpApplicationFactory to either create or reuse the HTTPApplication object.

Saturday 21 November 2015

Assembly of dot net



Introduction:

I will explain here what assembly, type of assembly and those operations.

Explanation:

What is an assembly?

•An Assembly is a  logical unit of code
•Assembly physically exist as DLLs or EXEs
•One assembly can contain one or more files
•The constituent files can include any file types like image files, text files etc. along with DLLs or EXEs
•When you compile your source code by default the exe/dll generated is actually an assembly
•Unless your code is bundled as assembly it can not be used in any other application
•When you talk about version of a component you are actually talking about version of the assembly to which the component belongs.
•Every assembly file contains information about itself. This information is called as Assembly Manifest.

Dot Net FrameWork


Introduction:
 
Here I going to explain about basic of dot net framework it is include architecture, security, memory management and version. 
 
Explanation:

 Framework

The Microsoft .NET Framework is a software framework that can be installed on computers running Microsoft Windows operating systems. It includes a large library of coded solutions to common programming problems and a virtual machine that manages the execution of programs written specifically for the framework. The .NET Framework supports multiple programming languages in a manner that allows language interoperability, whereby each language can utilize code written in other languages; in particular, the .NET library is available to all the programming languages that .NET encompasses. The .NET Framework is a Microsoft offering and is intended to be used by most new applications created for the Windows platform. In order to be able to develop and not just run applications for the Microsoft .NET Framework 4.0, it is required to have Microsoft's SDK for Windows 7 and .NET Framework 4 (or newer) or Visual Studio 2010 installed on your computer.