Questions tagged [iscriptcontrol]

8 questions
4
votes
1 answer

GetScriptReferences does not get called

I have written a Custom Control that contains the following: [assembly: System.Web.UI.WebResource("InSysControls.AssignmentLists.AssignmentLists.js", "text/javascript")] namespace InSysControls { [ToolboxData("<{0}:AssignmentLists…
Kiddan
  • 43
  • 2
2
votes
2 answers

Passing complex objects to javascript via IScriptControl

I'm playing around with a asp.net page that's using the IScriptControl interface to pass data from the code-behind to the custom javascript object running on the browser. I'm passing a number of properties via IScriptControl.GetScriptDescriptors(),…
Jeff Dege
  • 11,190
  • 22
  • 96
  • 165
1
vote
0 answers

how to attach COM event(not activex) in jscript?

EXE call jscript by IScriptControlPtr,like it obj.dec = myobject_dec but jscript can't attach COM Event, throw "Object doesn't support this property or method" message The following jscript's code: var obj1; function myobject_dec() { …
mayer
  • 11
  • 2
1
vote
1 answer

Why it's not possible to debug IscriptControl javascript code?

I use visual studio 2008. When I set breakpoints on code they don't break. So only thing I can do is to debug "manually" using firefox with firebug. Is there a way to debug with Visual studio?
jullin
  • 633
  • 2
  • 12
  • 21
0
votes
2 answers

MSScriptControl Issue on Windows Server 2008

So I'm using the MSScriptControl to run some javascript in my app and I want to be able to get some information about any errors the script may cause. MSScriptControl.ScriptControlClass script = new MSScriptControl.ScriptControlClass(); try { …
Spencer Ruport
  • 34,865
  • 12
  • 85
  • 147
0
votes
1 answer

What is the equivalent to IScriptControl for Web.UI.Page?

We've been using IScriptControl to tie javascript objects to our UserControls and ServerControls, and it's worked fine. The problem is that ASP.NET seems to provide no method to tie a javascript object to a Page. Up to now, we've been putting plain…
Jeff Dege
  • 11,190
  • 22
  • 96
  • 165
0
votes
1 answer

Register OnClientItemSelected for a Dynamic AutoCompleteExtender

I have created a UserControl that contains the AjaxControlToolkit's AutoCompleteExtender. It works well when I have one or more statically designed instances on the same page. However, if one of these controls is added dynamically (say, within an…
Mat
  • 470
  • 7
  • 12
0
votes
5 answers

Why can I not use $find in a jQuery function?

I am using a combination of jQuery and IScriptControls and I don't appear to be able to use $find in any jQuery functions. Take the following, for example, I can use $get and $, but I cannot use $find. // Configure the toolbar groups …
djdd87
  • 67,346
  • 27
  • 156
  • 195