0

Sometimes, I see code something like this:

<asp:ListItem Value="SomeValue">SomeValue</asp:ListItem>

<asp:literal id="SomeId" Runat="server" Text="SomeText"></asp:literal>

Why put asp: when I can just use <ListItem>...</ListItem> ? What is the benefit of using it?

1
  • In what context does "when I can just use <ListItem>...</ListItem>" come from? Commented Mar 5, 2015 at 16:09

1 Answer 1

1
  • When a browser requests an HTML file, the server returns the file
  • When a browser requests an ASP file, IIS passes the request to the ASP engine. The ASP engine reads the ASP file, line by line, and executes the scripts in the file. Finally, the ASP file is returned to the browser as plain HTML

What can ASP do for you?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.