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.
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?
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?
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.
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)
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.
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
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.
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.
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
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.
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
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.
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?
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
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 ะก++)
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.
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?
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.