I'm just starting with ASP.NET, C# and HTML.
I want to display a text message in the browser if an email was sent successfully.
How do I show in the HTML body the value of a variable that was previously defined in the script part of the
string theResult = "Success! :)";
string theResult = "Failure! :(";
<form id="form1" runat="server">
You may want to use the
asp:Literal server control which it's syntax is:
<asp:Literal runat="server" ID="LiteralText"/>
And assign text to it in code behind:
LiteralText.Text = theResult;