Beruflich Dokumente
Kultur Dokumente
Immutable type are types in which instance data fields and properties does not change
after the creation of instance in another way we can say that value is changed in same
memory and also helps in performance boosting. On the other hand mutable type are A
type whose instance data fields and properties can be changed when the instance is
created or we can also say when we change the value of Mutable objects the new memory
is created and new value is stored in new memory Most Reference Types are mutable.
1 Creational
2 Structural
3 Behavioral
WCF is also knowon as Indigo . Its a set of .NET technologies for building and running
connected systems comes with asp.net 3.0 and 3.5 and for asp.net 2.0 user have to install
the MS add in component for WCF. . WCF comes up as a replacement for Remoting and
Web service in dotnet. It can use the protocols like Http and TCP comes with default
windows based security feature. The componets WCF are data contract, Service Contract
and the Service programme. WCF can be extended to use protocols other than SOAP to
communicate with Web services
WWF is also known as WORKFLOW .We can automate all the process there may be
some points in a process will require interaction from a human, device or perhaps even
another system. A workflow is the steps in a path a of process that takes into account
points where interactions take place. Initally WWF engine will work in just Visual Studio
2005 for the moment but will soon be included in Biztalk and Sharepoint services.
(1)Predefined attributes such as Assembly Version, which already exist and are accessed
through the Runtime Classes
(2)Custom attributes, which neet to write by the coder himself by extending the
System.Attribute class.
string encode=Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(ss));
Response.Write(encode);
(1)Expression blend support is available in Visual 2008. Its a XAML generator tool for
silverlight application.We can install expression blend as an embedded plug-in in Visual
Studio 2008.
(3)In Visual Studio 2008 we can build game there is a library kits
for games developers. currently this game development kits are available for C++ and
also 2D/3D Dark Matter one image and sounds sets. (4)One of most useful feature of
.net3.5 is we can able to create,run,debug .NET 2.0, .NET 3.0, .NET 3.5 application. We
can also deploy .NET 2.0 application in machine where .NET 2.0 is not installed.
(5)In previous version we have to make a seprate setup of AJAx Control library but in
Visual 2008 there is a built-in AJAX Contrl library.
(6)One of most good feature is that now we can debug Javascript we can set a break point
in javascript.
(7)In VS 2008 you can even edit the nested master pages.
(9)VS 205 has a feature show both design and source code in single window. but both the
windows tiles horizontally.
(10)In VS 2008 we can create, debug and deploy the silverlight applications.
(2)In Visual Studio 2008 we can get extensive web designer and JavaScript tool.
(3)VS 2008 provides game development library kits for games developers
(5)No need to install AJAX control library separately there is a built-in AJAX control
library in this library we can use Menu, TreeView, webparts .
(6)Visual Studio 2008 makes it is simpler with javascript debugging and also use break
point in javascript
(11)C++ SDK Libraries and tools which helps in developing windows based applications
are now inbuilt with VS 2008 and easily configurable
(12)Visual Studio is now in English, Spanish, French, German, Italian, Chinese
Simplified, Chinese Traditional, Japanese, and Korean. Over the next couple of months.
Microsoft is reengineering the MUI which supports nine local languages then you can
even view Visual studio in other 9
(1)- If user used same browser instance to request another page that uses the session state,
you will get the same session ID every time
(2)If Session_OnStart event is used .NET will save the session state even when it is
empty.
User Interface (Client) :- This is mostly the windows user interface or the Web interface
but this has only the UI part.
Mid layer: - Middle tier provides process management where business logic and rules are
executed and can accommodate hundreds of users (as compared to only 100 users with
the two tier architecture) by providing functions such as queuing, application execu tion,
and database staging.
Data Access Layer: - This is also called by the famous acronym "DAL" component. It
has mainly the SQL statement which do the database operation part of the job.
Thread.IsBackground=true.
ThreadPriority.
Highest ThreadPriority.AboveNormal
ThreadPriority.Normal
ThreadPriority.BelowNormal
ThreadPriority.Lowest.
f.Delete();
System.Collections.IEnumerable a = arr.Distinct();
SQL Server and ASP.NET performance tips
ALways use same connection string to get advantage of Connection pooling.Becuase
connection polling is not used for new connection.
It derives from Exception but we cannot extend its functionality.we should derive our
custom application exceptions from Application Exception.Application exception is used
when we want to define user defined exception, while syste
End Sub
System.Diagnostics.Process.Start("msimn.exe");
System.Diagnostics.Process.Start("Notepad.exe")
Web custom controls:-Web Custom Control is typical to create and gud for dynamic
layout and another thing is it have full tool support for user and a single copy of control is
required because it is placed in Global Assembly cache.
b)Multivalued cookies. These are used in the way collections are used example
request.cookies(�CookiName�)(�UserName�)=�dotnetquestionMahesh�
request.cookies(�CookiName�)(�UserID�)=�interview″.
what is Viewstate
View state is used by the ASP.NET page framework to automatically save the values of
the page and of each control just prior to rendering to the page. When the page is posted,
one of the first tasks performed by page processing is to restore view state. State
management is the process by which you maintain state and page information over
multiple requests for the same or different pages.
* Query strings
* Hidden fields
* Cookies
* Application state
* Session state
Use the View State property to save data in a hidden field on a page. Because ViewState
stores data on the page, it is limited to items that can be serialized. If you want to store
more complex items in View State, you must convert the items to and from a string.
ASP.NET provides the following ways to retain variables between requests:
Context.Handler object Use this object to retrieve public members of one Web form�s
class from a subsequently displayed Web form.
Query strings Use these strings to pass information between requests and responses as
part of the Web address. Query strings are visible to the user, so they should not contain
secure information such as passwords.
Query strings Use these strings to pass information between requests and responses as
part of the Web address. Query strings are visible to the user, so they should not contain
secure information such as passwords.
View state ASP.NET stores items added to a page�s ViewState property as hidden
fields on the page.
Session state Use Session state variables to store items that you want keep local to the
current session (single user).
Application state Use Application state variables to store items that you want be available
to all users of the application.