In my web application I have a treeview with documents. The NavigateUrl of a treenode looks like this: viewDocument.aspx?id=1&doctype=type. In the load event of ViewDocument.asp.cs i check whether id and doctype are set. If so, check doctype has a valid value and check the id is a number. After that, i create a document object. Then i call it's Load(int id) function which will load all the data in the object. If the id doesn't exists in the database the return value is false, otherwhise true.
Is it possible to use MVC pattern? And if so, how do i start?