J
Jesse
I am trying to display a string located in my code behind page. I have
tried accessing the variable directly, and also as a Property. Every
time I recieve the following error:
CS0201: Only assignment, call, increment, decrement, and new object
expressions can be used as a statement
This is the html:
<td style="WIDTH: 703px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 28px"
width="703" background= "<%FirstTD;%>" >
And this is the code:
public string FirstTD
{
get
{
if(Request.QueryString["style"]=="children")
firstTD = "images/bg_kathy_template_r2_c2.gif";
else
firstTD = string.Empty;
return firstTD;
}
}
Any ideas. I know this is basic, but I would really appreciate any input.
tried accessing the variable directly, and also as a Property. Every
time I recieve the following error:
CS0201: Only assignment, call, increment, decrement, and new object
expressions can be used as a statement
This is the html:
<td style="WIDTH: 703px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 28px"
width="703" background= "<%FirstTD;%>" >
And this is the code:
public string FirstTD
{
get
{
if(Request.QueryString["style"]=="children")
firstTD = "images/bg_kathy_template_r2_c2.gif";
else
firstTD = string.Empty;
return firstTD;
}
}
Any ideas. I know this is basic, but I would really appreciate any input.