Hi,

I am working with the web templates for Turning on and off the
notifications. I am stuck at trying to compare 2 values. One is being passed
through the address and the other is from the device name... here is what I
am doing:

test.asp

<html>
        <body>
        <%CURRENT_MAP% (%URL_VALUE% map)>
        
        <%START_DEVICE_LIST%>
        <table>
        <tr>
                <td>
                <%IF% (%MATCH% ((%URL_VALUE% (dev,"")), %DEVICE% HOSTNAME))>
                        <%DEVICE% HOSTNAME>
                <%ELSE%>
                         
                <%ENDIF%>
                </td>
                <td>
                <%DEVICE% UNIQUE_ID>
                </td>
        </tr>
        </table>

        <%END_DEVICE_LIST%>
        </body>
</html>

I am sending in the url of "...\test.asp?map=test.ini&dev=testdev"

It displays all of the UNIQUE_ID values but not the name of the Device when
it matches dev. I can also display the Device Name with 
<%DEVICE% HOSTNAME>
<%DEVICE% DISPLAY_NAME>
<%URL_VALUE% (dev,"")>
<%URL_VALUE% dev>

So I am assuming the problem lies with comparing the 2 values. Is this the
correct statement to  use? Or do I have to do something else?
<%IF% (%MATCH% ((%URL_VALUE% (dev,"")), %DEVICE% HOSTNAME))>


Thanks,

Kevin Lindsay
PAETEC Communications, Inc.
ETG Systems Engineer, Co-Op

Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Reply via email to