c# application | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

c# application

where do you add the c# coding, like in the script tags ?

23rd Aug 2016, 12:33 AM
Hoeft Brian
Hoeft Brian - avatar
3 Answers
+ 1
just trying to figure out where to apply it in general
23rd Aug 2016, 8:43 AM
Hoeft Brian
Hoeft Brian - avatar
+ 1
if you are doing a Windows Form Application, the entire class will be composed of C# codes already. But if you are making a Web Application using Asp.Net, It can be placed at any valid location as long as it is enclosed with a <% %> for example: <% lbl.Text = "Hello, world!"; %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <asp:Label runat="server" id="lbl"> </asp:Label> </div> </form> </body> </html>
23rd Aug 2016, 11:25 AM
Erwin Mesias
Erwin Mesias - avatar
0
what kind of application are you doing? Is it a Web Application?
23rd Aug 2016, 3:17 AM
Erwin Mesias
Erwin Mesias - avatar