This can be done but its more of a hack then anything else: first to even call IISRESET, for example, the user making the call must have Administrative rights which the ASP.NET account does not have by default. (And setting the ASP.NET account to run with administrative rights is a HUGE security issue)
Probably the best bet to do this is to create a .bat file and then create a process in code to start a command prompt with the aforementioned .bat file to restart IIS.
Here is an article on using .bat files to restart/kill iis
http://weblogs.asp.net/scottgu/archi...tilities-.aspx
Also, I would not suggest doing this. If you need to restart IIS do so at the server level because you will be up a creek if you create X code to restart IIS from a web application and then after you execute the code IIS never comes back up thus forcing you to log into the server anyway.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========