The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ASP / X10



> I'm beginning to see the light now, many thanks.
>
> So each button on the page just has a url that is the same page as I am
> on,
> But I add the parameters on the end.
>
> All I need to do is make sure my dll ignores blank values?

Well you could in the code do this instead:

<%
Set ObjReference = Server.CreateObject("Example1.x10test")
If Request.QueryString("code") = "" Or Request.QueryString("value") = ""
Then
  Response.Write "BAD X10 Command"
Else
objReference.SendX10 Request.QueryString("code"),
Request.QueryString("value")
Response.Redirect "pageyoucamefrom.asp"
End If

Kind Regards,
Chris Bond



http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe:  ukha_d-subscribe@xxxxxxx
Unsubscribe:  ukha_d-unsubscribe@xxxxxxx
List owner:  ukha_d-owner@xxxxxxx
List of UKHA Groups here - http://groups.yahoo.com/group/UKHA_Grouplists/


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.