Excluding Files From Web Logs?

Dec 30, 2010

Looking through my web logs, I see a lot of entries that don't interest me. Some of them are commonly used images, css files, and scripts, which I can easily exclude by un-checking the 'log visits' check box in IIS for the folder properties.

I would also like to exclude log entries for certain common requests which are not in their own folders. Mostly, 'favicon.ico'. 'scriptresource.axd', and 'webresource.axd'. These (especially scriptresource.axd) make up almost a third of a typical log file on my site.

View 1 Replies


Similar Messages:

Visual Studio :: Excluding Files And Folders Cause Them To Disappear?

Jul 2, 2010

I tried excluding some files and folders in VS 2008 and they just disappear when I just want them to appear "whited" out. How can I change this behavior?

View 1 Replies

MVC :: Page.user Info - Register User Logs Logs Table - Use Userid

Dec 28, 2010

i use formsauthentication for login. but i wanna register user logs logs table. i can access username page.user.identity.name, but how can use userid?

View 4 Replies

Excluding Action From Authorization In ASP

Jun 4, 2010

I am using forms authentication in my ASP.NET MVC application. I want to the signup page from the authorization process. I know I can add a location tag in my main web.config file or create a new web.config inside the specific folder. But I just to exclude one specific action in the User controller. How do I do it?

View 4 Replies

Compare Two Dates Excluding The Seconds?

Aug 16, 2010

I have a requirement where i want compare only the date part of a DateTime Object not the seconds with the another object.I tried if(DateTime.Compare(dt1, dt2) == 0) where it compares both date and seconds, but i want only date part.

View 3 Replies

Difference Between Two Dates (Excluding Weekends)?

May 26, 2010

This may not be correct place to rise this question. Even i'm making here..

My requirement is to get the number of days from from date to end date (for Eg. I have to text boxes from date and to date i will send datetime value to my Stored porcedure i need to calculate no of days between these dates (i.e. no of wroking days) Is there any function to achieve this in SQL SERVER 2005)

View 4 Replies

Web Forms :: How To Get The DateDiff While Excluding Weekends

Jan 15, 2010

i'm very new to this world, and trying to develope a system that calculates Holidays. I want to exclude saturdays and sunday but it doesnt.

[code]...

View 1 Replies

DataSource Controls :: Select Statement Excluding TOP 10?

Jul 6, 2010

I need to create a SELECT statement for a table that excluded the TOP 10 records.

"SELECT TOP 10 field1,field2,field3 FROM AppData ORDER BY field1 DESC" returns the first 10 records from the table but I need to retrieve only from the 21st record onwards.

I simply don't know how to do it because I'm not that strong with SQL. I searched the forum for some answers but can't find a solution that I can understand.

View 4 Replies

DataSource Controls :: Excluding Zero Numbers From The Query?

Jan 4, 2010

Is there any way, I can exclude the whole row if one particular column has zero in it. I have this query

select first_name, last_name , employee_num, cubeNumber, extension

from tblData left join tblfacility
ON tblData.employee_num = tblfacilit.employee_num
left join tblextension ext
on tblData.extension = ext.extension

tablExtension has phone number extension in it. If we don't know someones phone extension, we put zero for their extension, now there are tons of people who have zero extension.when I run this query, it returns same name lot of times with different cubeNumber so I get

Fisrt_name last_name employeenum cubeNumbae extension

a ax 1 12 0
a ax 1 13 0
a ax 1 14 0
b bx 2 12 0
b bx 2 13 0
b bx 2 14 0

Both emploee a and employee b extensions are zero in above case. I want both a and b to be displayed only once .Right now it is displaying them so many times with all the cubesNumber that have extension zero.

View 8 Replies

DataSource Controls :: .edmx Excluding A Relationship?

Apr 25, 2010

I need to know if I've done something wrong, or if the message I'm getting is nothing about which to be alarmed.I'm getting "The relationship '....' has columns that are not part of the key of the table on the primary side of the relation ship which is not supported, the relationship was excluded.

