jeudi 28 décembre 2017

Response.End in Razor?

I am using Razor V3. in any.cshtml:

@{
    <p>asdfasdf</p>
    Response.End();
}

then access this page, you'll get a blank page, no content. what is the correct way to end response? except return; because maybe I want end response in @helper. Thanks.




Aucun commentaire:

Enregistrer un commentaire