User-2006371901 posted
I'm just merely trying to take a querystring value, make sure its a string, then associate a string value to treecat depending on whats in the QueryString ; can't understand why it's not recognizing this as a string, getting Cannot implicitly
convert type 'char' to 'string' on the qtree = '*' values
<script runat="server" language="C#">
string qcheck()
{
string qtree;
string treecat;
qtree = Request.QueryString["c"].ToString();
if (qtree = '1') {
treecat = "Citrus";
}
else if (qtree = '2') {
treecat = "Shade";
}
return treecat;
}
</script>
???
Ned