ASP.NET VB HTTP Header senden

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Wie kann ich in ASP.NET mit VB ein HTTP Header senden, wie man es z.B.
in PHP wie folgend machen würde?

<?php header("Content-type: application/xhtml+xml"); ?>

Ich möchte gerne folgendes PHP Beispiel in ASP.NET verwenden:

<?php
if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ) {
header("Content-type: application/xhtml+xml");
} else {
header("Content-type: text/html");
}
?>

THX im Voraus! Emanuel

.