Mar 17, 2010, 9:03 AM
[CLOSED] [1.0] Custom Control - How to embed resources?
Hi,
I am currently upgrading the FileUploadDialog custom control that is available on these forums to use the 1.0 build of Ext.Net.
Can you provide any details on key changes that need implementing? So far I have modified these:
The main thing I am unsure is how to include embedded resources. I looked at the GMapPanel source code but I am not sure how I would include different types of resources and both debug and release versions - the GMapPanel only has one .js file:
My current resources which need updating are:
I am currently upgrading the FileUploadDialog custom control that is available on these forums to use the 1.0 build of Ext.Net.
Can you provide any details on key changes that need implementing? So far I have modified these:
protected override string ContainerStyle
{
get
{
return "display:none;";
}
}
public override string InstanceOf
{
get
{
return "Ext.ux.UploadDialog.Dialog";
}
}
public override string XType
{
get
{
return "window";
}
}
I have also updated all core references from Coolite.Ext.Web to Ext.Net.The main thing I am unsure is how to include embedded resources. I looked at the GMapPanel source code but I am not sure how I would include different types of resources and both debug and release versions - the GMapPanel only has one .js file:
My current resources which need updating are:
[ClientStyle(
Type = typeof(FileUploadDialog),
WebResource = "Resources.CSS.Ext.ux.UploadDialog.css"
)]
[ClientScript(
Type = typeof(FileUploadDialog),
WebResource = "Resources.Scripts.Ext.ux.UploadDialog.packed.js",
WebResourceDebug = "Resources.Scripts.Ext.ux.UploadDialog.js"
)]