Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I just started another website and it has taken me >30mins to copy/paste my other website and delete stuff because I don't have a template.

Theres lots of features I copied over that I haven't seen in libraries/templates. But I don't really know any libraries/templates. This site is ASP.NET. Some things I have is a string.format that escapes strings for HTML (so <hi> is text instead of a tag). Other features are adding or removing items in the url query, a class to pass in a ASP.NET error and log or convert it into a row in a db (I know about elmah but during development on my last site it wasn't Mono compatible), a mini AJAX library for success/fail/redirect/etc, a class to pass in a ASP.NET error and log or convert it into a row in a db and anything else I would use in every site.

I don't like my (library) design because I wasn't expecting to do more then 2-3 websites and I am on my 5th. I don't know proper ASP.NET either so what is an article that explains how to make a great library/template for websites?

share|improve this question
You can start here : msdn.microsoft.com/en-us/library/ms247120.aspx – KeesDijk Sep 9 '11 at 11:00

2 Answers

If you're copying and pasting .net code from one project to another, you're probably doing it wrong.

A good way to do this is to create a new .net library in Visual Studio where you can save all of this code. Then, you can add a reference to your library and import its namespace just like you do with the code libraries you get from anywhere else.

share|improve this answer

Forget about an article explaining...

How about an actual library that does everything that you need: utilities.codeplex.com.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.