Click here to Skip to main content
15,895,656 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How can i input "&" in the html code? Pin
GlobX24-Mar-11 15:52
GlobX24-Mar-11 15:52 
GeneralRe: How can i input "&" in the html code? Pin
Pravin Patil, Mumbai25-Mar-11 2:04
Pravin Patil, Mumbai25-Mar-11 2:04 
AnswerRe: How can i input "&" in the html code? Pin
Dalek Dave26-Mar-11 3:39
professionalDalek Dave26-Mar-11 3:39 
Questionfile download in mvc 2.0 Pin
rudra prasanna biswal24-Mar-11 11:45
rudra prasanna biswal24-Mar-11 11:45 
QuestionDataList web user control Pin
De_Novice24-Mar-11 6:12
De_Novice24-Mar-11 6:12 
AnswerRe: DataList web user control Pin
Sandeep Mewara26-Mar-11 21:46
mveSandeep Mewara26-Mar-11 21:46 
QuestionLog messages in event viewer Pin
berba24-Mar-11 0:24
berba24-Mar-11 0:24 
AnswerRe: Log messages in event viewer Pin
Pete O'Hanlon24-Mar-11 3:28
mvePete O'Hanlon24-Mar-11 3:28 
ASP or ASP.NET? If it's ASP.NET, you need the EventLog[^] class which contains various members for manipulating the event log. For instance, if you want to log to your own event source (there are certain sources already created such as the Application log and Security log), you'd use:
if (!EventLog.SourceExists("MyCustomSource"))
{
  EventLog.CreateEventSource("MyCustomSource");
}
Then, you can write to it using:
<br />
EventLog.WriteEntry("MyCustomSource", "This is my event body text", EventLogEntryType.Information);
There are various overloads for this method - have a read up to find which is best in your particular case. Note that you shouldn't attempt to create an event source and then use it immediately, as there is a time period that the event source is being created. If you must do this, make sure that you create the event source when the application starts.

You also need to be aware that writing to the event log requires security privileges that your web account may not, by default, have. In this case, the administrator will need to ensure that the web account has privileges to write to the event log.

I'm not a stalker, I just know things. Oh by the way, you're out of milk.

Forgive your enemies - it messes with their heads


My blog | My articles | MoXAML PowerToys | Onyx


QuestionSSRS page break problem Pin
rahul.net1123-Mar-11 23:49
rahul.net1123-Mar-11 23:49 
AnswerRe: SSRS page break problem Pin
Sandeep Mewara26-Mar-11 21:45
mveSandeep Mewara26-Mar-11 21:45 
Questionregular expression validator Pin
Satish_S23-Mar-11 21:21
Satish_S23-Mar-11 21:21 
AnswerRe: regular expression validator Pin
thatraja23-Mar-11 23:12
professionalthatraja23-Mar-11 23:12 
QuestionManipulating Colour Indexed Images (GIF) using palettes - ASP.NET C# Pin
Quintec23-Mar-11 16:08
Quintec23-Mar-11 16:08 
AnswerAnyone? Pin
Quintec26-Mar-11 1:41
Quintec26-Mar-11 1:41 
Questionwhen we use delegates? Pin
anoop_m8323-Mar-11 16:03
anoop_m8323-Mar-11 16:03 
AnswerRe: when we use delegates? Pin
Pravin Patil, Mumbai23-Mar-11 22:47
Pravin Patil, Mumbai23-Mar-11 22:47 
Questionbypass web filter Pin
yftah198923-Mar-11 6:37
yftah198923-Mar-11 6:37 
AnswerRe: bypass web filter PinPopular
Richard MacCutchan23-Mar-11 7:28
mveRichard MacCutchan23-Mar-11 7:28 
GeneralRe: bypass web filter Pin
yftah198923-Mar-11 7:43
yftah198923-Mar-11 7:43 
AnswerRe: bypass web filter Pin
Pravin Patil, Mumbai23-Mar-11 7:58
Pravin Patil, Mumbai23-Mar-11 7:58 
AnswerRe: bypass web filter Pin
Pete O'Hanlon23-Mar-11 7:58
mvePete O'Hanlon23-Mar-11 7:58 
GeneralRe: bypass web filter Pin
yftah198923-Mar-11 8:13
yftah198923-Mar-11 8:13 
GeneralRe: bypass web filter Pin
Pete O'Hanlon23-Mar-11 8:25
mvePete O'Hanlon23-Mar-11 8:25 
GeneralRe: bypass web filter Pin
yftah198923-Mar-11 8:33
yftah198923-Mar-11 8:33 
GeneralRe: bypass web filter Pin
Richard MacCutchan23-Mar-11 23:03
mveRichard MacCutchan23-Mar-11 23:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.