New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question regarding ClientScriptResource and ASCX controls #216

Closed
cshomo11 opened this Issue Sep 6, 2016 · 8 comments

Comments

Projects
None yet
2 participants
@cshomo11

cshomo11 commented Sep 6, 2016

Hi,

I am in the process of trying to update our code base to .Net 4.6.1 and also update the Toolkit from 4.6 to 16.1 (I know, this is far from ideal). So far I have been able to get most controls to build and function correctly with the exception of around 6 ascx controls. The team that build these controls back in 2009-2010 used the ClientScriptResource tag along with the ScriptUserControl in the Toolkit to embed javascript files that handled all of the control's AJAX. I removed all references to the ScriptUserControl and the controls build but the embedded javascript files are no longer being loaded into the browser. All of the controls were setup as follows:
<Assembly: WebResource("ProjectName.OrderQuantityBehavior.js", "text/javascript")> <ClientScriptResource("ProjectName.OrderQuantityBehavior", "ProjectName.OrderQuantityBehavior")> _ Partial Public Class OrderDatesAndQuantityControl

The javascript files are located in a subfolder where all of the controls are located, specifically Controls/App_LocalResources/Scripts. I have tried different paths, different namespaces, and moving files around and I cannot find anything that will load the JS correctly. The frustrating part is that I can't even get an error to throw. No console errors, no Visual Studio exceptions, nothing. Is this a simple issues of the paths needed changed or is there something else I need to add to get these javascript files back into the browser?

@MikhailTymchukDX

This comment has been minimized.

Show comment
Hide comment
@MikhailTymchukDX

MikhailTymchukDX Sep 6, 2016

Collaborator

Hi @cshomo11,
Thank you for contacting us with such an interesting issue!

The ScriptUserControl, which is derived from the UserControl, was removed from the AJAX Control Toolkit in v15.1.
This means it is not affected by the control processing pipeline of the toolkit, despite you applied proper attributes to your custom control and embedded valid scripts in the assembly.

To return these controls into the toolkit flow, you need to derive them from the ScriptControlBase class.
Please refer to this article for more details: Creating a custom control.

If such a conversion is not possible, the only way to load these scripts is to make it explicitly.
For example, you can use the ClientScriptManager.RegisterClientScriptResource method to register required scripts or any other method that suit you needs.

Please don't hesitate to contact me if you need additional information regarding the upgrade process.

Collaborator

MikhailTymchukDX commented Sep 6, 2016

Hi @cshomo11,
Thank you for contacting us with such an interesting issue!

The ScriptUserControl, which is derived from the UserControl, was removed from the AJAX Control Toolkit in v15.1.
This means it is not affected by the control processing pipeline of the toolkit, despite you applied proper attributes to your custom control and embedded valid scripts in the assembly.

To return these controls into the toolkit flow, you need to derive them from the ScriptControlBase class.
Please refer to this article for more details: Creating a custom control.

If such a conversion is not possible, the only way to load these scripts is to make it explicitly.
For example, you can use the ClientScriptManager.RegisterClientScriptResource method to register required scripts or any other method that suit you needs.

Please don't hesitate to contact me if you need additional information regarding the upgrade process.

@cshomo11

This comment has been minimized.

Show comment
Hide comment
@cshomo11

cshomo11 Sep 6, 2016

Mikhail,

Thanks for the speedy reply. I changed the ascx control’s inherited base class to inherit from ScriptControlBase instead of UserControl but now I am confronted with this error.
[cid:image001.jpg@01D20851.6DA07090]

Neither ScriptControlBase or ExtenderControlBase inherit from UserControl. I don’t know if there is anything else I can do with that or if I should just move on to the ClientScriptManager method you also recommended.

