Asp.net 2.0

The new Series ...... now articles for 2.0 are also available.

Dotnet Interview Question Series 2

Q1)What is View State? Ans)It contains state of control, which asp.net runtime reloaded when the post back operation occurs. Q2)Can you read the View State? Ans) Yes, For Example:Response.write(view... Q3)Can we disable the view state application wide? Ans) by specifying the followig line in web.config<pages viewstate="false">Q4)Can we disable it on page wide? Ans)Yes,by specifying Viewstate="false" in page directive.<% Page viewstate="false"%>Q5)can we disable it for a control?...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Interview Questions Series 1

Q1) Describe the difference between a Thread and a Process? Ans) Process is a collection of multiple threads ans is a unit of allocation. whereas thread is a unit of execution which allow an application to run multiple task, multiple threads in a process share the same virtual memory. Q2)What is a Windows Service and how does its lifecycle differ from a “standard” EXE? Ans) Windows services are the long running Process and have no user interface and control by Service Control Manager. Windows Services...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Microsoft enterprise Library Data Block Part 1.

Hey geeks, Well ... It is always difficult to understand someone's code which you have writted already. I have written a Library called Data Aceess Tools, which is more like a data block of enterprise library. However, enterprise library is quit advance then Data Aceess Tools, which make my interest to work on enterprise library. so let me give you step by step instrucion. now please dont ask me to define the installations step thats too simple, we have been doing the same installation from childhood....
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Reading XML Files Dynamically

Hey Geeks,When it comes to the .net framwork development, We have seen that .net languages can easily manipulate XML and take advantage of all the benifits provided by XML.This article will support both .net 1.1 & .net 2.0, I have written the code in 2.0, but as we know that .net framework 2.0 is providing lots of new objects for XML manipulation. that are out of the scope of this article so let us get down to the business and show you the real code. 'New object of XmlDoc and file loading Dim...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Writing XML File Dynamically

Hey Geeks,Writing xml file in .net application is quit general but I have noticed most of the people do this work in a loong and wrong (in my opinion) way. They write the xml file with the help of dataset which is more like a database...... Yes offcourse resource heavy. So let us make this operation quit simple and easy. consider the following XML Schema. We will write the same schema from our code to a local file. XML Schema : xml version="1.0" encoding="utf-8"?><It... <Item> <ItemId>3ItemId>...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

An Introduction with Microsoft Enterprise Library

Hmm Microsoft Enterprise Library sounds really some thing out of the box invention by Microsoft but being honest this library is just a normal Library no rocket science and extra ordinary stuff behind. Interesting part is that it is Microsoft is not delivering support for the enterprise library because it is created by some developers which might be purchased by Microsoft later on (habit of Microsoft). Anyway lets come out of the Microsoft controversy and let me tell you the six blocks of enterprise...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Invoking a Method with System.reflection

Geeks, Please follow the following code, in this code you need to know the class & method name with parameters of which you are calling from your code. Imports SystemImports System.ReflectionImports System.Reflection.EmitImports System.Threading Module Module1 Dim M Sub Main() yAssembly As Assembly = Assembly.LoadFrom("SamAsm.e... Dim Objtype As Type = MyAssembly.GetType("SamAsmT... Dim ObjMethodInfo As MethodInfo = Objtype.GetMethod("Main") ObjMethodInfo.Invoke(Nothing, New String() {Nothing})...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Dynamically Creating Assemblies with Vb.net (System.Reflection)

Hey .net geeks, Check this code out , it allow you to create your own assembly from code. you just have to do the following and you are on. Imports SystemImports System.ReflectionImports System.Reflection.EmitImports System.Threading Module Module1 Sub Main() 'Creating Assembly Dim assemblyName As AssemblyName = New AssemblyName("SamAsm") Dim assemblyBuilder As AssemblyBuilder = Thread.GetDomain().DefineDy... AssemblyBuilderAccess.RunAn... 'Creating module Dim moduleBuilder...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Reading Another assembly with code (System.Reflection)

Hey geeks. Since last two days I have been doing research, research & research ... hey wait I have not invented any thing just get a way to do System.Reflection. I am using asp.net 2.0 as front end thats why I used TreeView Control. I am sure that there is no sytax in this code which does not supported by .net 1.1 but still I recommend user to go with asp.net 2.0. So here we go with the code. Try ' Loading the assemblyDim ObjAssembly As Assembly = Assembly.LoadFrom(“My... '...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati