microsoft.public.dotnet.languages.jscript Archive - July 2002
Post a message to this list
Messages
Page: 1
Updating a TreeView Control on a WebForm using client side script (2 replies)
microsoft.public.dotnet.languages.jscript
I have a TreeView control on an ASP.Net WebForm. I'm manipulating the control on the client side using some HTML buttons. After I manipulate the TreeView, I want to send the changes to the server using another HTML button. What's the best way to do this? Thanks
Conditional Compilation problems (2 replies)
microsoft.public.dotnet.languages.jscript
I've got a script that I'd like to run under WSH and distribute as a compiled EXE There are problems, though, obtaining the command line arguments and deciding how to write to the screen. The natural (to me, at least) solution to that is found in the conditional compilation features. My logic is intended to go like this: @if ( 0 1 ), we're in WSH @else, we're compiled here's my sample code: // lin...
Some more questions (3 replies)
microsoft.public.dotnet.languages.jscript
I have two more questions: 1.. How can i convert a string, that contains a hexadecimal value in the form #ff0000, to a System.Drawing.Color object? b.. Is there a Class/Control (third party???) (in WebForms development) that gives the functionality of a color picker and/or a font picker (e.g. the end user can choose his preferred color from a color palette and/or font from a Font Palette)? Thanks ...
Got it! (2 replies)
microsoft.public.dotnet.languages.jscript
public RunInstallerAttribute(true) class MyProjectInstaller extends System.Configuration.Install.Installer
Handling Event (2 replies)
microsoft.public.dotnet.languages.jscript
This is what the doc says: [JScript] In JScript, you can handle the events defined by a class, but you cannot define your own. In C#, a event handler can be specified. aTimer.Elapsed new ElapsedEventHandler(OnTimedEvent); .... public static void OnTimedEvent(object source, ElapsedEventArgs e) {...} How to use event handler in JS?
Explicit Casting (2 replies)
microsoft.public.dotnet.languages.jscript
In the code below I'm apparently preforming an implicit cast from Object to HttpApplication. Is there a way to explicitly cast? function Application AuthenticateRequest (sender: Object, e: EventArgs) { var app: HttpApplication; app sender; var roles: System.String[] ["dwarf"] ; app.Context.User new GenericPrincipal ( app.User.Identity , roles ); }
Attributes for JS (3 replies)
microsoft.public.dotnet.languages.jscript
I am writing windows service in JS. I see the example in C# and VB that add attributes to class. How do I add this attribute in JS style? vb RunInstallerAttribute(True) Public Class MyProjectInstaller Inherits Installer C# [RunInstallerAttribute(true)] public class MyProjectInstaller: Installer{
Separating logic in JScript ASP.Net application (2 replies)
microsoft.public.dotnet.languages.jscript
Hi, I'm trying to separate logic from the content in my Jscript ASP.Net application. The only way of doing it I've found so far was writing the logic in .js files, compiling them into dlls and importing these dlls into .aspx pages. How can I get an access to Session variables then? What are the other ways of doing that? I was also trying to put some portion of the code in another .aspx file and th...
Using System.Xml within JScript.NET (2 replies)
microsoft.public.dotnet.languages.jscript
I am writing code which dynamically compiles and runs JScript.NET code using the System.CodeDom namespace. I wish to create XmlDocuments within my script which are used as return values and therefore I am attempting to reference the System.Xml namespace. I add the "System.Xml" string to the CompilerParamaters collection at design time. The compiler states that this is not a valid assembly when i s...
Accessing variables (3 replies)
microsoft.public.dotnet.languages.jscript
Hi, today i have my variables inside a file menu.js, which contains: arMenu1 new Array(... arMenu2 new Array(... Could it be written inside a Label in the ASPX page, with SCRIPT tags around them? I tried it and then it gave me an error of 'element is undefined'. Any special reason for that?? thanks in advance
In JScript 5.5, Is there any alternate way for getting machine name? (2 replies)
microsoft.public.dotnet.languages.jscript
I dont have much knowledge about JScript. But in JScript 5.5, I want to know the name of the machine. I can not import System namespace as we can do in JScript.Net (though I can get the name by calling the System.Environment.MachineName). Also as this is not a web appliation I dont have the Request object. Is there any alternate way? Please help. I m stuck! Regards, Daku
web service + sqlxml + jscript.NET=>HELP doesnot recognize the Microsoft.Data.SqlXml.dll (5 replies)
microsoft.public.dotnet.languages.jscript
%@ WebService Language "JScript" Class "simple" % import System;import System.Web; import System.Web.Services; import System.IO; import System.Xml; import System.Xml.Xsl; import System.Xml.XPath; import System.Web.Services.Protocols; import System.Web.Services.Description; import System.Xml.Serialization; import System.Data; import Microsoft.Data.SqlXml.dll; public class simple extends WebService{...
Peter your allyourbase.asmx (4 replies)
microsoft.public.dotnet.languages.jscript
I have tried to separate the asmx into two programs the asmx and a class that was converted to an dll and it is not posiible to put the import if the dll in the asmx.??? Is it possible to do this? pedro
'variable' in undefined - why? (3 replies)
microsoft.public.dotnet.languages.jscript
Hi, I have a page in which I have several items defined, as follows: arMenu1 new Array... arMenu2 new Array... In the page where they should be loaded, I have included this page , as follows: document.write(" SCR" "IPT LANGUAGE 'JavaScript1.2' SRC 'hierArrays.asp' TYPE 'text/javascript' \/SCRIPT "); and used the following to define the use of it: a class menutoplink href "#" onMouseOver "popUp ('a...
Using Response.Write in JScript dlls (3 replies)
microsoft.public.dotnet.languages.jscript
Hi, I'm trying to generate dll from a file containing JScript functions, which are using Response.Write method. Is it possible to compile the file with the method? Should I create System.Web.HttpResponse object? How can i do that? Thanks a lot.
using a class coded with JScript.NET from C#/.NET (2 replies)
microsoft.public.dotnet.languages.jscript
I am having trouble to compile some code example that implements a class with JScript.NET and uses the class in a C# program. If I do it the other way round I have no problems but the dll created by the JScript.NET compiler seems to make the class implement some interface Microsoft.JScript.INeedEngine which the C# compiler is later looking for but cannot find. Here is the JScript.NET class that I ...
Why does System.Console.WriteLine not work from global code? (3 replies)
microsoft.public.dotnet.languages.jscript
The following compiles and runs without problems public class ConsoleTest { public static function WriteLine (text : System.String) { System.Console.WriteLine(text); } } ConsoleTest.WriteLine("Kibology"); However if I directly reference System.Console in global code as in System.Console.WriteLine("Kibology"); I get a compile error telling me "The variable 'System' is not defined." (That is my tran...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com