Tuesday, April 20, 2010

Anchor in HTML controls in ASP.NET

I had to make a new menu in an ASP.NET web app. but the problem that i faced was how to use "~" to reference the root, if i had folders inside the root with pages.

So the solution is

< a href=" < % = Page.ResolveUrl("~/Common/DB/ViewRecords.aspx") % > " > < / a >

Enjoy IT!

SOLID Principle

S.O.L.I.D stands for: When expanded the acronyms might seem complicated, but they are pretty simple to grasp. S - Single-responsiblity...