I built four tables, each with one foreign key. I'm assuming I haven't done anything wrong or unusual with my four tables (SQL statements generating the tables are shown below).However, I don't get any lines connecting tables together and all the examples I've seen today seem to have no problem with drawing the connecting lines all over the place.

[Code]....

View 6 Replies

Finding Number Of Days Until A Date, Excluding Weekends

Feb 4, 2011

I want to display the number of days left until next friday, but not counting Saturday or Sunday.

For example, the following would display the number 7.

[Code]....

[Code]....

View 5 Replies

Web Forms :: Validate TextBox Should Contain Only 50 Characters Excluding SPACE

May 7, 2015

There is a Textbox in which only 50 charactes are allowed to enter "excluding spaces between the characters"How to validate it as per requirement.

View 1 Replies

Forms Data Controls :: Excluding Subcontrols Of A FormView From 2-way Databinding?

Sep 3, 2010

So we use formviews all over the place that recently we've started putting user controls inside that have databinding controls inside them. In this instance it's a grid so

<formview>
<edititemtemplate>
<dynamiccontrol DataField="name" />
<customGrid DataField="addresses">
<columns>
<dynamiccontrol DataField="city" />
</columns>
</customGrid>
</edititemtemplate>
</formview>

That's the basic sitch. We have the customGrid, a usercontrol, bind to a collection on the main DataItem, and it contains dynamiccontrols (DD4) in its column templates so stuff in the cells displays right. (in reality, the customGrid is inside a dynamiccontrol like all the other fields here and is loaded based on ui hints, I've just stuck it in the pseudo-markup here for illustration). This works a charm, up until you try and update the formview. At that point, the FormView grabs all the keys from all the dynamiccontrols in its edititemtemplate, including keys and values from dynamiccontrols insde the customGrid control. Obviously this doesn't work as those are for an "address" object or something, and the formview is bound to a "person" object. What i desperately need is a way, inside customGrid, to stop FormView from getting out all the dynamiccontrol keys and values inside it. Overriding DataBindChildren doesn't work, nor DataBind. I don't know at what point or how the FormView queries its instantiated template for all the 2-way databinding controls it has inside it, but if I could get at that maybe I could figure something out. Or else, if I could make the customGrid stop sending back all the values inside it.

I tried overriding the formview's OnItemUpdating but that only so much; I can remove entries from the e.NewValues collection if they don't exist on the DataItem, but that doesn't if your custom sub control is binding items with fields of the same name as your main dataitem. There must be a way to abort this 2 way databinding in the custom control.

View 1 Replies

Web Forms :: Count No Of Site Hits Excluding Post Backs?

Nov 24, 2010

How to count no of site hits of a site with out using postbacks i.e we should not count

no of postbacks of a page only single hit should be taken in to account..

View 3 Replies

Security :: How To See The Number Of Customers Logged In And The Duration Etc Excluding Employee And Admin

Sep 17, 2010

i have a website which has 3 modules admin part,employee part and customer part . so when the admin login he has to see the number of customers logged in and the duration etc excluding employee and admin

View 4 Replies

Web Forms :: Disable Enter Key Only For Form, Excluding Multiline Textbox Or Any Other Such Control

Jan 21, 2011

I have developing ASP.Net Website and has a Webform with lots of controls. I have so many different controls on my page like buttons, textboxes, etc.

Now what happens is that generally on any form, when user hits Enter Key, it fires the first default button's click event or if focus is on any button, it fires that button click. I want to avoid this.

When user hits enter key on form basically nothing should happen. But let's say if he is entering into multiline textbox, that enter key should work to go to next line in that textbox.

I tried this.

[Code]....

but the problem is that then it disabled enter key for everything. But what I am looking for is that to avoid any button click event or any other postback to happen when user hits enter key while being on form anywhere. But Enter key should work when it is inside textbox or inside any such control.

View 2 Replies

Forms Data Controls :: How To Calculate The Difference Between Two Dates Excluding Sunday & Saturdays

Dec 27, 2010

i need to caluculate diffrence between two dates exculding saturdays & sundays

string startdate1 = 12/01/2010;
string enddate1 = 12/31/2010;

