T
Terence
Dear all,
I am converting an asp application to aspx and encountered a problem.
The problem is that i need output different html code based on some
condition. For example,
in asp, there is a variable (let say, bEditMode), if bEditMode= false, then
the page display the value in text.
If the bEditMode = true, then it should display textbox rather than just the
text.
In asp, it can be done easily by:
if bEditMode Then
Response.Write "User Name from database"
Else
Response.Write "<input type=""text"" />"
End If
How can I do this in aspx ?
Thanks in advance.
Terence
I am converting an asp application to aspx and encountered a problem.
The problem is that i need output different html code based on some
condition. For example,
in asp, there is a variable (let say, bEditMode), if bEditMode= false, then
the page display the value in text.
If the bEditMode = true, then it should display textbox rather than just the
text.
In asp, it can be done easily by:
if bEditMode Then
Response.Write "User Name from database"
Else
Response.Write "<input type=""text"" />"
End If
How can I do this in aspx ?
Thanks in advance.
Terence