+ 1
c# application
where do you add the c# coding, like in the script tags ?
3 odpowiedzi
+ 1
just trying to figure out where to apply it in general
+ 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>
0
what kind of application are you doing? Is it a Web Application?