PC Review


Reply
Thread Tools Rate Thread

Can't drag and drop Server Explorer App Event Log to web form?

 
 
Mark
Guest
Posts: n/a
 
      17th Nov 2009
I was trying to drag and drop the Application Event Log from Server Explorer
to an ASP.NET web form in a Visual Studio 2008, but the drag and drop would
not create an Eventlog object as my book said it should do. Does anyone
have an idea why Visual Studio isn't creating an Eventlog object for me?


 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      17th Nov 2009
On Nov 17, 5:40*am, "Mark" <mkh...@gmail.com> wrote:
> I was trying to drag and drop the Application Event Log from Server Explorer
> to an ASP.NET web form in a Visual Studio 2008, but the drag and drop would
> not create an Eventlog object as my book said it should do. *Does anyone
> have an idea why Visual Studio isn't creating an Eventlog object for me?


As far as I can see this works for WinForms projects only. To work
with EventLog from ASP.NET simply refer to
System.Diagnostics.EventLog.

Here's an example on how to write errors in the log

http://msdn.microsoft.com/en-us/library/fwzzh56s.aspx
http://msdn.microsoft.com/en-us/library/07347hdt.aspx

Hope this helps
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Drag and Drop File Name from Windows Explorer into Access Form Textbox Ron Weiner Microsoft Access Form Coding 4 29th May 2008 03:34 AM
Re: Drag and Drop File Name from Windows Explorer into Access Form Textbox Douglas J. Steele Microsoft Access Form Coding 0 30th Apr 2008 10:26 PM
Drag & Drop Folder Name from Windows Explorer to a Windows Form David McKenzie Microsoft Dot NET Framework Forms 4 18th Aug 2005 02:37 AM
drag-drop file form explorer Brian Henry Microsoft VB .NET 5 13th Jul 2005 04:17 PM
How to do drag and drop from explorer onto a form/field in vba access 2000/xp? Oliver Keim Microsoft Access Form Coding 1 24th Jul 2003 04:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:19 AM.