C# 클래스 NSoft.NFramework.Web.Tools.WebAppTool

웹 Application에서 공통으로 사용할 Utility Class입니다.
파일 보기 프로젝트 열기: debop/NFramework

공개 메소드들

메소드 설명
DisplayMessage ( this control, string message, System.Color foreColor ) : void

메시지를 ITextControl에 출력한다.

DisplayMessage ( this control, string message, bool error = false ) : void

메시지를 ITextControl에 출력한다.

EnumHasFlag ( this value, Enum flag ) : bool

Flag 형식의 Enum 에서 특정 Enum값이 flag enum값을 가지는지 파악합니다.

GetClientImageUrl ( string imageFilename ) : string

Client side용 image url를 만든다.

GetGlobalResourceString ( string classKey, string resourceKey, string defaultValue = "" ) : string

Global Resource String을 로드합니다.

GetImageUrl ( string imageFilename, string localeKey = "", bool isRunatServer = true ) : string

Theme이 적용된 Image의 Url을 빌드한다.

GetLocalResourceString ( string classKey, string resourceKey, string defaultValue = "" ) : string

Local Resource String을 로드합니다.

GetLocales ( ) : IList

지역화 목록을 반환합니다.

GetParam ( string url ) : NameValueCollection

Url에서 ? 구분자로 Parameter 반환한다.

GetParamString ( string url ) : string

Url에서 ? 구분자로 Parameter 반환한다.

GetParams ( string url ) : string[]

Url에서 ? 구분자로 Parameter 반환한다.

GetScriptPath ( string virtualPath ) : string

Script 전체 경로를 반환한다.

GetThemeAssemblyNames ( ) : IList

테마 목록을 반환합니다.

GetUri ( string url ) : string

Url에서 ? 구분자로 호출하려는 서버페이지

MessageBox ( MessageBoxDisplayKind messageBoxDisplayKind, string title, string text, MessageType messageType = MessageType.Normal, MessageButtons messageButton = MessageButtons.Ok, System page = null, string returnUrl = "", bool endResponse = true ) : void

메시지 출력 page 가 null 이 아니면 RegisterStartupScript 로 스크립트 추가되어지므로 호출후 Response.End()등으로 실행중지시 출력되어지지 않습니다.

MessageBox ( string text, MessageType messageType, MessageButtons messageButton ) : void

메시지 출력

MessageBox ( string text, Page page ) : void

메시지 출력 page 가 null 이 아니면 RegisterStartupScript 로 스크립트 추가되어지므로 호출후 Response.End()등으로 실행중지시 출력되어지지 않습니다.

MessageBox ( string text, Page page, string returnUrl ) : void

메시지 출력

MessageBox ( string text, System ctl ) : void

메시지 출력 ctl 가 null 이 아니면 RegisterStartupScript 로 스크립트 추가되어지므로 호출후 Response.End()등으로 실행중지시 출력되어지지 않습니다.

MessageBox ( string text, string returnUrl = "" ) : void

메시지 출력

ParamUrlEncode ( string url ) : string

url의 파라미터 값을 urlEncode

RemoveNullStringParam ( string url ) : string

파라미터중 값이 없는 것은 제외시킨다.

ReplaceParamValue ( string url, NameValueCollection cols, bool isEnc ) : string

url의 파람값들을 collection 값에 있는 파람값들로 교체한다.

ReplaceParamValue ( string url, string keyName, object v ) : string

파라미터 값을 변경한다.

ResolveUrl ( string relativeUrl ) : string

URL을 요청 클라이언트에서 사용할 수 있는 URL로 변환합니다.(Page.ResolveUrl)

ShowMessageOfAccessDenied ( ) : void
ShowMessageOfLoginFail ( ) : void
ToJsStringArray ( ) : string

Toes the js string array.

UrlParamConcat ( string url, string param ) : string

url과 파라미터 값을 연결한다.

