Hi,
After years and years of procrastinating I have finally decided to bite the bullet and convert my ASP classic code to PHP. Some bits are relatively straightforward but I am having real problems understanding how best to work with the results of sql queries. In ASP classic I can dump the...
Hi
I have a page which lets me upload files using HTML5/JavaScript. Files get uploaded after being dragged and dropped. This part is working very well.
<!DOCTYPE html>
<html>
<head>
<title>dnd binary upload</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">...
Hi
Although the code is ASP I am posting in the IIS forum as the code works on my Windows 2003 server but not my Windows 2008 server with IIS7.
My code is as follows:
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Test Email"
myMail.From="Ed Mozley <xxx@xxx.com>"
myMail.To="Ed...
Hi,
I wrote an Outlook macro to make sure an email was filed in the correct sent items folder. To distribute it to all staff it seems the best way to do this is to convert it to an Outlook add-in which I am attempting to do in Visual Studio 2010.
The problem is that the ItemAdd event is not...
Hi
I am trying to read an RSS feed with the following:
Set xmlDOM = CreateObject("MSXML2.DOMDocument")
xmlDOM.async = False
xmlDOM.setProperty "ServerHTTPRequest", True
xmlDOM.Load("http://www.bwbllp.com/events/feed/")
Set itemList = xmlDOM.getElementsByTagName("entry")
For Each...
Hi
I have a folder on a server where I keep all my software installs. So for Java for example I have the .exe and a little batch file which runs that .exe with various parameters.
If I want to set up a group policy to install Java on all machines when they are turned on should I put a...
Hi,
I have a table in my database that contains an id and a Title field.
id | Title
----------
1 Golf
2 Football
3 Rugby
I want to list all the records but displayed in a table which is going to be my left hand menu. Each item on my menu needs to be a hyperlink which contains the id...
Hi
I have found some code to insert images onto a canvas using jQuery. Now I am trying to figure out if it's possible to add extra info the the images inserted - width, height, title, id.
Any ideas?
var canvas = $("#c");
var c = canvas[0].getContext("2d");
var path =...
Hi,
I have a page with 4 divs - a header, left, right and footer. Left and right are held in another wrapper div. I am trying to draw a grid in my right div but am not quite sure how to this. My code so far is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC...
Hi,
In my .aspx page I have some code to display some data from a SQL query:
<asp:Label ID="EventDetailsLabel" runat="server"
Text='<%# Eval("EventDetails").ToString().Replace(Environment.NewLine,"<br />") %>' CssClass="upcomingevents_details" />...
Hi
I have a link which runs an AJAX request which opens a DIV that contains an HTML form that contains other divs. I then run call a second javascript function which populates the form.
What I have discovered is that unless I have some kind of pause the function that populates the form comes...
Hi,
In my code file I have a line:
Imports DataConnection
The word DataConnection is underlined in green and it says it can't be found.
I have a file called DbConn.vb which contains the following:
Imports Microsoft.VisualBasic
Imports System.Data.Odbc
Imports System.Data
Imports...
Hi
I have a VB.NET program that audits the software on a PC and also detects it's operating system. I have found that if it tries to audit a PC that is switched off the program can get stuck so I have tried to ping a machine first and if it's unresponsive to move on to the next PC.
Generally...
Hi
I have got some code that returns a list of all applications installed on a PC. I am now trying to run it across all PC's on my network by loading all of my PC names into a SqlDataReader and then looping through that.
What I am finding is that the procedure is being called before the last...
Hi
I am trying to execute a IF NOT THEN...BEGIN....END statement stored in a string in VB.NET but am not having much luck. It says there is an error at "BEGIN":
strSQL = "IF NOT EXISTS(SELECT * FROM AppsCheck_Apps WHERE ApplicationName='" & InstalledPrograms(i).DisplayName & "' " _...
Hi,
Does anyone know of any good/simple examples of building a folder tree based on the contents of a table?
FolderID | ParentID | Name
--------------------------
1 0 My Documents
2 1 Personal
3 1 Work
4 3 Confidential
5...
Hi,
I am working on a system that creates a logical file structure with folders stored in a database. I each folder has a unique identifier. My function to create this is with code I got from the Microsoft website:
Function CreateGUID()
Randomize Timer
Dim tmpCounter,tmpGUID
Const...
Hi I am trying to get some records in date order and then update a field OrderOnSchedule with an incremental counter - I can't see where I am going wrong?
DECLARE @counter int
SET @counter = 0
WITH q AS
(
SELECT ScheduleDocuments.DocID, Documents.Title...
Hi there,
I am trying to delete records from a table called ScheduleDocuments but I don't want to touch the Documents table - I'm just using that to check the FolderID. If I do a SELECT statement it shows the records I want to to delete but when I try and do a DELETE statement it says there is...
Hi,
I am trying to add some security to a web app I am writing which will mean if you try and run it more than 100m from a certain location it will redirect to a page gpsfail.asp otherwise it will go to loginform.asp
If you are not logged in it redirects to a page that has this code:
<body...
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.