I program in PHP and am trying to learn C#, but I'm having some difficulties.
In PHP, I have a function include_once() to include other pages using the global $_GET.
I use this code in PHP with QueryString (i.e.: ?param=add):
if($_GET['param'] == 'add') {
include_once('pages/caseAdd.php');
} else {
include_once('pages/caseDefault.php');
}
I wonder how do I make such a process in Visual Studio using C# (ASP.NET).