To write a log file...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear Sir/Madam

I have made one user control to embed in Internet Explorer
I just wrote one method to keep track log something like.

public static void WriteLog(..)
StreamWriter stWriter = File.AppendText("xyz.log")
strWriter.Append(.....)
..
..
strWriter.Close()



After I put this DLL file into web server, when I test this embeded DLL by using HTML object tag
this code works, but log file was written in client-side, not server-side
I do not want to write any log file in client-side. All I want is to write some log
in server computer
Is there any way I can write log file only in server computer

Thanks
 
TJ,

If you want to log information back on the server, then the control that
you embed on the client side is going to have to send a message to the
server (proably another HTTP request or a web service. Since the client has
to have the .NET framework installed, your best bet would be to create a web
service that would get the details to write into the log, and then have the
control send requests to the web service as needed.

Hope this helps.
 
Hi, Nicholas

Thanks for your good suggestion

...................................................................TJ
 

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

Back
Top