Sunday, 18 August 2013

Would like to create a variable in ASP to change a value

Would like to create a variable in ASP to change a value

So I have a piece of code within the header of my ASP
<% divrec = request.QueryString("div")%>
Which pulls sting info
In the body of my ASP code I have the following tag
<% =divrec %>
Which outputs as "Division 1" The problem is I would like to query against
the variable <% =divrec > using SQL in my ASP code but the column name in
my SQL table is "DIV1". Is there a way that I can change <% =divrec %> to
equal "DIV1" instead of "Division 1"

No comments:

Post a Comment