dotnet

using System;


15.06.2017.

Cookies

A cookie is a name/value pair that's stored in the user's browser or on the user's disk.

A web application sends a cookie to a browser via an HTTP response. Then, each time the browser sends an HTTP request to the server, it attaches any cookies that are associated with that server.

By default, ASP.NET uses a cookie to store the session ID for a session, but you can also create and send your own cookies to a user's browser.

A session cookie is kept in the browser's memory and exists only for the duration of the browser session. A persistent cookie is kept on the user's disk and is retained until the cookie's expiration date.

To create a cookie, you specify its name and value. To create a persistent cookie, you must also set the Expires property to the time you want the cookie to expire.

17.05.2017.

Web Services

A web service is a class that resides on a web server and can be consumed by clients on different platforms.

Two primary web service technologies are: WCF (Windows Communication Foundation) and Web API (Application Programming Interface).

Clients communicate with web services by using either SOAP (Simple Object Access Protocol) or REST (Representational State Transfer).

WCF services usually use SOAP to communicate with clients. Web API services always use REST.

To define the operations of a service, you code a service contract interface with the ServiceContract attribute. Then, you can code one or more methods with the OperationContract attribute.

To define the data that's used by a service, you code a data contract class with the DataContract attribute. Then, you code one or more properties that have the DataMember attribute.

To implement the operations of a service, you code a service contract class that implements the service contract interface.

The service contract class can include members that aren't a part of the service interface.

The service contract class can also include data validation or error handling.

When you use jQuery to consume a Web API service, Ajax is used to get and update the data with asynchronous requests.

When you consume a Web API service with C#, normal HTTP requests are made.

04.05.2017.

ASP.NET Web Development

What is the difference between HTML and HTTP?

Why is ViewState important when you are working with ASP.NET Web Forms?

What are the three different architectural components of ASP.NET MVC?

What are the differences between .intro p , p.intro , and p, .intro ?

Margins and padding have different effects on an element. If you were going to stretch the "box" of an element, which would you use?

Which would be the better choice for iterating through an entire collection: For Each or Do ?

Can every property be set in the code-behind, or must some always be set in the markup?

Does adding a runat="server" attribute to an HTML element change anything?

What is view state?

What is the difference between using @Html.TextboxFor and @Html.Textbox ?

How does the Razor view engine understand the difference between code that it is supposed to run and text that should not be changed or affected, simply passed through?

Convention plays an important role in ASP.NET MVC. Must the view name always match the action name?

How does the model binder know how to bind the properties of nested types, or objects that are properties on other objects?

What is the advantage of using the Layout command in the ViewStart page?

Your user is on a page at http://www.servername.com/admin/list.aspx and you have the following link: <a href="~/default.aspx">Home</a> . Where would they end up if they clicked the link?

If you were a new developer on a project for which a bug report is received regarding a page found at http://www.servername.com/results/ , where would you look for the code that caused that specific defect?

What would be some reasons to use a more direct route to the database, such as ExecuteQuery rather than using the traditional EF approach?

When you want to get a partial view that has been processed on the server, when do you not have to pass the controller into the Html.Action method?

Imagine you are working with an ASP.NET Web Forms page and you place a RangeValidator above a RequiredValidator when they are both validating the same control. What would be the difference in behavior if you switched the order of the validation controls?

Is it possible to put validation on a model in such a way that a model can never be valid?

What steps would you need to take if you wanted to implement the Unobtrusive AJAX jQuery library in an ASP.NET Web Form page?

What are some of the challenges with adding a timer to a web page for which the results from the call update a section of the page?

What are some of the things that you need to take into account when you start considering adding bundling to your web application?

How do you add special jQuery code when using Ajax.Helpers in an ASP.NET MVC view?

Whenever the application starts, what two files are responsible for setting configuration items such as minimum length for a password?

What is the difference between authentication and authorization?

Your e-commerce site sells women's clothing. What kind of information would you gather if you wanted to get an understanding of the color palette that the user preferred?

What could you do with the information that you just gathered?

Can you use trace or logging to get an understanding of your application's performance?

What is a changeset, and why does it matter in source control?

What happens during a checkout?

What does TFS offer to enable a developer to determine who may have changed a file?

01.05.2017.

ASP.NET Programming

A web application consists of a set of web pages that are run by clients, a web server, and a network. Clients use web browsers to request web pages from the web server. The web server returns the requested pages.

A local area network (LAN), or intranet, connects computers that are near each other. By contrast, the Internet consists of many wide area networks (WANs).

One way to access a web page is to type a URL (Uniform Resource Locator) into the address area of a browser and press Enter. A URL consists of the protocol (usually, HTTP), domain name, path, and file name.

To request a web page, the web browser sends and HTTP request to the web server. Then, the web server gets the HTML for the requested page and sends it back to the browser in an HTTP response. Last, the browser renders the HTML into a web page.

A static web page is a page that is the same each time it's retrieved. In contrast, the HTML for a dynamic web page is generated by a server-side program, so its HTML can change from one request to another. Either way, HTML is returned to the browser.

For ASP.NET applications, the web server is usually Internet Information Services (IIS) and ASP.NET is the application server. The web server may also use a database management system (DBMS) like SQL Server.

One way to develop ASP.NET applications is to use Web Forms. This is similar to using Windows Forms and encourages Rapid Application Development (RAD).

Another way to develop ASP.NET applications is to use ASP.NET MVC (Model-View-Controller). It provides better separation of concerns and unit testing.

The .NET Framework provides the services that ASP.NET applications use to access the operating system and computer hardware. Its main components are the Class Library and the Common Language Runtime (CLR).