UrlParamConcat ( string url0, string url1, string param ) : string

url0 + url1 + param 합하여 반환한다.

WrapScriptTag ( ) : string

Wraps the script tag.

비공개 메소드들

메소드 설명
CallClientValidator ( string prefix ) : string

Calls the client validator.

메소드 상세

DisplayMessage() 공개 정적인 메소드

메시지를 ITextControl에 출력한다.
public static DisplayMessage ( this control, string message, System.Color foreColor ) : void
control this ITextControl
message string 메시지
foreColor System.Color 색상
리턴 void

DisplayMessage() 공개 정적인 메소드

메시지를 ITextControl에 출력한다.
public static DisplayMessage ( this control, string message, bool error = false ) : void
control this ITextControl
message string 메시지
error bool 오류메시지여부
리턴 void

EnumHasFlag() 공개 정적인 메소드

Flag 형식의 Enum 에서 특정 Enum값이 flag enum값을 가지는지 파악합니다.
public static EnumHasFlag ( this value, Enum flag ) : bool
value this
flag System.Enum
리턴 bool

GetClientImageUrl() 공개 정적인 메소드

Client side용 image url를 만든다.
public static GetClientImageUrl ( string imageFilename ) : string
imageFilename string
리턴 string

GetGlobalResourceString() 공개 정적인 메소드

Global Resource String을 로드합니다.
public static GetGlobalResourceString ( string classKey, string resourceKey, string defaultValue = "" ) : string
classKey string 리소스 ClassKey
resourceKey string 리소스 ResourceKey
defaultValue string 리소스 기본값
리턴 string

GetImageUrl() 공개 정적인 메소드

Theme이 적용된 Image의 Url을 빌드한다.
public static GetImageUrl ( string imageFilename, string localeKey = "", bool isRunatServer = true ) : string
imageFilename string
localeKey string
isRunatServer bool
리턴 string

GetLocalResourceString() 공개 정적인 메소드

Local Resource String을 로드합니다.
public static GetLocalResourceString ( string classKey, string resourceKey, string defaultValue = "" ) : string
classKey string 리소스 ClassKey
resourceKey string 리소스 ResourceKey
defaultValue string 리소스 기본값
리턴 string

GetLocales() 공개 정적인 메소드

지역화 목록을 반환합니다.
public static GetLocales ( ) : IList
리턴 IList

GetParam() 공개 정적인 메소드

Url에서 ? 구분자로 Parameter 반환한다.
public static GetParam ( string url ) : NameValueCollection
url string
리턴 NameValueCollection

GetParamString() 공개 정적인 메소드

Url에서 ? 구분자로 Parameter 반환한다.
public static GetParamString ( string url ) : string
url string
리턴 string

GetParams() 공개 정적인 메소드

Url에서 ? 구분자로 Parameter 반환한다.
public static GetParams ( string url ) : string[]
url string
리턴 string[]

GetScriptPath() 공개 정적인 메소드

Script 전체 경로를 반환한다.
public static GetScriptPath ( string virtualPath ) : string
virtualPath string
리턴 string

GetThemeAssemblyNames() 공개 정적인 메소드

테마 목록을 반환합니다.
public static GetThemeAssemblyNames ( ) : IList
리턴 IList

GetUri() 공개 정적인 메소드

Url에서 ? 구분자로 호출하려는 서버페이지
public static GetUri ( string url ) : string
url string
리턴 string

MessageBox() 공개 정적인 메소드

메시지 출력 page 가 null 이 아니면 RegisterStartupScript 로 스크립트 추가되어지므로 호출후 Response.End()등으로 실행중지시 출력되어지지 않습니다.
public static MessageBox ( MessageBoxDisplayKind messageBoxDisplayKind, string title, string text, MessageType messageType = MessageType.Normal, MessageButtons messageButton = MessageButtons.Ok, System page = null, string returnUrl = "", bool endResponse = true ) : void
messageBoxDisplayKind MessageBoxDisplayKind 출력타입
title string 메시지 캡션
text string 메시지
messageType MessageType 메시지타입
messageButton MessageButtons 버튼타입
page System 렌더링되는 페이지
returnUrl string 메시지출력후 이동할 url
endResponse bool 프로세스 종료여부
리턴 void