From: MikhailTymchukDX [mailto:notifications@github.com]
Sent: Tuesday, September 06, 2016 12:23 PM
To: DevExpress/AjaxControlToolkit
Cc: Chris Shomo; Mention
Subject: Re: [DevExpress/AjaxControlToolkit] Question regarding ClientScriptResource and ASCX controls (#216)

Hi @cshomo11https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_cshomo11&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=VdxKUA7U8M1HLHGbuUl_UHRBOLxGas-TCehNOM8IOkA&s=sap8B6nQFunHVCiz9rGMOnTiTu19GLOM34DeqL2li3w&e=,
Thank you for contacting us with such an interesting issue!

The ScriptUserControl, which is derived from the UserControl, was removed from the AJAX Control Toolkit in v15.1.
This means it is not affected by the control processing pipeline of the toolkit, despite you applied proper attributes to your custom control and embedded valid scripts in the assembly.

To return these controls into the toolkit flow, you need to derive them from the ScriptControlBasehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DevExpress_AjaxControlToolkit_blob_master_AjaxControlToolkit_ExtenderBase_ScriptControlBase.cs&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=VdxKUA7U8M1HLHGbuUl_UHRBOLxGas-TCehNOM8IOkA&s=2lFnQc3T9KviAg5paUUdxkeJ-L1nvqHe_lK27shP_d0&e= class.
Please refer to this article for more details: Creating a custom controlhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DevExpress_AjaxControlToolkit_wiki_Creating-2Da-2Dcustom-2Dcontrol&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=VdxKUA7U8M1HLHGbuUl_UHRBOLxGas-TCehNOM8IOkA&s=hDdzUCFcz3j68WaHKS851KLyhM10X4V4l_7zr6ybeao&e=.

If such a conversion is not possible, the only way to load these scripts is to make it explicitly.
For example, you can use the ClientScriptManager.RegisterClientScriptResourcehttps://urldefense.proofpoint.com/v2/url?u=https-3A__msdn.microsoft.com_en-2Dus_library_system.web.ui.clientscriptmanager.registerclientscriptresource-28v-3Dvs.110-29.aspx&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=VdxKUA7U8M1HLHGbuUl_UHRBOLxGas-TCehNOM8IOkA&s=rnuXMgUWC7pb3FaAuTP87rl1SfrdSI8WcSXpN_2qNiM&e= method to register required scripts or any other method that suit you needs.

Please don't hesitate to contact me if you need additional information regarding the upgrade process.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DevExpress_AjaxControlToolkit_issues_216-23issuecomment-2D245006329&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=VdxKUA7U8M1HLHGbuUl_UHRBOLxGas-TCehNOM8IOkA&s=Whqo5tkXaG3YzRS7dB-76EkMX_5Mwju7cOvFt6j2g6Y&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AGcE-5F8ve6otn0taEtIHfKwuocVkwdK8aks5qnZNmgaJpZM4J18OY&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=VdxKUA7U8M1HLHGbuUl_UHRBOLxGas-TCehNOM8IOkA&s=WhSun_iZ6JXBTR29MugFqqP4mZRCipzfNFObaVLg2wY&e=.


[cid:imagecb7ab1.JPG@0495be46.4f8ae1d4]http:// Chris Shomo, Developer
cshomo@Sapphire-Health.com
www.sapphire-health.comhttp://www.sapphire-health.com
[cid:image372d86.JPG@404d0685.49b6deec] 724.349.1111 x1124
877.532.2345 x1124 [cid:imageb4a413.JPG@ac244e4b.40a76f16] 724.349.2064 [cid:imagee5bbbe.JPG@a35a1050.428146dd] 654 Kolter Dr. Indiana, Pennsylvania 15701
This communication may contain information that is proprietary, confidential, or exempt from disclosure. If you are not the intended recipient, please note that any other dissemination, distribution, use or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately by telephone or by return e-mail and delete it from his or her computer.

cshomo11 commented Sep 6, 2016

Mikhail,

Thanks for the speedy reply. I changed the ascx control’s inherited base class to inherit from ScriptControlBase instead of UserControl but now I am confronted with this error.
[cid:image001.jpg@01D20851.6DA07090]

Neither ScriptControlBase or ExtenderControlBase inherit from UserControl. I don’t know if there is anything else I can do with that or if I should just move on to the ClientScriptManager method you also recommended.

From: MikhailTymchukDX [mailto:notifications@github.com]
Sent: Tuesday, September 06, 2016 12:23 PM
To: DevExpress/AjaxControlToolkit
Cc: Chris Shomo; Mention
Subject: Re: [DevExpress/AjaxControlToolkit] Question regarding ClientScriptResource and ASCX controls (#216)

Hi @cshomo11https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_cshomo11&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=VdxKUA7U8M1HLHGbuUl_UHRBOLxGas-TCehNOM8IOkA&s=sap8B6nQFunHVCiz9rGMOnTiTu19GLOM34DeqL2li3w&e=,
Thank you for contacting us with such an interesting issue!

The ScriptUserControl, which is derived from the UserControl, was removed from the AJAX Control Toolkit in v15.1.
This means it is not affected by the control processing pipeline of the toolkit, despite you applied proper attributes to your custom control and embedded valid scripts in the assembly.

To return these controls into the toolkit flow, you need to derive them from the ScriptControlBasehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DevExpress_AjaxControlToolkit_blob_master_AjaxControlToolkit_ExtenderBase_ScriptControlBase.cs&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=VdxKUA7U8M1HLHGbuUl_UHRBOLxGas-TCehNOM8IOkA&s=2lFnQc3T9KviAg5paUUdxkeJ-L1nvqHe_lK27shP_d0&e= class.
Please refer to this article for more details: Creating a custom controlhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DevExpress_AjaxControlToolkit_wiki_Creating-2Da-2Dcustom-2Dcontrol&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=VdxKUA7U8M1HLHGbuUl_UHRBOLxGas-TCehNOM8IOkA&s=hDdzUCFcz3j68WaHKS851KLyhM10X4V4l_7zr6ybeao&e=.

If such a conversion is not possible, the only way to load these scripts is to make it explicitly.
For example, you can use the ClientScriptManager.RegisterClientScriptResourcehttps://urldefense.proofpoint.com/v2/url?u=https-3A__msdn.microsoft.com_en-2Dus_library_system.web.ui.clientscriptmanager.registerclientscriptresource-28v-3Dvs.110-29.aspx&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=VdxKUA7U8M1HLHGbuUl_UHRBOLxGas-TCehNOM8IOkA&s=rnuXMgUWC7pb3FaAuTP87rl1SfrdSI8WcSXpN_2qNiM&e= method to register required scripts or any other method that suit you needs.

Please don't hesitate to contact me if you need additional information regarding the upgrade process.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DevExpress_AjaxControlToolkit_issues_216-23issuecomment-2D245006329&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=VdxKUA7U8M1HLHGbuUl_UHRBOLxGas-TCehNOM8IOkA&s=Whqo5tkXaG3YzRS7dB-76EkMX_5Mwju7cOvFt6j2g6Y&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AGcE-5F8ve6otn0taEtIHfKwuocVkwdK8aks5qnZNmgaJpZM4J18OY&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=VdxKUA7U8M1HLHGbuUl_UHRBOLxGas-TCehNOM8IOkA&s=WhSun_iZ6JXBTR29MugFqqP4mZRCipzfNFObaVLg2wY&e=.


[cid:imagecb7ab1.JPG@0495be46.4f8ae1d4]http:// Chris Shomo, Developer
cshomo@Sapphire-Health.com
www.sapphire-health.comhttp://www.sapphire-health.com
[cid:image372d86.JPG@404d0685.49b6deec] 724.349.1111 x1124
877.532.2345 x1124 [cid:imageb4a413.JPG@ac244e4b.40a76f16] 724.349.2064 [cid:imagee5bbbe.JPG@a35a1050.428146dd] 654 Kolter Dr. Indiana, Pennsylvania 15701
This communication may contain information that is proprietary, confidential, or exempt from disclosure. If you are not the intended recipient, please note that any other dissemination, distribution, use or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately by telephone or by return e-mail and delete it from his or her computer.

@MikhailTymchukDX

This comment has been minimized.

Show comment
Hide comment
@MikhailTymchukDX

MikhailTymchukDX Sep 7, 2016

Collaborator

@cshomo11
I don't see the image. Would you please submit it again?

Collaborator

MikhailTymchukDX commented Sep 7, 2016

@cshomo11
I don't see the image. Would you please submit it again?

@cshomo11

This comment has been minimized.

Show comment
Hide comment
@cshomo11

cshomo11 Sep 7, 2016

Sorry, I sent it as an attachment this time.

From: MikhailTymchukDX [mailto:notifications@github.com]
Sent: Wednesday, September 07, 2016 3:06 AM
To: DevExpress/AjaxControlToolkit
Cc: Chris Shomo; Mention
Subject: Re: [DevExpress/AjaxControlToolkit] Question regarding ClientScriptResource and ASCX controls (#216)

@cshomo11https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_cshomo11&d=CwMCaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=lfqHz1HDVgDEIGoc_91Ns1D1OT4NjP_pdRg2OCr6Zog&s=iYOA7lgUMlDYXNRgVDgbCzeqcEUIGupJsn_lBvNRiJo&e=
I don't see the image. Would you please submit it again?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DevExpress_AjaxControlToolkit_issues_216-23issuecomment-2D245193863&d=CwMCaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=lfqHz1HDVgDEIGoc_91Ns1D1OT4NjP_pdRg2OCr6Zog&s=bqmym_U1O8n6MD-R0U3Fv_b6T8q0WDyvxhciiNKULUQ&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AGcE-5Fxu5LztMzig6UquSrdNBQoien7hJks5qnmJzgaJpZM4J18OY&d=CwMCaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=lfqHz1HDVgDEIGoc_91Ns1D1OT4NjP_pdRg2OCr6Zog&s=jER4qkzcQQyMUGH5asRebe9f-zBWHM3D9btvkwZYKlk&e=.


[cid:imageba6bbe.JPG@98f83bc9.46904316]http:// Chris Shomo, Developer
cshomo@Sapphire-Health.com
www.sapphire-health.comhttp://www.sapphire-health.com
[cid:image0e46a2.JPG@3f4790c7.468f0377] 724.349.1111 x1124
877.532.2345 x1124 [cid:image2efe51.JPG@bcad23e6.4d9c1320] 724.349.2064 [cid:imagebc7291.JPG@83c9aea7.4a810785] 654 Kolter Dr. Indiana, Pennsylvania 15701
This communication may contain information that is proprietary, confidential, or exempt from disclosure. If you are not the intended recipient, please note that any other dissemination, distribution, use or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately by telephone or by return e-mail and delete it from his or her computer.

cshomo11 commented Sep 7, 2016

Sorry, I sent it as an attachment this time.

From: MikhailTymchukDX [mailto:notifications@github.com]
Sent: Wednesday, September 07, 2016 3:06 AM
To: DevExpress/AjaxControlToolkit
Cc: Chris Shomo; Mention
Subject: Re: [DevExpress/AjaxControlToolkit] Question regarding ClientScriptResource and ASCX controls (#216)

@cshomo11https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_cshomo11&d=CwMCaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=lfqHz1HDVgDEIGoc_91Ns1D1OT4NjP_pdRg2OCr6Zog&s=iYOA7lgUMlDYXNRgVDgbCzeqcEUIGupJsn_lBvNRiJo&e=
I don't see the image. Would you please submit it again?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DevExpress_AjaxControlToolkit_issues_216-23issuecomment-2D245193863&d=CwMCaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=lfqHz1HDVgDEIGoc_91Ns1D1OT4NjP_pdRg2OCr6Zog&s=bqmym_U1O8n6MD-R0U3Fv_b6T8q0WDyvxhciiNKULUQ&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AGcE-5Fxu5LztMzig6UquSrdNBQoien7hJks5qnmJzgaJpZM4J18OY&d=CwMCaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=lfqHz1HDVgDEIGoc_91Ns1D1OT4NjP_pdRg2OCr6Zog&s=jER4qkzcQQyMUGH5asRebe9f-zBWHM3D9btvkwZYKlk&e=.


[cid:imageba6bbe.JPG@98f83bc9.46904316]http:// Chris Shomo, Developer
cshomo@Sapphire-Health.com
www.sapphire-health.comhttp://www.sapphire-health.com
[cid:image0e46a2.JPG@3f4790c7.468f0377] 724.349.1111 x1124
877.532.2345 x1124 [cid:image2efe51.JPG@bcad23e6.4d9c1320] 724.349.2064 [cid:imagebc7291.JPG@83c9aea7.4a810785] 654 Kolter Dr. Indiana, Pennsylvania 15701
This communication may contain information that is proprietary, confidential, or exempt from disclosure. If you are not the intended recipient, please note that any other dissemination, distribution, use or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately by telephone or by return e-mail and delete it from his or her computer.

@MikhailTymchukDX

This comment has been minimized.

Show comment
Hide comment
@MikhailTymchukDX

MikhailTymchukDX Sep 7, 2016

Collaborator

Nope, still no image.
It seems that GitHub email relay can not put mail attachments to the web site posts.

Would you please use the site to upload the image or provide a public link to that image?

Collaborator

MikhailTymchukDX commented Sep 7, 2016

Nope, still no image.
It seems that GitHub email relay can not put mail attachments to the web site posts.

Would you please use the site to upload the image or provide a public link to that image?

@cshomo11

This comment has been minimized.

Show comment
Hide comment
@cshomo11

cshomo11 Sep 7, 2016

Ah okay, here is a link to the error image. https://postimg.org/image/osrjkdkzz/

From: MikhailTymchukDX [mailto:notifications@github.com]
Sent: Wednesday, September 07, 2016 8:08 AM
To: DevExpress/AjaxControlToolkit
Cc: Chris Shomo; Mention
Subject: Re: [DevExpress/AjaxControlToolkit] Question regarding ClientScriptResource and ASCX controls (#216)

Nope, still no image.
It seems that GitHub email relay can not put mail attachments to the web site posts.

Would you please use the site to upload the image or provide a public link to that image?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DevExpress_AjaxControlToolkit_issues_216-23issuecomment-2D245260249&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=Rp1QQU-2X06GL0V200XBq62n9CaFJpYeid3o260oBRE&s=54Dw8oG_vxZok8EhGhEKPJ7zbFbmrqZ-eRQTJ7AIDhY&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AGcE-5F1CBgM1Xwud4kroDLJmPsSslaUYaks5qnqk8gaJpZM4J18OY&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=Rp1QQU-2X06GL0V200XBq62n9CaFJpYeid3o260oBRE&s=myNmlmS8769JeJl55fwv4Oskzopblbg_Lnv9qaV0MTo&e=.


[cid:imageed2401.JPG@6f77d8ff.4c87cd28]http:// Chris Shomo, Developer
cshomo@Sapphire-Health.com
www.sapphire-health.comhttp://www.sapphire-health.com
[cid:imagef2b6d6.JPG@8e215b41.46aa7082] 724.349.1111 x1124
877.532.2345 x1124 [cid:imagec8de84.JPG@05e80560.4e980f24] 724.349.2064 [cid:image496135.JPG@0c0aa108.419e2cf1] 654 Kolter Dr. Indiana, Pennsylvania 15701
This communication may contain information that is proprietary, confidential, or exempt from disclosure. If you are not the intended recipient, please note that any other dissemination, distribution, use or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately by telephone or by return e-mail and delete it from his or her computer.

cshomo11 commented Sep 7, 2016

Ah okay, here is a link to the error image. https://postimg.org/image/osrjkdkzz/

From: MikhailTymchukDX [mailto:notifications@github.com]
Sent: Wednesday, September 07, 2016 8:08 AM
To: DevExpress/AjaxControlToolkit
Cc: Chris Shomo; Mention
Subject: Re: [DevExpress/AjaxControlToolkit] Question regarding ClientScriptResource and ASCX controls (#216)

Nope, still no image.
It seems that GitHub email relay can not put mail attachments to the web site posts.

Would you please use the site to upload the image or provide a public link to that image?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_DevExpress_AjaxControlToolkit_issues_216-23issuecomment-2D245260249&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=Rp1QQU-2X06GL0V200XBq62n9CaFJpYeid3o260oBRE&s=54Dw8oG_vxZok8EhGhEKPJ7zbFbmrqZ-eRQTJ7AIDhY&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AGcE-5F1CBgM1Xwud4kroDLJmPsSslaUYaks5qnqk8gaJpZM4J18OY&d=CwMFaQ&c=D35fws0esX4dbzGkMoSSSiyixYO2sfGUYyarAm1-S78&r=UogZ8n0HKmQt52D2AJyn2DVx-HESLJy4cY4ATr7uWsI&m=Rp1QQU-2X06GL0V200XBq62n9CaFJpYeid3o260oBRE&s=myNmlmS8769JeJl55fwv4Oskzopblbg_Lnv9qaV0MTo&e=.


[cid:imageed2401.JPG@6f77d8ff.4c87cd28]http:// Chris Shomo, Developer
cshomo@Sapphire-Health.com
www.sapphire-health.comhttp://www.sapphire-health.com
[cid:imagef2b6d6.JPG@8e215b41.46aa7082] 724.349.1111 x1124
877.532.2345 x1124 [cid:imagec8de84.JPG@05e80560.4e980f24] 724.349.2064 [cid:image496135.JPG@0c0aa108.419e2cf1] 654 Kolter Dr. Indiana, Pennsylvania 15701
This communication may contain information that is proprietary, confidential, or exempt from disclosure. If you are not the intended recipient, please note that any other dissemination, distribution, use or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately by telephone or by return e-mail and delete it from his or her computer.

@MikhailTymchukDX

This comment has been minimized.

Show comment
Hide comment
@MikhailTymchukDX

MikhailTymchukDX Sep 7, 2016

Collaborator

Thank you for the image.
As the error message states, you cannot use an arbitrary class with the @Control directive, because it implies that the class is derived from the System.Web.UI.UserControl class.

Converting UserControl to ScriptControlBase requires changing the architecture of the application.
It's currently difficult to guess how complex your control is, so it would be nice if you provide a code sample that illustrates your controls' structure.

Collaborator

MikhailTymchukDX commented Sep 7, 2016

Thank you for the image.
As the error message states, you cannot use an arbitrary class with the @Control directive, because it implies that the class is derived from the System.Web.UI.UserControl class.

Converting UserControl to ScriptControlBase requires changing the architecture of the application.
It's currently difficult to guess how complex your control is, so it would be nice if you provide a code sample that illustrates your controls' structure.

@cshomo11

This comment has been minimized.

Show comment
Hide comment
@cshomo11

cshomo11 Sep 7, 2016

This control is pretty complex. It has several date fields that all interact with one another and also complies an order quantity amount based on the days selected. Between this and the 4 or 5 other controls built this way, I don't know if we would currently have the time to change the architecture. I will have to try the other method you described yesterday using the RegisterControlScriptResource and see if that might help. Thank you for your help!

cshomo11 commented Sep 7, 2016

This control is pretty complex. It has several date fields that all interact with one another and also complies an order quantity amount based on the days selected. Between this and the 4 or 5 other controls built this way, I don't know if we would currently have the time to change the architecture. I will have to try the other method you described yesterday using the RegisterControlScriptResource and see if that might help. Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment