NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IWebFormServices.CreateElement

Creates server controls using the XSP parser, and adds it to the designer host using IContainer::Add, etc.

[Visual Basic]
Function CreateElement( _
   ByVal htmlElement As Object, _
   ByVal tagname As String, _
   ByVal id As String, _
   ByVal outerHTML As String _
) As Object
[C#]
object CreateElement(
   object htmlElement,
   string tagname,
   string id,
   string outerHTML
);
[C++]
Object* CreateElement(
   Object* htmlElement,
   String* tagname,
   String* id,
   String* outerHTML
) = 0;
[JScript]
function CreateElement(
   htmlElement : Object,
   tagname : String,
   id : String,
   outerHTML : String
) : Object;

Parameters

htmlElement
The HTML element corresponding to the control.
tagname
The name of the tag.
id
The unique identifier that can be used to identify the control and its designer.
outerHTML
The outer HTML of the corresponding tag in Trident.

Return Value

An instance of the appropriate server control.

See Also

IWebFormServices Interface | IWebFormServices Members | System.Web.UI.Design Namespace