Kamran Ajmal
Kamran Ajmal

Reputation: 302

Setting Debug to False on aspx page not in Web.config

Is it possible to Set Debug= false for an individual asp.net page. I want to enable debugging for the entire application but there is a page in application where I want to set Debug = false only for that page ?

Upvotes: 1

Views: 732

Answers (1)

M. Mennan Kara
M. Mennan Kara

Reputation: 10222

Yes, you can set Debug="false" on the page directives, at the top of the .aspx markup.

<%@ Page language="C#" Debug="false" .... %>

Upvotes: 1

Related Questions