My son goes beyond his alloted time to play games online. I'm looking for advice on how to write an app (in VB,C#,suggestions?) that tracks the amount of time spent on a given web site. If he exceeds his time I'll display something to mess with his mind or maybe scare the #*&#$*& out of him...
I'd like to create an application (C# console app, vbs, suggestions?) that is launched through Windows Scheduler which simply looks for an existing instance of Internet Explorer and if found, reads the URL entered in the address bar. It will run on a single machine. Any suggestions on how to...
I have an xml document containing a list of 'Events' which ultimately gets presented to end users. How can I filter out data whose date is in the past?
<Events>
<Event>
<Date>08/24/06</Date>
</Event>
<Event>
<Date>09/24/06</Date>
</Event>
</Events>
When running the following query against Access I get the "Item cannot be found in the collection corresponding to the requested name or ordinal" error.
SELECT u.id, u.name, u.active, ut.descr FROM tblUsers AS u LEFT OUTER JOIN tblUserTypes AS ut ON ut.userType = u.userType
Using the same...
When running the following query against Access I get the "Item cannot be found in the collection corresponding to the requested name or ordinal" error.
SELECT u.id, u.name, u.active, ut.descr FROM tblUsers AS u LEFT OUTER JOIN tblUserTypes AS ut ON ut.userType = u.userType
Using the same...
I open a new flash file and resize it to the dimensions of a series of .bmp files that I'm going to import. When I import the files they are not centered on the stage - there seems to be about a 40px pad on the left and top. How can I move the images in all the frames to remove this space? I've...
I created and published a movie. When I open the generated html file the movie plays fine. When I copy the code into an existing web page and copy the .fla file into the same directory as the web page the flash file does not load. I did not change any of the existing code, simply copied it into...
I'm trying to load data from a .txt file into SQL Server using the following:
BULK INSERT tblHours
FROM 'c:\test.txt'
WITH
(
FIRSTROW = 2,
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
My text file contains:
HourId,HourCnt,WorkDt,ProjId,TypeCd
1,2,'2005-07-30',3,'COMP'...
I have a dropdown list and button that cause postback, each with events that are getting fired correctly after Page_Load. How can I determine which control caused the postback in OnInit()?
All my aspx pages have public properties that control the display of menus. These properties are part of my BasePage class that overrides the Page class. When an unhandled exception is thrown I'm executing (Server.Execute) my error page. What I'm trying to do is maintain the properties of the...
All my aspx pages are overridden with my own BasePage class. It handles logging and display of errors, among other things. I've also implemented a page template approach using custom controls that contain nested controls to paint header, menus, footer etc. The BasePage class has properties to...
Fairly new to .net and OO and am confused about accessing properties of my aspx page inside usercontrols. I have 3 web sites all with identical structure. Each site has its own solution with separate namespaces. I also have a BasePage class that overwrites the Page class to initialize certain...
I have an asp page with a list of links. Each link opens a new window which points to the same page, lets call it process.asp, and passes its destination URL in the querystring. process.asp logs some info then redirects to the URL in the querystring. The problem is that some links can be email...
Is it possible to maintain the state of a treeview control when it has been re-initialized? In other words, I populate a treeview control, make some changes that require the tree to be reloaded, then when it reloads any nodes that were expanded prior to the reload (or at least the selectedItem...
I have buttons on a form that allow the selected node of a treeview to be repositioned up or down. Everything works fine except the image property. The images do get swapped but clicking on either of the repositioned nodes changes the images back to the original settings even though the...
I've got a method that returns and XML string. It is loaded into the DOM, along with an XSL file and transformed into HTML. I'm creating a <xsl:sort/> node dynamically when the XSL is loaded into the DOM. The sort node does get created correctly but the sort does not take affect. If I do not...
I'm attempting to load an xsl file into the DOM ("MSXML2.DOMDocument.4.0") and modify the "select" attribute on a <xsl:sort/> node like this:
Set objSortNode = xslObj.documentElement.selectSingleNode("//xsl:sort")
I'm getting the following error:
"Reference...
Could someone explain the process of copying folders? I have a folder with read-only files in it that I want to copy to a new location. The first time is fine but when I re-copy over an existing folder I get the permission denied error because the files already exist and are read-only. Do I need...
I have a web page with multiple anchor tags. This page contains links that popup a window with a form on it. When the form in the popup has been submitted I need to reload the parent:
self.opener.location.reload(true);
This works fine but even though the anchor is at the end of the url in the...
When viewing the properties of a virtual web site on the "Home Directory" tab in the IIS console (or the properties of a virtual directory) there is a field called "Application name". Could someone please explain what this does exactly? Thanks in advance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.