ASP.NET provides a simple yet powerful way to deal with errors that occur in your web applications. We will look at several ways to trap errors and display friendly meaningful messages to users. We will then take the discussion a step further and learn how to be instantly notified about problems so you can cope with them right away. As a geek touch we will also track the path 404's travel.
Working with Cookies in ASP.NET
ASP.NET has 3 classes which allow you to work with Cookies.
HttpCookie: provides a way to create and manipulate individual HTTP cookies. HttpResponse: The Cookies property allows to create and save cookies on client machines. HttpRequest: The Cookies property allows access to cookies from the client maintains. Accessing form objects when there are multiple forms
In order to access a form through Javascript, we need to obtain a reference to the form object. One obvious way to approach, which you have already seen, is to use the
getElementById method. For instance, if we had a form with the id attribute "subscribe_frm", we could access the form in this way:What is a Virtual Directory and how to create it?
What is a virtual directory ?
A virtual directory represents a web application and it points to a physical folder in your computer.
A web application is accessed using a virtual directory name instead of a physical folder name. For example, if you have a web application called "Shopcart" in your machine, you will have a virtual directory for this web application. You will access your web application using the URL httP://localhost/Shopcart. If your virtaul directory name is "Test", then your web application url will be "http://localhost/Test".
A web application is accessed using a virtual directory name instead of a physical folder name. For example, if you have a web application called "Shopcart" in your machine, you will have a virtual directory for this web application. You will access your web application using the URL httP://localhost/Shopcart. If your virtaul directory name is "Test", then your web application url will be "http://localhost/Test".
Introduction to DataBinding in Silverlight
DataBinding is a link between a data source and a user interface. The data source provides data to the user interface. The data in the user interface may be changed by the user which will be updated to the source and could be saved back to the database.The data source could be business objects, collections, database tables or any other form of data that support data binding.
Static and Dynamic web pages
We can broadly classify web sites and web pages into two categories:
1. Static web pages
2. Dynamic web pages
1. Static web pages
2. Dynamic web pages
Open a specific xaml page from a Silverlight control
Each Silverlight application project may include multiple xaml pages. When you refer to a .xap file from a web page, the xaml page set using the Application.RootVisual property will be displayed by default.
Subscribe to:
Posts (Atom)