PDA

View Full Version : using a variable in a response.write line?


cwfontan
01-18-2008, 09:32 PM
ok trying to use a variable in a response.write check it out.

var_selector is a declared variable and I can write ti to the page using
<%=var_selector%> but how do I use it in the statement below?


<% IF (rs_subs__MMColParam > "0") Then
response.write "<option value=""none"">var_selector</option>"
Else
response.write "<option value=""none"">Select Category</option>"
end if
While (NOT rs_department.EOF)
%>

shyam
01-19-2008, 12:38 PM
<% IF (rs_subs__MMColParam > "0") Then
response.write "<option value=""none"">" & var_selector & "</option>"
Else
response.write "<option value=""none"">Select Category</option>"
end if
While (NOT rs_department.EOF)
%>