Questions tagged [scriptcontrol]

42 questions
0
votes
3 answers

ASP.Net ScriptControl - Call one method from another

Say I have two script controls and one control has the other as a child control: ParentControl : ScriptControl { ChildControl childControl; } The script for the Child Control: ChildControl = function(element) { …
Programmin Tool
  • 6,507
  • 11
  • 50
  • 68
0
votes
1 answer

Multiple ScriptControl instances sharing variable

I have a ScriptControl that uses an image as an embedded resource and GetWebResourceUrl to generate the WebResource.axd URL. I am currently using GetScriptDescriptors() to send the URL to the JavaScript object. The ScriptControl can be in a…
Nelson Rothermel
  • 9,436
  • 8
  • 62
  • 81
0
votes
0 answers

Getting errors running JS in powershell

So I'm trying to run this javascript function in powershell using ScriptControl. function Create-Script() { param([string]$code = $null); if ( $code ) { $sc = New-Object -ComObject ScriptControl; $sc.Language = "JScript"; …
0
votes
1 answer

How do I Get the Autocomplete Control script side with a Script control (ASP.Net)

Problem How do I capture and assign the events on an Ajax Toolkit autocomplete control using a script control on the script file? Explanation I basically created a script control to combine a textbox and an autocomplete control so that I could have…
Programmin Tool
  • 6,507
  • 11
  • 50
  • 68
0
votes
0 answers

Microsoft Access Script Control

where can I find this script control on microsoft access? i can't find it in the design tab. I need this so that I can use this code Scriptcontrol1.Eval(x) i need to use a string to convert it as a Vba statement.
0
votes
1 answer

How can we programmatically know the syntax error using msscript.ocx?

I have implemented msscript.ocx using c# and it works for VBScript. Consider the following VBScript code: For i = 0 To 5 'The following line has missing 'Then'. It should show an error. If i = 2 Exit For End If Next How can we tell if…
Jaskaran
  • 320
  • 5
  • 19
0
votes
1 answer

VBScript ScriptControl Eval with variables

Having problems with this and couldn't find a solution online that was more specific to what I am having trouble with. I have an expression like this pictureFolderFullPath = "C:\Work" 'Create Script Control Obj Dim sc As ScriptControl Set sc =…
Horace
  • 252
  • 2
  • 4
  • 15
0
votes
1 answer

problem with get data from MSScriptControl

I have problem with get data from vbscript in C# console application. I just write below code: int[] i = new int[3] { 1, 2, 3 }; string msg = ""; object[] myParam = { msg , i}; MSScriptControl.ScriptControlClass sc =…
Hamid
  • 1,099
  • 3
  • 22
  • 37
0
votes
1 answer

Script control client object loss of scope

I've got a script control that has a control embedded within it that exposes a server side property for a client side click event. For example, embeddedControl.OnClientAppointmentClick. So my question is how would I wire this event to my script…
NullReference
  • 4,404
  • 12
  • 53
  • 90
0
votes
2 answers

Assembly embedded resources

Does the row below is required in AssemblyInfo.cs if i want to add an embedded script to the assembly with my custom usercontrol? Does exists any alternative to this? [assembly: System.Web.UI.WebResource("Modal.js", "text/javascript")] I'm…
Alex Dn
  • 5,465
  • 7
  • 41
  • 79
-1
votes
1 answer

VB6 and VBScript Dynamic Form Loading

I have a list of strings that represent existing form names in my vb6 project. I need to iterate through each name and dynamically load each form to access its controls programmatically. So far I have tried using the ScriptHost command to execute a…
AgotSdev
  • 31
  • 6
-1
votes
1 answer

How to use ScriptControl & load Unicode res file?

How do I convert this VB6 code to Delphi? strConv(a, vbUnicode) and Private cScript As New ScriptControl cScript.Language = "Javascript" cScript.Reset cScript.AddCode StrConv(LoadResData(101, "RSADATA"), vbUnicode) cScript.Run("createRsaKey",…
aurora
  • 11
  • 1
1 2
3