P
porter
Im guessing this is a really simple question. How do server-side
includes work in c#? For example, I have a swtich statement and
depending on its output, I want to include different files. I had the
code in VB and then tried to port it over but I just cant find the C#
file comand.
switch(kind)
{
case "parts":
page += "manuals_parts.aspx";
break;
case "service":
page += "manuals_service.aspx";
break;
case "operator":
page += "manuals_operator.aspx";
break;
case "specs":
page += "manuals_specs.aspx";
break;
case "schematics":
page += "manuals_schematics.aspx";
break;
default :
page += "manuals_main.aspx";
break;
}
*** VB would then say Response.Writefile(page)
what is it in c#?
includes work in c#? For example, I have a swtich statement and
depending on its output, I want to include different files. I had the
code in VB and then tried to port it over but I just cant find the C#
file comand.
switch(kind)
{
case "parts":
page += "manuals_parts.aspx";
break;
case "service":
page += "manuals_service.aspx";
break;
case "operator":
page += "manuals_operator.aspx";
break;
case "specs":
page += "manuals_specs.aspx";
break;
case "schematics":
page += "manuals_schematics.aspx";
break;
default :
page += "manuals_main.aspx";
break;
}
*** VB would then say Response.Writefile(page)
what is it in c#?