ee99ee2
02-28-04, 10:36 PM
I'm new to C#, so go easy. :)
I've got a little script that I want to output text from a codebehind file. Here's my code:
Response.Write("myInt: $myint<br>");
$myint is set, and I just want to echo it's value. I'm coming from PHP, so help me out here. Doing the above just prints the text "myInt: $myint". I want $myint replaced with the var $myint.
I've also tried the following, but got an error about overloading:
Response.Write("myInt: {0}<br>", $myint);
I'm used to just typing echo "whatever I want to echo $var $var2". Is there a way to just use echo or print like I would in PHP in C#/ASP.NET?
-ee99ee
I've got a little script that I want to output text from a codebehind file. Here's my code:
Response.Write("myInt: $myint<br>");
$myint is set, and I just want to echo it's value. I'm coming from PHP, so help me out here. Doing the above just prints the text "myInt: $myint". I want $myint replaced with the var $myint.
I've also tried the following, but got an error about overloading:
Response.Write("myInt: {0}<br>", $myint);
I'm used to just typing echo "whatever I want to echo $var $var2". Is there a way to just use echo or print like I would in PHP in C#/ASP.NET?
-ee99ee