top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Write a program using code nuggets to create a simple application?

0 votes
260 views
Write a program using code nuggets to create a simple application?
posted Sep 13, 2016 by Sathyasree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

-To create a program using ASP.NET code nuggets should be written using the syntax as follows:

-<%= %>: this is for the blocks and it indicates code nuggets that are used within the HTML markup:

<h1> Code Nudget</h1>
<h2> This <%=name %>, is the only reason <%= DateTime.Now.Year %> </h2> 
<p> Checkout <a href= “/Products/<%=productId %> this product </a> </p>

-Code nuggets is useful when displaying of the characters as they act as references to start and stop the code sequence and used in an easy manner.

answer Sep 14, 2016 by Shivaranjini
...