MessageBox() 공개 정적인 메소드

메시지 출력
public static MessageBox ( string text, MessageType messageType, MessageButtons messageButton ) : void
text string
messageType MessageType
messageButton MessageButtons
리턴 void

MessageBox() 공개 정적인 메소드

메시지 출력 page 가 null 이 아니면 RegisterStartupScript 로 스크립트 추가되어지므로 호출후 Response.End()등으로 실행중지시 출력되어지지 않습니다.
public static MessageBox ( string text, Page page ) : void
text string
page System.Web.UI.Page
리턴 void

MessageBox() 공개 정적인 메소드

메시지 출력
public static MessageBox ( string text, Page page, string returnUrl ) : void
text string 메시지
page System.Web.UI.Page 출력할 페이지
returnUrl string 이동할 url
리턴 void

MessageBox() 공개 정적인 메소드

메시지 출력 ctl 가 null 이 아니면 RegisterStartupScript 로 스크립트 추가되어지므로 호출후 Response.End()등으로 실행중지시 출력되어지지 않습니다.
public static MessageBox ( string text, System ctl ) : void
text string
ctl System
리턴 void

MessageBox() 공개 정적인 메소드

메시지 출력
public static MessageBox ( string text, string returnUrl = "" ) : void
text string 메시지
returnUrl string 이동할 url
리턴 void

ParamUrlEncode() 공개 정적인 메소드

url의 파라미터 값을 urlEncode
public static ParamUrlEncode ( string url ) : string
url string
리턴 string

RemoveNullStringParam() 공개 정적인 메소드

파라미터중 값이 없는 것은 제외시킨다.
public static RemoveNullStringParam ( string url ) : string
url string
리턴 string

ReplaceParamValue() 공개 정적인 메소드

url의 파람값들을 collection 값에 있는 파람값들로 교체한다.
public static ReplaceParamValue ( string url, NameValueCollection cols, bool isEnc ) : string
url string
cols NameValueCollection
isEnc bool UrlEncode 여부
리턴 string

ReplaceParamValue() 공개 정적인 메소드

파라미터 값을 변경한다.
public static ReplaceParamValue ( string url, string keyName, object v ) : string
url string
keyName string
v object
리턴 string

ResolveUrl() 공개 정적인 메소드

URL을 요청 클라이언트에서 사용할 수 있는 URL로 변환합니다.(Page.ResolveUrl)
public static ResolveUrl ( string relativeUrl ) : string
relativeUrl string System.Web.UI.Control.TemplateSourceDirectory 속성과 관련된 URL입니다.
리턴 string

ShowMessageOfAccessDenied() 공개 정적인 메소드

public static ShowMessageOfAccessDenied ( ) : void
리턴 void

ShowMessageOfLoginFail() 공개 정적인 메소드

public static ShowMessageOfLoginFail ( ) : void
리턴 void

ToJsStringArray() 공개 정적인 메소드

Toes the js string array.
public static ToJsStringArray ( ) : string
리턴 string

UrlParamConcat() 공개 정적인 메소드

url과 파라미터 값을 연결한다.
public static UrlParamConcat ( string url, string param ) : string
url string
param string
리턴 string

UrlParamConcat() 공개 정적인 메소드

url0 + url1 + param 합하여 반환한다.
public static UrlParamConcat ( string url0, string url1, string param ) : string
url0 string
url1 string
param string
리턴 string

WrapScriptTag() 공개 정적인 메소드

Wraps the script tag.
public static WrapScriptTag ( ) : string
리턴 string