datetime diff = Convert.todatetime(startdate1 - endate1) how to exculde weekends

View 1 Replies

The BLL Logs Needs To Tell The UI That There Was An Error?

Jun 10, 2010

UI BLL DAL

[code]...

so if a method in the BLL returns say, a list of keyvaluepairs but the DAL has an error, the BLL logs the error but then it needs to tell the UI that there was an error. in this case, how should it be done? What is the best practice?should we have an out parameter for the BLL method so it returns an enum of success/dataretrievalfailure etc.or something else?

View 5 Replies

Iis - Where Does The Development Server Keep Its Logs

Jan 19, 2011

I am trying to sort out a problem where some relative urls are not resolving properly in an ASP.NET website. I want to see the HTTP logs to determine which URLs are being requested from the web server. I am using the ASP.NET Development Server, not IIS.So are there logs produced by the ASP.NET Development Server where I can check which files are being requested?Windows 7, 64bitVS2008 ASP.NET 3.5 SP1

View 4 Replies

Append Custom Value To IIS Logs From .NET?

Oct 4, 2010

I would simply like to append an additional value which is generated at runtime in a page to my IIS log entry for the current request (or as an alternative, overwrite one of the standard fields with my custom value). I can't find an example of writing a custom log handler in C# (I'm not proficient in ะก++)

View 2 Replies

How To Handle Errors On Server Logs

Dec 30, 2010

I am seeing a lot of these errors on the server logs.

Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 12/29/2010
Time: 9:16:28 AM
User: N/A
computer: LFIWEB1
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 12/29/2010 9:16:28 AM
Event time (UTC): 12/29/2010 3:16:28 PM
Event ID: 7843d62e326c41f1a7c819ec2b362418
Event sequence: 549
Event occurrence: 7
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1733199574/Root/ComfortlinkNET-1-129381012604990336
Trust level: Full
Application Virtual Path: /ComfortlinkNET
Application Path: D:WebappsComfortlinkNet
Machine name: LFIWEB1
Process information:
Process ID: 3896
Process name: w3wp.exe
Account name: NT AUTHORITYNETWORK SERVICE
Exception information:
Exception type: InvalidCastException
Exception message: Conversion from string "cindye" to type 'Integer' is not valid.
Request information:
Request URL: xxxxxxxxxxxxxxxx
Request path: xxxxxxxxxxxxxxxxxx
User host address:xxxxxxxxxxxxxx
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITYNETWORK SERVICE
Thread information:
Thread ID: 1
Thread account name: NT AUTHORITYNETWORK SERVICE
Is impersonating: False
Stack trace: at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)

View 3 Replies

How To Redirect The User To The Same Page He Was Before When He Logs In

May 16, 2010

I'm going to add my own user control LoginBox to my MasterPage.

I want to just refresh the page the user is currently on when he logs in to the system. How can I accomplish this?

View 2 Replies

Web App Logs To File With AppendAllText And It Has Error?

Nov 10, 2010

I logs error from Global.Application_Error method.File.AppendAllText method is used to write message to file with thread safe way using Monitor.However, I keep having the following error "The process cannot access the file 'D:ProjectsFPSPPSLog201011.txt' because it is being used by another process."The file was just created by ASP.NET. When next request writes message to the same file, it cause the issue.f I test after while like 5 min, it doesn' t have problem. But, if I test again after 1 second, the file is locked.

View 8 Replies

How To Show The Saved Preference When He Logs Back Again

Jan 10, 2010

Is this doable?

I bind my data to say GridView or Datagrid or Repeater and give user the ability to remove columns and save his preference and to show the saved preference when he logs back again. (In nutshell customizable Grid.) How to go about it?

View 4 Replies

To View MMC Event Logs For Remote Servers?

Nov 4, 2010

I need to write an application that retrieves entries in the MMC event logs (application, system and security events) and would like to do so in ASP if possible. This is an internal application. Someone told me to use PowerShell.

Is it possible to do this in ASP (and use PowerShell) or do I need to use some other tools? I would like to retrieve events into a DataGrid etc.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved