Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
770
IProvidesEmbeddableEditor - control not rendered showing javascript error
posted

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[

 

DefaultProperty("Text"

)]

[

 

ToolboxData("<{0}:EmbeddedFileUpload runat=server></{0}:EmbeddedFileUpload>"

)]

 

 

public class EmbeddedFileUpload : FileUpload ,

IProvidesEmbeddableEditor

{

 

 

#region

 

IProvidesEmbeddableEditor Members

 

 

public bool CanEditType(Type

type)

{

 

 

return true

;

}

 

 

public bool CanRenderType(Type

type)

{

 

 

return true

;

}

 

 

public string

EditorClientID

{

 

 

get { return this

.ClientID; }

}

 

 

public string

EditorID

{

 

 

get { return this

.ID; }

}

 

 

public string RenderValue(object

value)

{

 

 

return Convert

.ToString(value ) ;

 

}

#endregion