default variables

Hi!

I am new to ASP, and I have what I think is probably an easy question? Not sure

I want to echo a variable with this code inside some html:
 

<td><%=thevariable%></td>

 

 I have variable1, variable2 and variable 3, one of which I need to assign to thevarialbe.  Usually one of them will have a value. But in the event that one doesn't, I need to somehow give thevariable a default value, plus if it does have a value, i want to assign it to thevariable which is being displayed in the html.

Any suggestions?

Cheers,
Doug

 

Read More

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s