calling application_end

N

newbie

I had posted this question but it got lost in another question. I'm
posting it again:

My application_end event in global.asax is not working as-is. In order
to debug, I want to call it from another file, say debug.aspx through a
button, e.g. "end application". How do I call application_end in
global.asax from debug.aspx?

thanks
 
A

Andrea Zani

newbie said:
I had posted this question but it got lost in another question. I'm
posting it again:

My application_end event in global.asax is not working as-is. In order
to debug, I want to call it from another file, say debug.aspx through
a button, e.g. "end application". How do I call application_end in
global.asax from debug.aspx?

thanks

You can write in debug.aspx:
XmlDocument doc=new XmlDocument();
doc.Load(Request.MapPath("web.config"));
doc.Save(Request.MapPath("web.config"));
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,118
Latest member
LatishaWhy
Top