Sunday, December 23, 2012

Creating the .NET Solution Part 5

Email

Sending emails is one task that every website has to be capable of. How many emails you plan to send should certainly determine how you go about sending that email. As we do not yet know how many emails we plan to send, we will initially rely upon the tools that are provided in the .NET framework to send our email. For brevity, we will look at the specific methods from this class here.
As with all our objects, we will have the MEF Export attribute in place that makes this a Pluggable class. The class itself inherits from our IEmail interface. We will have a couple of constants declared—one for the website's receiving the email account and another for the website's sending the email account. (We could have used one variable for both, but a little flexibility never hurt anyone!)

Creating the .NET Solution Part 4

Redirection

From an OOP point of view, Response.Redirect is about as useful as the session object is (we're starting to see a trend here). It simply provides a way of sending you from one place to another. It would be nice if we could work with it using methods. It would be even better if we could hide some logic in those methods if need be. Our initial implementation is very easy.

ASP.NET Interview Question Part 3

Q21. What is Query String? What are its advantages and limitations?

The Query String helps in sending the page information to the server.The Query String has the following advantages:

Saturday, December 22, 2012

ASP.NET Interview Question Part 2

Q11. What is the behavior of a Web browser when it receives an invalid element?

The behavior of a Web browser when it receives an invalid element depends on the browser that you use to browse your application. Most of the browsers ignore the invalid element; whereas, some of them display the invalid elements on the page.

ASP.NET Interview Question Part 1

Q1. What is ASP?

Active Server Pages (ASP), also known as Classic ASP, is a Microsoft's server-side technology, which helps in creating dynamic and user-friendly Web pages.

Friday, December 21, 2012

Creating the .NET Solution Part 3

Session

The session object is another item that is frequently used in most web applications. That being said, it is also something that we can squeeze performance out of down the road. Even if performance wasn't an issue, the session object by itself does not really conform to the most basic of OOP principles. Rather than trying to cast an item out of thin air or the HttpContext.Current.Session, it would be much better if we could call an object that returned the appropriate object for us. Here is the basic implementation:

Wednesday, December 19, 2012

Creating the .NET Solution Part 2


Cache

Continuing on the principles of extensibility, we will build a cache object implementing ICache interface. Our cache implementation will wrap the HttpContext.Current.Cache object from System.Web.Caching. Tomorrow if need be, we can replace this implementation with say MemCached or AppFabric.

Creating the .NET Solution Part 1


Let's now start with implementation and for that let's create an empty .NET solution called Fishbook under which we can start creating various layers designed in the form of .NET projects.

Tuesday, December 18, 2012

Model View Presenter(MVP) Pattern

Model

The model is a direct reference to your domain logic—the business logic layer so to speak. This provides access to the back-end data (from the database) and implements additional business logic on it. As when we do authentication for a user, we need to manage encryption and decryption of the password. Such things will be managed by model.

Sunday, December 16, 2012

Layered Architecture for Social Network Web Site


Knowing that social network application is going to be a large undertaking that should last for some time, we need to design something that can be easily extended as the need arises. For that we will try to design this application with extensibility in mind. The easiest way to do that is to follow the general rule of maintaining "separation of concerns (SoC)".

Friday, December 14, 2012

Tuesday, December 11, 2012

My Own Social Network


Everyone wants to build one of their own and think they have a better idea and can do a better job than the next guy. Listed below are some of the key considerations for any social network site that often get missed out.

Social Networking


Given the boom in the Internet and mobile devices industry, people across the world are more connected than ever before. Social networking is the in thing.

Announcements

Most chat applications notify you when other users sign in. This application can discover other users but it would be better if we were notified when other users sign in. Discovery supports this feature with announcements

Tuesday, December 4, 2012

Metadata Extensions

From last article Ad hoc Discovery . When YallaTech discovered other chat instances all we knew about them was the Uri of the service endpoint. So her chat window shows a chat with the host machine name. besho, on the other hand, knew that the chat message came from YallaTech because the chat message included her name. In this article we will learn how we can extend the metadata used in WS-Discovery to supply additional information (such as the username used for the chat session).

Automatic Traffic Exchange

YallaTech Facebook page