Table of Contents

Class CPBlockBaseClass

Namespace
Contensive.BaseClasses
Assembly
CPBase.dll

CP.Block - an object that holds and manipulates a block of html

public abstract class CPBlockBaseClass : IDisposable
Inheritance
CPBlockBaseClass
Implements
Inherited Members

Methods

Append(string)

append the htmlString into the current Block

public abstract void Append(string htmlString)

Parameters

htmlString string

Clear()

Clear the contents of the current block

public abstract void Clear()

Dispose()

support IDisposable

public abstract void Dispose()

GetHtml()

return the entire html of the current block

public abstract string GetHtml()

Returns

string

GetInner(string)

Return the innerHtml from the current block specified by the findSelector

public abstract string GetInner(string findSelector)

Parameters

findSelector string

Returns

string

GetOuter(string)

return the outer Html specified by the findSelector

public abstract string GetOuter(string findSelector)

Parameters

findSelector string

Returns

string

ImportFile(string)

load the block with the body of a file in the wwwRoot

public abstract void ImportFile(string wwwFileName)

Parameters

wwwFileName string

Load(string)

Load the block with an html string

public abstract void Load(string htmlString)

Parameters

htmlString string

OpenCopy(string)

load the block with the contents of a record in Copy Content

public abstract void OpenCopy(string copyRecordName)

Parameters

copyRecordName string

OpenFile(string)

load the block with the entire contents of a file in the wwwRoot

public abstract void OpenFile(string wwwFileName)

Parameters

wwwFileName string

OpenLayout(string)

load the block with the contents of a record in Layouts

public abstract void OpenLayout(string layoutRecordName)

Parameters

layoutRecordName string

Prepend(string)

Prepend the htmlString on the current block

public abstract void Prepend(string htmlString)

Parameters

htmlString string

SetInner(string, string)

set the innerHtml of an element in the current block specified by the findSelector

public abstract void SetInner(string findSelector, string htmlString)

Parameters

findSelector string
htmlString string

SetOuter(string, string)

Set the OuterHtml in the current block specified by the findSelector to the htmlString

public abstract void SetOuter(string findSelector, string htmlString)

Parameters

findSelector string
htmlString string