Simple Example Of IF/THEN Using C# | |||
| |||
<%@ Page Language="C#" %> <script runat="server"> void button1_Click(Object sender, EventArgs e) { if (textbox1.Text == "ASPFree.com") { Literal1.Text = "Textbox Condition was <b>True</b>"; } else { Literal1.Text = "Textbox Condition was <b>False</b>"; } } </script> <html> <head> </head> <body> <h2 align="center">Simple If/Then statement in C# </h2> <p align="left"> This is simple if/then statement to help get started learning C#. Above source is replacable with ASP. Tags: C# if then | |||
| |||
| |||
Login for comment |