I have some asp that allows me to click on a CustomerName to see more detailed information about that Customer Grp. ie
CustomerNumber CustomerName Grp
1 Joes Store W23
2 Quick Stop
3 Joes Store #2 W23
if CustomerNumber 1 (or 3) is selected the link would return the following on the next page:
CustomerNumber City State
1 Detroit MI
3 Chicago IL
What I am trying to do on this page is <strong> the Customer Number that was selected to get this information so that it will stand out (seeing that 1 or 3 could have been selected to get the same output). But for some reason I am having a problem with my comparison:
<%myVar1=Request.Querystring("CustomerNumber"%>
<%
x_ID = rs("ID"
x_CustomerNumber = rs("CustomerNumber"
x_City = rs("City"
x_State = rs("State"
%>
<tr bgcolor="<%= bgcolor %>">
<td><font size="-1">
<% response.write ucase(x_ID) %>
</font></td>
<td><font size="-1">
<% response.write x_CustomerNumber %>
</font></td>
<td>
<% if MyVar1 = x_CustomerNumber then%>
<font size="-1"><strong><% response.write ucase(x_CustomerName) %></strong></font>
<% else%>
<font size="-1"><% response.write ucase(x_CustomerName) %></font>
<%end if%>
I've tried response write on both x_CustomerNumber and MyVar1, they both get the same output, but MyVar1 = x_CustomerNumber doesn't work, please help
CustomerNumber CustomerName Grp
1 Joes Store W23
2 Quick Stop
3 Joes Store #2 W23
if CustomerNumber 1 (or 3) is selected the link would return the following on the next page:
CustomerNumber City State
1 Detroit MI
3 Chicago IL
What I am trying to do on this page is <strong> the Customer Number that was selected to get this information so that it will stand out (seeing that 1 or 3 could have been selected to get the same output). But for some reason I am having a problem with my comparison:
<%myVar1=Request.Querystring("CustomerNumber"%>
<%
x_ID = rs("ID"
x_CustomerNumber = rs("CustomerNumber"
x_City = rs("City"
x_State = rs("State"
%>
<tr bgcolor="<%= bgcolor %>">
<td><font size="-1">
<% response.write ucase(x_ID) %>
</font></td>
<td><font size="-1">
<% response.write x_CustomerNumber %>
</font></td>
<td>
<% if MyVar1 = x_CustomerNumber then%>
<font size="-1"><strong><% response.write ucase(x_CustomerName) %></strong></font>
<% else%>
<font size="-1"><% response.write ucase(x_CustomerName) %></font>
<%end if%>
I've tried response write on both x_CustomerNumber and MyVar1, they both get the same output, but MyVar1 = x_CustomerNumber doesn't work, please help