CodeQL library for C#
codeql/csharp-all 0.8.12 (changelog, source)
Search

Module AspNet

Provides all ASP.NET classes.

All ASP.NET elements have the common base class AspElement.

Import path

import semmle.code.asp.AspNet

Imports

csharp

The default C# QL library.

Classes

AspAttribute

An attribute. Either a code block (AspCode), a data-binding expression (AspDataBinding), or a quoted string (AspQuotedString).

AspBlockCode

A block of code that will be evaluated for its side effects, for example <% Response.Write(2 + 3) %>.

AspCloseTag

A close tag, for example the tag on line 3 in

AspCode

A code block. Either a block of code (AspBlockCode) or inline code (AspInlineCode).

AspComment

A comment, for example <!-- TODO -->.

AspDataBinding

A data-binding expression, for example <%# myArray %> in

AspDirective

A directive, for example <%@ Page Language="C#" %>.

AspElement

An ASP.NET program element. Either an attribute (AspAttribute), an open tag (AspOpenTag), a close tag (AspCloseTag), a comment (AspComment), a directive (AspDirective), arbitrary text (AspText), or an XML directive (AspXmlDirective).

AspInlineCode

Inline code, for example <%= 2 + 3 %>.

AspOpenTag

An open tag, for example the tag on line 1 in

AspQuotedString

A quoted string used as an attribute in a tag.

AspServerComment

A comment that will be stripped out on the server, for example <%-- TODO --%>.

AspText

Arbitrary text. It will be inserted into the document as is.

AspXmlDirective

An XML directive, such as a DOCTYPE declaration.

CodeBehindFile

An .aspx file which is implemented by a ‘CodeBehind’ class.

PageDirective

A ‘Page’ ASP directive.