HTTP is called a stateless protocol because it doesn't keep track of the data (state) between round trips. However, ASP.NET provides five ways to keep track of state including view state and session state.

The pages in an ASP.NET application are called web forms. They contain server controls like drop-down lists, text boxes, labels, and buttons.

Each page in an ASP.NET application consists of an aspx file for the HTML and server controls, an aspx.cs file for the C# in the code-behind file, and an aspx.designer.cs file for the generated C# code in the designer file.

Before a web form can be run, its aspx and C# files are compiled into an assembly that consists of Intermediate Language (IL) that is run by the CLR.

24.04.2017.

Relational Databases

A relational database stores data in tables. Tables are composed of rows , and rows are composed of columns in which values are stored.

A table’s primary key provides a unique value that cannot be duplicated among rows.

Each column of a table represents a different attribute.

The primary key can be composed of more than one column.

A foreign key is a column in a table that must match the primary-key column in another table. This is known as the Rule of Referential Integrity.

Every column in a primary key must have a value, and the value of the primary key must be unique. This is known as the Rule of Entity Integrity.

A one-to-many relationship between tables indicates that a row in one table can have many related rows in a separate table.

Foreign keys enable information from multiple tables to be joined together. There’s a one-to- many relationship between a primary key and its corresponding foreign key.

22.04.2017.

Web Applications Deployment

What launch condition does a Web Setup Project include by default?

What are the four phases of a Web Setup Project deployment?

You need to add a registry entry to make your application function. In which phase of the Web Setup Project should you add the registry entry?

You need to make a change to an operating system-related registry entry to make your application function. You want to ensure you remove this change if setup is cancelled or the application is removed from the computer. In which phases should you undo your registry modification?

How can you cause a cached object to be automatically invalidated after a specific amount of time?

Where is Cache data stored - in memory, on the hard disk, in a database, or on a state server?

What types of data can you store in the Cache collection?

What must you do before you retrieve an object from the Cache collection?

You are creating an ASP.NET Web page that displays a list of customers generated by a database query. The user can filter the list so that only customers within a specific state are displayed. You want to maximize the performance of your Web application by using page output caching. You want to ensure users can filter by state, but you are not concerned about displaying updates to the list of customers because the customer list doesn't change very frequently. Which declarative @OutputCache attribute should you configure?

You need to programmatically configure page output caching. Which object would you use?

You want to cache an object but have it automatically expire in 10 minutes. How can you do this?

Which tool can you use to create performance counters?

22.04.2017.

Mobile Web Applications

What is the primary difference between the standard validator controls and the mobile validator controls?

What can you do to ensure that session state is maintained when mobile devices that don't accept cookies are accessing your mobile Web site?

You need to create a mobile Web site application. What steps should you take?

You have a mobile Label control on your mobile Web form. You want the text to be different based on whether the browser is Internet Explorer or a mobile device. How can you perform this task?

You created a mobile Web site that appears to be working properly for your users. Joe just purchased a new state-of-the-art mobile device. When he attempted to view a Calendar control on your Web site, the control attempted to render a month view, but Joe's mobile device screen wasn't big enough to display the calendar. You decide to create a new .browser file that represents Joe's mobile device and the settings will cause the calendar to render appropriately. How can you get the runtime to recognize the new .browser file settings?

21.04.2017.

User Profiles

You wish to create a user profile that uses a custom type as one of the profile properties. What actions must you take?

Which control would you use to provide a login link?

Which login controls are useful only to authenticated users?

You use the ASP.NET Web Site Administration Tool to configure ASP.NET membership with forms authentication. What should you name your login form so that you do not have to modify the Web.config file?

By default, how does ASP.NET track which users have successfully authenticated using forms authentication?

21.04.2017.

Global and Local Resource Data

In which folder should you store global resource files?

In which folder should you store local resource files?

What must you do to enable users to select their own language preferences?

How can you define a control property using a global resource at design time?

You add a global resource with the name Login by using Visual Studio. How can you access the global resource programmatically?

What can you do to make a Web page more useful to users who use special displays or screen readers to make text more readable?

What can you do to make a Web page more useful to a user who does not use a mouse?

Which Image properties can you define to enable screen readers to describe a picture on a Web page?

20.04.2017.

Web Debugging

In which dialog box do you enable the ASP.NET debugger for your project?

What is the name of the element in the Web.config file that you use to define the debug attribute to turn on debugging for your site?

You are debugging an application on a test server. You have an issue on a particular page and need to get the error details. You do not want to turn on debugging for the entire site. What action should you take?

You are deploying your application to a production environment. You wish to redirect users to a default error page if they hit any unhandled exceptions or HTTP errors within the site. You also wish to indicate the user's requested resource on the error page to help with support calls. What action should you take?

You have an error that is only occurring when the application is deployed to the development or test server. You need to debug this error remotely. What action should you take?

How can you make trace data display on your Web page?

What is the name of the virtual page that you can request to view trace data when the trace data is not displayed on its corresponding Web page?

You want to identify which event in the Web page life cycle takes the longest time to execute. How can you accomplish this?

You are interested in examining the data that is posted to the Web server. What trace result section can you use to see this information?

You wish to configure ASP.NET health monitoring to log information every time a user fails to log in to the server. Which Web event class should you use?


Stariji postovi

dotnet
<< 06/2017 >>
nedponutosricetpetsub
010203
04050607080910
11121314151617
18192021222324
252627282930

MOJI LINKOVI

MOJI FAVORITI
-

BROJAČ POSJETA
4848

Powered by Blogger.ba