C# 클래스 OpenSlx.Lib.Web.Extensions.UserControlExtensions

Useful extension methods for web user controls that are used as smart parts.
파일 보기 프로젝트 열기: nicocrm/OpenSlx

공개 메소드들

메소드 설명
JavaScript ( this ctl, String script ) : void

Send a script to the page. A shortcut for ScriptManager.RegisterStartupScript.

LockForm ( this parent, bool islocked ) : void

Enable / disable all controls on the form. Controls with ViewState disabled are ignored.

MessageBox ( this ctl, String msg, String callback = null ) : void

Convenience function to show an alert message to the user, without using the javascript (modal) function. Note that you can generally only show 1 per page.

메소드 상세

JavaScript() 공개 정적인 메소드

Send a script to the page. A shortcut for ScriptManager.RegisterStartupScript.
public static JavaScript ( this ctl, String script ) : void
ctl this
script String
리턴 void

LockForm() 공개 정적인 메소드

Enable / disable all controls on the form. Controls with ViewState disabled are ignored.
public static LockForm ( this parent, bool islocked ) : void
parent this The control to be disabled (usually called from a form as this.LockForm(true))
islocked bool
리턴 void

MessageBox() 공개 정적인 메소드

Convenience function to show an alert message to the user, without using the javascript (modal) function. Note that you can generally only show 1 per page.
public static MessageBox ( this ctl, String msg, String callback = null ) : void
ctl this
msg String
callback String Can specify javascript code to be run when user closes the message box. /// This needs to be specified as a Javascript function, for example "function() { alert('boo') }"
리턴 void