Beruflich Dokumente
Kultur Dokumente
The MSIL Instruction Set Specification is included with the .NET SDK, along with the IL Assembly LanguageProgrammers Reference. If a developer wants to write custom .NET programming languages, these are the necessary specifications and syntax. The CTS and CLS define the types and syntaxes that every .NET language needs to embrace. An application may not expose these features, but it must consider them when communicating through IL.
The first processed method is Page_Init(). Once the control tree has been created, the controls declared in the .aspx file are initialized. The controls can modify some of the settings set in this method to be used later in the page life cycle. Obviously no other information is available to be modified at this time. The next processed method is LoadViewState(). The Viewstate contains stored information that is set by the page and controls of the page. This is carried to and from every aspx page request per visitor. I just signed up at Server Intellect and couldn't be more pleased with my Windows Server! Check it out and see for yourself. The next processed method is LoadPostData(). These are values associated with the HTML form
elements the visitor has typed, changed or selected. Now the control has access to this information which can update their stored information pulled from the Viewstate. The next processed method is Page_Load(). This method should look familiar and is usually the most common used method on the server side application code for an .aspx file. All code inside of this method is executed once at the beginning of the page. The next processed method is RaisePostDataChangedEvent(). When a visitor completes a form and presses the submit button, an event is triggered. This change in state signals the page to do something. The next processed method is RaisePostBackEvent(). This method allows the page to know what event has been triggered and which method to call. If the visitor clicks Button1, then Button1_Click is usually called to perform its function. Server Intellect offers Windows Hosting Dedicated Servers at affordable prices. I'm very pleased! The next processed method is Page_PreRender(). This method is the last chance for the Viewstate to be changed based on the PostBackEvent before the page is rendered. The next processed method is SaveViewState(). This method saves the updated Viewstate to be processed on the next page. The final Viewstate is encoded to the _viewstate hidden field on the page during the page render. The next processed method is Page_Render(). This method renders all of the application code to be outputted on the page. This action is done with the HtmlWriter object. Each control uses the render method and caches the HTML prior to outputting. The last processed method is Page_Unload(). During this method, data can be released to free up resources on the server for other processes. Once this method is completed, the HTML is sent to the browser for client side processing.
Some Questions : What is the maximum number of cookies that can be allowed to a web site? a) 1 b) 10 c) 20 - correct answer d) More than 30 a) IsPostBack is a method of System.UI.Web.Page class b) (your answer) IsPostBack is a method of System.Web.UI.Page class c) IsPostBack is a readonly property of System.Web.UI.Page class - correct answer Postback occurs in which of the following forms? a) Winforms b) HTMLForms c) Webforms - correct answer
Which of the following is true?
What namespace does the Web page belong in the .NET Framework class hierarchy? a) System.web.UI.Page - correct answer b) System.Windows.Page c) System.Web.page
The first event to be triggered in an aspx page is? a) Page_Load() b) Page_Init() - correct answer When an .aspx page is requested from the web server, the out put will be rendered to browser in following format? a) HTML - correct answer b) XML c) WML d) JSP
Response.Redirect("http://www.karlmoore.com/")
To send the user to another page. Server.Transfer is similar in that it sends the user to another page with a statement such as Server.Transfer("WebForm2.aspx"). However, the statement has a number of distinct advantages and disadvantages.
Firstly, transferring to another page using Server.Transfer conserves server resources. Instead of telling the browser to redirect, it simply changes the "focus" on the Web server and transfers the request. This means you don't get quite as many HTTP requests coming through, which therefore eases the pressure on your Web server and makes your applications run faster. But watch out: because the "transfer" process can work on only those sites running on the server, you can't use Server.Transfer to send the user to an external site. Only Response.Redirect can do that. Secondly, Server.Transfer maintains the original URL in the browser. This can really help streamline data entry techniques, although it may make for confusion when debugging. That's not all: The Server.Transfer method also has a second parameter"preserveForm". If you set this to True, using a statement such as Server.Transfer("WebForm2.aspx", True), the existing query string and any form variables will still be available to the page you are transferring to. For example, if your WebForm1.aspx has a TextBox control called TextBox1 and you transferred to WebForm2.aspx with the preserveForm parameter set to True, you'd be able to retrieve the value of the original page TextBox control by referencing Request.Form("TextBox1").
Initialization of a Const member values are done at the declaration of the member whereas
Constant variables can be assigned to the readonly. But readonly variables cant be assigned to the constant variables.
into logical categories of related functionality, such as the ASP.NET application framework, or remoting functionality. Design tools can make use of namespaces to make it easier for developers to browse and reference types in their code. The concept of a namespace is not related to that of an assembly. A single assembly may contain types whose hierarchical names have different namespace roots, and a logical namespace root may span multiple assemblies. In the .NET Framework, a namespace is a logical design-time naming convenience, whereas an assembly establishes the name scope for types at run time.
View State:
ViewState is the mechanism ASP.NET uses to keep track of server control state values that don't otherwise post back as part of the HTTP form. ViewState Maintains the UI State of a Page ViewState is base64-encoded. It is not encrypted but it can be encrypted by setting EnableViewStatMAC="true" & setting the machineKey validation type to 3DES. If you want to NOT maintain the ViewState, include the directive < %@ Page EnableViewState="false" % > at the top of an .aspx page or add the attribute EnableViewState="false" to any control.
ADO.Net Architecture
Dataset
Datasets store a copy of data from the database tables. However, Datasets can not directly retrieve data from Databases. DataAdapters are used to link Databases with DataSets. The Dataset contains the copy of the data we requested. The Dataset contains more than one Table at a time. We can set up Data Relations between these tables within the DataSet. The data set may comprise data for one or more members, corresponding to the number of rows. A DataSet is a disconnected architecture, means there is no need to always open & close connection. It is cache of data retrieved from database. It is made up of collections of datatables.
Create a database connection and then a dataset object. Create a DataAdapter object and refer it to the DB connection already created. Note that The Fill method of DataAdapter has to be called to populate the Dataset object.
every DataAdapter has to refer to a connection object. For example, SqlDataAdapter refers to SqlDataConnection.