P
Pab
I am developing the web controls and try to include all client files:
scripts, styles, etc in an assembly as resource common way like:
[assembly: System.Web.UI.WebResource("TLF.behaviour.htc",
"text/javascript")], and use ClientScriptManager class.
I have faced a problem with htc files, I get url following way:
class MyControl:WebControl
{
string GetUlr()
{
return this.Page. ClientScript.
GetWebResourceUrl(this.GetType(),â€TLF.behaviour.htcâ€);
}
}
The method returns some like
“WebResource.axd?d=sVNSkov2zl0&t=633439341206302606†correctly.
But in run time no behavoior has been load – seems IE needs “.htc†file
extantion to attach behavoior. ?
Any suggestions?
Thanks
scripts, styles, etc in an assembly as resource common way like:
[assembly: System.Web.UI.WebResource("TLF.behaviour.htc",
"text/javascript")], and use ClientScriptManager class.
I have faced a problem with htc files, I get url following way:
class MyControl:WebControl
{
string GetUlr()
{
return this.Page. ClientScript.
GetWebResourceUrl(this.GetType(),â€TLF.behaviour.htcâ€);
}
}
The method returns some like
“WebResource.axd?d=sVNSkov2zl0&t=633439341206302606†correctly.
But in run time no behavoior has been load – seems IE needs “.htc†file
extantion to attach behavoior. ?
Any suggestions?
Thanks