Beruflich Dokumente
Kultur Dokumente
NET
VC#.NET
VC++.NET
JSCRIPT.NET
.NET Class Library Visual System Data I/O Security Studio.NET Common Language Runtime Common Type System
Operating System
Same..
NET
framework
2.0:
It brings a lot of evolution in class of the framework and refractor control including the support of Generics Anonymous methods Partial class Nullable type The new API gives a fine grain control on the behavior of the runtime with regards to multithreading, memory allocation, assembly loading and more Full 64-bit support for both the x64 and the IA64 hardware platforms New personalization features for ASP.NET, such as support for themes, skins and web parts. .NET Micro Framework
.NET
framework
3.0:
Also called WinFX,includes a new set of managed code APIs that are an integral part of Windows Vista and Windows Server 2008 operating systems and provides Windows Communication Foundation (WCF), formerly called Indigo; a serviceoriented messaging system which allows programs to interoperate locally or remotely similar to web services. Windows Presentation Foundation (WPF), formerly called Avalon; a new user interface subsystem and API based on XML and vector graphics, which uses 3D computer graphics hardware and Direct3D technologies. Windows Workflow Foundation (WF) allows for building of task automation and integrated transactions using workflows. Windows CardSpace, formerly called InfoCard; a software component which securely stores a person's digital identities and provides a unified interface for choosing the identity for a particular transaction, such as logging in to a website
.NET
framework
3.5:
It implement Linq evolution in language. So we have the folowing evolution in class: Linq for SQL, XML, Dataset, Object Addin system p2p base class Active directory ASP.NET Ajax Anonymous types with static type inference Paging support for ADO.NET ADO.NET synchronization API to synchronize local caches and server side datastores Asynchronous network I/O API Support for HTTP pipelining and syndication feeds. New System.CodeDom namespace.
An n-Tier application usually has three tiers, and they are called the presentation tier, the business tier and the data tier. Let's have a look at w responsible
Presentation Presentation Layer is the layer responsible for displaying user interface and "driving" that interface using business tier classes and objects includes ASPX pages, user controls, server controls and sometimes security related classes a
Business Business Tier is the layer responsible for accessing the data tier to retrieve, modify and delete data to and from the data tier and send th presentation tier. This layer is also responsible for processing the data retrieved and sent to the prese
In ASP.NET it includes using SqlClient or OleDb objects to retrieve, update and delete data from SQL Server or Access databases, and also p retrieved to the presentation layer in a DataReader or DataSet object, or a custom collection object. It might also include the sending of just an integer would have been calculated using the data in the data tier such as the number of records a
BLL and Often this layer is divided into two sub layers: the Business Logic Layer (BLL), and the Data Access Layers (DAL). Business Logic Layers Access Layers, meaning BLL uses DAL classes and objects. DAL is responsible for accessing data and forwarding
In ASP.NET it might be using SqlClient or OleDb to retrieve the data and sending it to BLL in the form of a DataSet or DataReader. BLL is preparing or processing the data retrieved and sends it to the presentation layer. In ASP.NET it might be using the DataSet and DataReader o custom collection or process it to come up with a value, and then sending it to Presentation Layer. BLL sometimes works as just transp example, if you want to pass a DataSet or DataReader object directly to the present
Data Data tier is the database or the source of the data itself. Often in .NET it's an SQL Server or Access database, however it's not limited to jus also be Oracle, mySQL or even XML. In this article we will focus on SQL Server, as it has been proven to be the fastest database within a .N
Logical Layers vs. Physical Layers Logical Layers and Physical Layers are the ones that confuse people. Firstly, a logical layer means that layers are separate in terms of asse classes, but are still hosted on the same server. Physical layer means that those assemblies or sets of classes are hosted on different se additional code to handle the communication between the layers. E.g. remoting and we
Deciding to separate the layers physically or not is very important. It really depends on the load your application expects to get. I think it's w some of the facts that might affect your
Please DO note that separating the layers physically WILL slow your application down due to the delay in communicating between the servers network, so if you are using the physical layer approach, make sure the performance gain is worth the performance lo
Hopefully you would have designed your application using the n-Tier approach. If this is the case, then note that you can separate the laye
Cost for deploying and maintaining physically separated applications is much greater. First of all, you will need more servers. You also need ne connecting them. At this point, deploying the application becomes more complex too! So decide if these things will be wo
Another fact that might affect your decision is how each of the tiers in the application are going to be used. You will probably want to host a tie server if more than 1 service is dependent on it, e.g. You might want to host business logic somewhere else if you have multiple presentation la clients. You might also want a separate SQL server if you have other applications using the same data.
N-Tier Architecture N-Tier the word means Multiple Tier. N-Tier Architecture is nothing but splitting your solution into different project based on the business requirement. Advantage: Reduce the business and the programming complexity. Easy to process Procedure : To work with n-Tier system 1. Create a solution.
2. Include a web application project in it and name it as "PRESENTATION LAYER" 3. Include a Class Library Project and name it as "DATALAYER"
4. Include a Class Library Project and name it as "BUSINESSLAYER" 5. Now you have 3 project in single solution 6. Build the DataLayer. 7. Go to Business layer and right click on reference and in reference go to Project's. Here you can see the Datalayer. Click on that and include as reference. 8. Now in the Business Layer reference you can see the DataLayer assembly 9. Go to Presentationlayer and right click on reference and in reference go to Project's. Here you can see the BusinessLayer. Click on that and include as reference. 10. Now you can see the BusinessLayer Assembly in the Presentation Layer. 11. Now you can access all the methods DataLayer in Business Layer BusinessLayer in PresentationLayer
12. This is the way you build your N-Tier Application. For example, this is a 3 Tier System.
1. How can you disable the browser to view the code? Ans: <html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server"> <title>DISABLING BROWSER TO VIEW CODE</title> <SCRIPT LANGUAGE="JavaScript1.1"> <!-- Original: Martin Webb (martin@irt.org) --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert("Sorry, you do not have permission to right click."); return false; }
return true; } document.onmousedown=right; document.onmouseup=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); if (document.layers) window.captureEvents(Event.MOUSEUP); window.onmousedown=right; window.onmouseup=right; // End --> </script> </head> <body> <form id="form1" runat="server"> <div> <center>[ Try right-clicking the image and then the text link below ] <p> <img src="http://javascript.internet.com/img/tjsbutton.gif"> <p> <a href="http://javascript.internet.com">Text Link</a> <p><center> <font face="arial, helvetica" size="-2">Free JavaScripts provided<br> by <a href="http://javascriptsource.com">The JavaScript Source</a></font> </center><p> </div> </form> </body> </html>
There
are
types
of
cookies
Persistent and Non-persistent There is two type of cookies in asp temperory(User Define) and permanent (Like Session ) Persistent cookies are stored on your computer hard disk. They stay on your hard disk and can be accessed by web servers until they are deleted or have expired. Persistent cookies are not affected by your browser setting that deletes temporary files when you close your browser. Non-persistent cookies are saved only while your web browser is running. They can be used by a web server only until you close your browser. They are not saved on your disk. Microsoft Internet Explorer 5.5 can be configured to accept non-persistent cookies but reject persistent cookies. 3. What is Servervariables collection? Ans: The ServerVariables collection holds the entire HTTP headers and also additional items of information about the server.
5. What is the differences between querystring collection and forms collection? Ans:
The main difference is that the Querystring collection gets appended to a URL(with a ? 1)to get querystring we use GET method and for form collection we use POST method. 2)querystring collection has limit on amount of data to send. 3)information send from a form using GET method can be visible to all because information get appended to URL with ?. the main difference between querystring and form is that, querystring appends the variable names with their values separated each variable by '&' and the form collection sends the values in hidden format and it separates each variable
with comma(',').
7. What is the maximum size of an Array? Ans: Depends on your PC s memory Size. (RAM size), If exceeds we get
OutOfMemoryException exception.
one request and one response between the client and server. Response.Redirect = Redirects the user to a different URL
Server.Transfer= Sends (transfers) all the information created in one ASP file to a second ASP file
11. What is the differences b/w Client side script and Server side script? Ans:
Scripts executed only by the browser without contacting the server is called client-side script. It is browser dependent. The scripting code is visible to the user and hence not secure. Scripts executed by the web server and processed by the server is called serverside script. in case client side scripting the programsn are executed in client computer system and in case of server side scripting all programs are executed at server side.and all the requests are propagated to server.
/ Testing
Time
browser sends a cookie to the server with each request. (Answer) browser sends a Querystring variable to the server with each request. browser sends a hidden Form variable to the server with each request. browser sends a long variable to the server in the BODY of each request. of the above.
Means:
The page will be expire after 120minutes
19. Can be the arraya Resized using the word REDIM? Ans:
You syntax: can able to resize the array.
Redim a(100)
Give real time examples for polymorphism, encapsulation, inheritance.. for example a simple project done for inventory control in a medical shop inheritance-The properties of one class is derived by another class the class which derives the property is called derived class. The class from which the properties are derived are called Base class. ex.The child who derives some behaviors from the parent ex color,character from parent polymorphisms-The ability to take more than one forms. ex.The sum() function can be used to do the following
1.Adds two numbers when integers are passed as parameters 2.Concatenates two strings when strings are passed as parameters.
.Net is the Development Plateform which provides advanced feature facilities for the web and window application along with the window services . The .Net is the Middle layer between the operating System and the .Net application .The feature of .Net that the .Net Component can talk with each other without worrying about the language in which they are originally.. Two main components are CLR stands for the common Language Runtime and the .Net FrameWork Base classes. The CLR performs the task of converting the IL to native code Which gives the .Net applications to be language Independent . The Other component Like .Net FramwWork Base Classes act as services to be provided to the .Net applications. Differences between VB.Net and C#, related to OOPS concepts? VB.NET is a windows application Where as C# is a console 1)What is the difference between vb and vb.net ? vb is object based and vb.net is object oriented.In VB.net ,oops concept is used How can i extract the formated word(bold,italic,underline,font,color etc) from the msword file. using CommonDialog class eg:the code to invoke the default font dialog box by using the FontDialog control is given below: private sub displayfont_click(byval sender as system.object,byval e as system.eventargs) handles displayfont.click fontdialog.showDialog() textbox1.font=fontdialog1.font end sub the code to invoke the default font dialog box by instantiating the fontdialog class is: dim fdialog as new fontdialog() private sub displayfont_click(byval sender as system.object,byval e as system.eventargs) handles displayfont.click fdialog.showDialog() textbox1.font=fontdialog1.font end sub How does CLR solves dll hell? Unlike VB6; .net does not require to generate GUID for the dlls. The dlls are hosted thru applications ,IIS or windows services. These things internally refer to the physical locations of the file thus even if the dll is updated with certain functionalities the older application can still refer to the previous version of the Dll. How to send xml file on server using HTTP protocol? Through SOAP Protocol What is different between Web.Config and Machine.Config and Where it will be ? the settings made in the web.config file are applied to that particular web application only whereas the settings of machine.config file are applied to the whole asp.net application. Whats the difference bt. .dll extension and .exe extension files? The main difference between .dll and .exe is .dll is the In process component where it take up the clients memory space to run. So the communication between the application and component(dll) is very fast. .EXE is the Out of process component. It uses its own memory(not application memory) to run the component. The communication between the application and component is slow when compared to .dll What is the base class of .net?
System.Object is the base class of .NET It Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate superclass of all classes in the .NET Framework; it is the root of the type hierarchy. How to store and retrieve images in sql server database through VB.NET SQL Server supports the ability for clients to store objects within tables What are Jagged Arrarys ? The other type of multidimensional array is the jagged array. A two dimensional jagged array can be thought of as a table where each row can have a different number of columns. Take for example, a table where families are the rows and family members are the columns. Unless each family has the same number of members, each row will have a variable number of columns. You can use a jagged array to represent such a table. A jagged array is really an array of arrays. To create a jagged array, you declare the array of arrays with multiple sets of parentheses or brackets and indicate the size of the jagged array in the first set of brackets (parentheses). How can we remove Handlers at Run time ? RemoveHandler myobj.myEvent, AddressOf MyEventHandler What are Satellite Assemblies? Satellite assemblies are user for localizing the applications resources. A satellite assembly is a DLL that contains only resource strings .we typically have one satellite assembly DLL for each language. Because these satellite assembly DLLs are separated from the main assembly (an .exe or DLL), it is easier to drop in multi-language support as we progress in your development process. What do you mean by Option Strict On ? Option Strict Visual Basic language in general does not require explicit syntax to be used when performing operations that might not be optimally efficient (e.g. late binding) or that might fail at run time (e.g. narrowing conversions). This permissive semantics often prevents detection of coding errors and also affects the performance of the application. VB.NET enables a programmer to enforce strict semantics by setting this option to On. When used, this option should appear before any other code. This option can be set to On or Off. If this statement is not specified, by default, it is set to Off. Syntax: Option Strict [On / Off] When it is set to On, it disallows any narrowing conversions to occur without an explicit cast operator, late binding and does not let the programmer omit As clause in the declaration statement. Since setting it to On requires explicit conversion, it also requires that the compiler be able to determine the type of each variable. Thus it is implied that Option Strict also means Option Explicit. Visual Basic .NET allows implicit conversions of any data type to any other data type. However, data loss can occur if the value of one data type is converted to a data type with less precision or a smaller capacity. Setting this option to On ensures compile-time notification of these types of conversions so they may be avoided. How VB Implements the Disonnected Architecture as like VB.Net? In VB to implement a disconnected recordset, after you have filled the recordset with the data, set its active connection property to Nothing. That breaks the connection to the database.You can locally also save the data of the recordset by using its Save function.
processes involved including the waterfallmodel (the original SDLC method), rapid application development (RAD), joint application development (JAD), the fountain model and the spiral model. Mostly, several models are combined into some sort of hybrid methodology. Documentation is crucial regardless of the type of model chosen or devised for any application, and is usually done in parallel with the development process. Some methods work better for specific types of projects, but in the final analysis, the most important factor for the success of a project may be how closely particular plan was followed. The image below is the classic Waterfall model methodology, which is the first SDLC method and it describes the various phases involved in development.
Briefly on different Phases: Feasibility The feasibility study is used to determine if the project should get the go-ahead. If the project is to proceed, the feasibility study will produce a project plan and budget estimates for the future stages of development. Requirement Analysis and Design Analysis gathers the requirements for the system. This stage includes a detailed study of the business needs of the organization. Options for changing the business process may be considered. Design focuses on high level design like, what programs are needed and how are they going to interact, low-level design (how the individual programs are going to work), interface design (what are the interfaces going to look like) and data design (what data will be required). During these phases, the software's overall structure is defined. Analysis and Design are very crucial in the whole development cycle. Any glitch in the design phase could be very expensive to solve in the later stage of the software development. Much care is taken during this phase. The logical system of the product is developed in this phase. Implementation In this phase the designs are translated into code. Computer programs are written using a conventional programming language or an application generator. Programming tools like Compilers, Interpreters, Debuggers are used to generate the code. Different high level programming languages like C, C++, Pascal, Java are used for coding. With respect to the type of application, the right programming language is chosen. Testing In this phase the system is tested. Normally programs are written as a series of individual modules, these subject to separate and detailed test. The system is then tested as a whole.
The separate modules are brought together and tested as a complete system. The system is tested to ensure that interfaces between modules work (integration testing), the system works on the intended platform and with the expected volume of data (volume testing) and that the system does what the user requires (acceptance/beta testing). Maintenance Inevitably the system will need maintenance. Software will definitely undergo change once it is delivered to the customer. There are many reasons for the change. Change could happen because of some unexpected input values into the system. In addition, the changes in the system could directly affect the software operations. The software should be developed to accommodate changes that could happen during the post implementation period.