Using this http://forums.homeseer.com/showthrea...light=web+form i've started to test some parts of the page but when it comes to the buttons for the stations i'm stuck.
This is it so far;
PHP Code:
<form runat="server">
<p>
</p>
<p>
<%
Dim Total As Integer
Dim StationName As String
Dim ButtonStr As String
Total = 1
Do Until Total = 9
StationName = hs.getinisetting("Title", Total, "Unknown", "radio.ini")
response.write("<br>")
ButtonStr = "<asp:Button id=" & chr(34) & Total & chr(34) & " onclick=""RadioStn"" runat=""server"" Text=" & chr(34) & StationName & chr(34) & "></asp:Button>"
hs.writelog("Test", ButtonStr)
response.write(ButtonStr)
response.write("<br>")
Total = Total + 1
Loop
%>
</p>
<p>
</p>
<p>
</p>
<!-- Insert content here -->
</form>
When I write the button line to the log it appears OK (albeit it seems to try and parse it in the HTML log, I have to get it from the GUI)...quotes don't look wrong;
PHP Code:
21/04/2010 14:54:15 - Test - <asp:Button id="4" onclick="RadioStn" runat="server" Text="Galaxy FM Birmingham"></asp:Button>
Thanks...