C# 클래스 CTCClassSchedule.Common.Html

Contains extension methods for the HtmlHelper class
파일 보기 프로젝트 열기: BellevueCollege/ClassSchedule

공개 메소드들

메소드 설명
CreditsValue ( this html, decimal credits ) : IHtmlString

Formats a Course credits for display to the user

This method removes decimal information if the value is a whole number.

CreditsValue ( this html, decimal credits, string nullMessage = null ) : IHtmlString

Formats a Course credits for display to the user

This method removes decimal information if the value is a whole number.

FormatWithSearchTerm ( this html, string searchTerm, string text ) : IHtmlString

Wrapper for Helpers.FormatWithSearchTerm which returns a Razor string.

Include ( this html, string fileAndPath ) : IHtmlString

Provides server-side include functionality

MVC does not support server-side includes on its own, so this method provides that functionality. It will include the file specified - including any nested server-side includes that are present in that file (and so on, etc.)

PageHelper ( this html ) : HtmlHelper

Provides access to the MVC HtmlHelper from Razor helpers.

See http://stackoverflow.com/questions/4710853/using-mvc-htmlhelper-extensions-from-razor-declarative-views

SectionCourseHeading ( this html, Course course, string credits = null, string searchTerm = null ) : IHtmlString
SectionCourseHeading ( this html, SectionWithSeats sec, string credits = null, string searchTerm = null ) : IHtmlString

Constructs course headings for blocks of sections on pages that display it.

SectionCourseHeading ( this html, string subject, string courseNumber, string courseTitle, string credits = null, string searchTerm = null ) : IHtmlString

비공개 메소드들

메소드 설명
ProcessIncludeFile ( string fileAndPath, System.Web.HttpServerUtilityBase server ) : string

TrimCreditsValue ( decimal credits ) : string

메소드 상세

CreditsValue() 공개 정적인 메소드

Formats a Course credits for display to the user
This method removes decimal information if the value is a whole number.
public static CreditsValue ( this html, decimal credits ) : IHtmlString
html this
credits decimal The credits value to format
리턴 IHtmlString

CreditsValue() 공개 정적인 메소드

Formats a Course credits for display to the user
This method removes decimal information if the value is a whole number.
public static CreditsValue ( this html, decimal credits, string nullMessage = null ) : IHtmlString
html this
credits decimal The credits value to format
nullMessage string Optional HTML to display if is null
리턴 IHtmlString

FormatWithSearchTerm() 공개 정적인 메소드

Wrapper for Helpers.FormatWithSearchTerm which returns a Razor string.
public static FormatWithSearchTerm ( this html, string searchTerm, string text ) : IHtmlString
html this
searchTerm string
text string
리턴 IHtmlString

Include() 공개 정적인 메소드

Provides server-side include functionality
MVC does not support server-side includes on its own, so this method provides that functionality. It will include the file specified - including any nested server-side includes that are present in that file (and so on, etc.)
public static Include ( this html, string fileAndPath ) : IHtmlString
html this
fileAndPath string
리턴 IHtmlString

PageHelper() 공개 정적인 메소드

Provides access to the MVC HtmlHelper from Razor helpers.
See http://stackoverflow.com/questions/4710853/using-mvc-htmlhelper-extensions-from-razor-declarative-views
public static PageHelper ( this html ) : HtmlHelper
html this
리턴 HtmlHelper

SectionCourseHeading() 공개 정적인 메소드

public static SectionCourseHeading ( this html, Course course, string credits = null, string searchTerm = null ) : IHtmlString
html this
course Course
credits string
searchTerm string
리턴 IHtmlString

SectionCourseHeading() 공개 정적인 메소드

Constructs course headings for blocks of sections on pages that display it.
public static SectionCourseHeading ( this html, SectionWithSeats sec, string credits = null, string searchTerm = null ) : IHtmlString
html this
sec CTCClassSchedule.Models.SectionWithSeats
credits string
searchTerm string
리턴 IHtmlString

SectionCourseHeading() 공개 정적인 메소드

public static SectionCourseHeading ( this html, string subject, string courseNumber, string courseTitle, string credits = null, string searchTerm = null ) : IHtmlString
html this
subject string
courseNumber string
courseTitle string
credits string
searchTerm string
리턴 IHtmlString