| Form field error messages (4 replies) |
| microsoft.public.dotnet.scripting |
| I know that dotnet allows for form field validation. However I'm looking to customize the error message display and am wondering if it's possible to do what I need. Example: Suppose in a form there is a "Name" field (required). The user leaves it blank and submits the form. I need to reload the page with the "Name" in red so the user can see which field(s) have errors in them. Second, at the top o... |
|
| Unable to write to client's hard disk using ActiveX in .NET (2 replies, VIP) |
| microsoft.public.dotnet.scripting |
| I am trying to create a web page with an embedded Object tag for adding an ActiveX control. The control is showing up on the page. I am able to also interact with the ActiveX control. I can send it values and get back values. However, when i try to create a file in the ActiveX control at the following location "C:\Temp\Test.txt", it thorws a Request for the permission of type System.Security.Permi... |
|
| VBA code in a VB.Net application (2 replies) |
| microsoft.public.dotnet.scripting |
| Hello We have a VB6 application that integrates an VBA IDE from which the final user can make modifications. We want to pass the application to VB.NET, and the first step, before rethinking the whole application, is to pass the conversion wizard and see how it goes. But we want to keep those client VBA modifications working with the least changes made to them. I've tried integrating VBA in a .NET ... |
|
| ÓÐʲôºÃµÄscriptµ÷ÊÔ¹¤¾ß (3 replies) |
| microsoft.public.dotnet.scripting |
| ó Һà ÇëÎÊÒ ÏÂÓÐà ÓÐÊ Ã µÄVBSºÍJAVASCRIPTµÄµ ÊÔ ß ÉÒÔÒ Ò Ö ÐÐµÄ |
|
| VSA Scripting Engine Obsolete in VS2005? (3 replies, VIP) |
| microsoft.public.dotnet.scripting |
| The VSA namespaces (Microsoft.VSA, Microsoft.VisualBasic.VSA, etc.) are marked as "obsolete" in the documentation for Visual Studio. Does this mean these namespaces are going away? Or, Not supported? Or, Not documented? Anyone? Bueller? If the answer is YES, then is there an alternative with simular functionality (other than ICodeCompiler)? |
|
| External table is not in the expected format. (4 replies, VIP) |
| microsoft.public.dotnet.scripting |
| Hi, My program try to export a excel file by using Response.ContentType "application/vnd.ms excel"; But when i import it back to my system using Oledb, i got an error. External table is not in the expected format.System.Data.OleDb.OleDbException: External table is not in the expected format. at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) at System.Data.OleDb.OleDbConnection.Initiali... |
|
| asp:linkbutton (4 replies) |
| microsoft.public.dotnet.scripting |
| There's an issue regarding the "asp:linkbutton" control. It does everything via javascript if I'm not mistaken. The problem with this is that the resulting page is not copy able to, say another user, or via email for others to click on. In situations where you need it to be copy able, what are the alternatives? Will it require much work to re code? |
|
| Automatically Filling website page and triggering events (2 replies, VIP) |
| microsoft.public.dotnet.scripting |
| Hi, I have a requirement where in I need to automatically fill a web form and trigger events on the web form automatically. Firstly can this be done. For example: I have a site say xyz.com which has an order form and I do not want to have a manual intervention to enter data into the form. Can I populate data automatically and click on the â Orderâ button automatically (Again without manual interve... |
|
| Enumerate Printers & Page Sizes (3 replies, VIP) |
| microsoft.public.dotnet.scripting |
| Hello, I have an IntRAnet application that views documents. Untimately I want to let the user Print all of their selected documents. I have found a way through the WScript.Network object to get a list of printers. However, that is not enough. For example, on my machine I have 7 printers. I only want to show a trimmed down list of printers that allow 8.5x11 and 11x17. Some users will have one of ma... |
|
| general question (2 replies, VIP) |
| microsoft.public.dotnet.scripting |
| i have added in my net program a java script thats will close the window "window.close()", but while debuging when it reaches this line it will give the user a message telling him that the window will close ( yes or no ) so am i able to stop tis message to make it close directly ??. another thing is that window.open() will give me a new window am i able to stop accessing the page that loaded this ... |
|
| Any intercepter that accepts a C# like language, just as the DynamicJava/BeanShell in the java world. (2 replies) |
| microsoft.public.dotnet.scripting |
| . |
|
| Calling C# assembly from a .NET JSript - how? (2 replies) |
| microsoft.public.dotnet.scripting |
| Hi, I've made a very simple C# dll that I have registered in the GAC ( first SN.exe then GACutil ). Then I also used "regasm". I can call the dll from another C# program so it should be alive and kicking : ) But I cant use it in a script: import clVEGAS; This is the namespace var test new clVEGAS.clVegas(); MessageBox.Show ( test.Hello() ); I get error on the "new" line it tells me that clVEGAS.cl... |
|
| Need help for IE TabStrip Web Control (2 replies) |
| microsoft.public.dotnet.scripting |
| %@ Register TagPrefix "myns" Namespace "Microsoft.Web.UI.WebControls" Assembly "Microsoft.Web.UI.WebControls" % %@ Import Namespace "Microsoft.Web.UI.WebControls" % %@ Page Language "vb" AutoEventWireup "false" Codebehind "test3.aspx.vb" Inherits "MMI.test3" % HTML HEAD TITLE WebControls: TabStrip /TITLE meta content "Microsoft Visual Studio.NET 7.0" name "GENERATOR" meta content "Visual Basic 7.0... |
|
| Switching items between listboxes, and letting .net realize it. (2 replies) |
| microsoft.public.dotnet.scripting |
| I have two listboxes, and allow users to move items between them via the following function: function SwitchList(fbox, tbox){ var arrFbox new Array(); var arrTbox new Array(); var arrLookup new Array(); var i; for (i 0; i tbox.options.length; i ) { arrLookup[tbox.options[i].text] tbox.options[i].value; arrTbox[i] tbox.options[i].text; } var fLength 0; var tLength arrTbox.length; for(i 0; i fbox.op... |
|
| window.open() - Netscape 4.7 vs. Netscape 7.1 (2 replies) |
| microsoft.public.dotnet.scripting |
| I use the window.open() method to open a new window on my website. It opens as expected in Netscape 7.1, but does nothing in Netscape 4.7. Is there an alternative I can use in 4.7? I know 4.7 is kind of out of date, but I have seen people that still use it for some reason. Thanks. Nathan Sokalski njsokalski@hotmail.com www.nathansokalski.com |
|
| Replace bat-file with a script! (7 replies, VIP) |
| microsoft.public.dotnet.scripting |
| Hi! I have a batch file (*.bat) which logon the client to our server, including printer and drive mappings. Now I want to replace the batch file with a script for the windows scripting host, because I want the users to enter their username and password, and then the script should make the mappings suitable to the username... I lookd for the WSH and VBSCRIPT and JSCRIPT, but I didn't get any usable... |
|
| Secure Scheduling of Remote Tasks (3 replies) |
| microsoft.public.dotnet.scripting |
| Does the .Net framework provide the libraries to enable the ability to schedule tasks on remote machines using the user's credentials? After some research, the following methods were found but none of them fully meets the requirements. 1) Use the Task Scheduler class found here http://www.codeproject.com/csharp/TSNewLib.asp?df 100&forumid 4062&fr 26 Problem is that the class required a username an... |
|
| What's wrong with my SQL? (3 replies, VIP) |
| microsoft.public.dotnet.scripting |
| I am having a terrible time with innerjoins. Please help!! Why am I getting a syntax error in this statement? Using ASP.NET Visual Studio 2003, SQL Server 2000 strSQL "SELECT COUNT(*) AS Expr4, services.service id AS Expr1, services.service title AS Expr2, services.service description AS Expr3, page.title" & "FROM page service assoc INNERJOIN services ON page service assoc.service id services.serv... |
|
| Attaching global objects to JScript (2 replies) |
| microsoft.public.dotnet.scripting |
| Could somebody please point me to the example of how can I attach an "external global" object to the JScript which will be executed within another executable? I used ActiveScripting and somehow familiar with VSA so I'm asking about the CodeDOM usage here, not the VSA. Thanks! |
|
| JavaScript question (2 replies) |
| microsoft.public.dotnet.scripting |
| (I have posted in microsoft.public.scripting.jscript as well) Hello All, I'm not much of a JavaScript/JScript coder and I have this problem with a template I am working on. I added the alert, because I didn't know where I was going wrong, when I click the last span object the "onclick" loops backwards to all the span elements and ultimately select the top one? The same code in an aspx page works a... |
|
| ADODB in VB.NET (3 replies, VIP) |
| microsoft.public.dotnet.scripting |
| Hi A project requires me to insert new code in VB.NET to create an empty ADODB recordset (not ado.net), using the following snippet: Imports ADODB .... With recLocal.Fields ... .Append("LookupTypeEnum", DataTypeEnum.adInteger, , FieldAttributeEnum.adFldIsNullable FieldAttributeEnum.adFldUpdatable) ... End With .... This snippet written in VB6 or ASP works fine. In VB.NET however, the two FieldAttr... |
|
| Langauages supported by ,net script support (6 replies) |
| microsoft.public.dotnet.scripting |
| Hi, THis article http://msdn.microsoft.com/library/default.asp?url /library/en us/dnclinic/html/scripting06112001.asp indicates the scriptings language supported , is this still accurate ( as article quite old)? Has c# been added to list.? I'm thinking of adding .net script support into an application , has anyone had any joy with doing this and and good tech articles over and above the one i have... |
|
| OnSubmit and Javascript from .NET (3 replies) |
| microsoft.public.dotnet.scripting |
| I have a program that is posting with the "POST" method and has "onsubmit return thisFunction". The function works intermittently, sometimes being called and other times not. The only trouble shooting I've done is to erase the submit call from the form attributes and then type it in again. This works the first time or two, but then the submit bypasses the call to the function Does anyone know what... |
|
| page_load not firing in asp (9 replies) |
| microsoft.public.dotnet.scripting |
| I am using C# in my web app (asp pages). I have a button on one page which fires a click event which redirects to a second page. The second page is not getting initialized correctly because its Page Load never executes. How can a page load in the browser without this function firing? How can I force it to fire? Any help appreciated, thanks, Alicia Power |
|
| Shutdown failing with WMI (2 replies) |
| microsoft.public.dotnet.scripting |
| Hi Guys, I have been playing with a WMI script to shutdown some PC's. The script is below. The problem I have is when I set the shutdown value to 8, sometimes the PC's hangs on shutdown at a black screen with a flashing curser. If I change the setting to 1, the PC shutdown correctly. The value relate to the following class; Win32 OperatingSystem.shutdown() Values can be the following; 0 Log Off 0 ... |
|
| Customizing the browser window using JScript/Javascript (2 replies) |
| microsoft.public.dotnet.scripting |
| I would like to hide certain parts of the browser window to make it look more like a dialog/popup window (I cannot use the alert() method because I need HTML in my popup). I have tried the following commands, all of which gave me errors: self.locationbar.visible false; self.menubar.visible false; self.personalbar.visible false; self.statusbar.visible false; self.toolbar.visible false; I did my tes... |
|
| how to keep window object alive? (2 replies) |
| microsoft.public.dotnet.scripting |
| Hello, In javascript, how do I keep openEditor from getting reset each time a page is reloaded? Basically I need per browser global javascript variable that is kept around for as long as the browser is open. Thank you. var openEditor; function ShowEditor(edittype) { if(openEditor && openEditor.open && !openEditor.closed) { openEditor.moveTo(0,0); openEditor.navigate(edittype); } else { openEditor ... |
|
| Split Screen Copy Problems (3 replies, VIP) |
| microsoft.public.dotnet.scripting |
| This is a cross post.... My problem is when I am using the split screen editor and I copy and paste from the bottom pane to the top pane, the top pane will reposition itself to where the bottom pane is pointed to and I loose my place in the upper pane. Has anyone experiences this, and is there a setting somewhere to change this behavior? Thanks. Mike mikemalter@nospam.com |
|
| Font in IE (3 replies) |
| microsoft.public.dotnet.scripting |
| Hi all, I have created a windows forms control named MyControl. The control exposes a TextFont property of type Font. I have created an HTML page which hosts MyControl control. The page also contains a java script function from within I want to change the Font property of my control. The problem is that it throws an error if I try to assign the Font property a string describing the font.. like myC... |
|
| Scripting with a UserControl - how to force a refresh? (5 replies) |
| microsoft.public.dotnet.scripting |
| I have a page which contains a Windows Forms UserControl and several DIVs within a table. When the mouse is moved over the UserControl, it ends up calling the following Javascript: function Map mouseMoved() { var map document.getElementById("Map"); // the UserControl var msg document.getElementById("Msgbox"); // a DIV if(map ! null) { if (msg ! null) { msg.innerHTML map.getMessgage(); } window.sta... |
|
| newbie problem (2 replies) |
| microsoft.public.dotnet.scripting |
| can sombody help me please public void bindGrid ( ) { string ServerName "xx"; // SQL server name string Database "xxx"; // SQL Database Name string user "xxx"; // SQL User name string Pass "xxx"; // SQL Password SqlConnection myConn new SqlConnection("server " ServerName ";database " Database ";UID " user ";PWD " Pass ";"); SqlCommand myCmd new SqlCommand ("SELECT * FROM cars",myConn); myCmd.Comma... |
|
| Determine a JavaScript function caller. (7 replies, VIP) |
| microsoft.public.dotnet.scripting |
| Is it possible to determine the control ID of web control that calls a javascript function. I saw a javascript function FunctionName .caller that would seem to do what I'm after but it appears that this functionality has been deprecapted. Is there another way? Thanks |
|
| Progress Meter on One ASP.NET Page (2 replies) |
| microsoft.public.dotnet.scripting |
| Hi, I've read an article or two on how to do a progress meter type of ASP.NET page. But, these solutions always included an intermediate page for the progress. My long running page is the first page (I'm doing a number of validation checks, etc.), so I'd like my one page to have a progress indicator of some sort while the code behind is running (without having to redirect to another page and then ... |
|
| Time to refresh the page (4 replies) |
| microsoft.public.dotnet.scripting |
| Hi. Sorry for the bad english. I will try to explain my doubt. I have a repeater control that needs to display some items. On each line of the repeater, one field has a time counting. When each of these fields reachs zero, the page needs to be refreshed. For example, say the field "Counting" on the first line shows 2:40. On the second line the field shows 3:10. I have to show a watch, decreasing t... |
|
| Style sheets don't work in ASP.NET (3 replies) |
| microsoft.public.dotnet.scripting |
| I'm writing a site in ASP.NET and for the life of me I can't get the stylesheets to work. I have included the stylesheet in the HEAD tag: LINK href "Styles.css" rel "stylesheet" type "text/css" The control is: asp:label id "Label1" Runat "server" CssClass "TitleText" Test /asp:label Here is the stylesheet: A:link { font family: Verdana, Arial, Helvetica, sans serif; font size: 1em; font weight: no... |
|
| Browser Compatibility Issues (3 replies) |
| microsoft.public.dotnet.scripting |
| Hi, We are dealing with significant browser compatibility issues with Netscape 5.x browsers and Mac IE. I am sure most web developers have faced similar issues in the past. Can anyone give me their thoughts on how they were able to address these issues ? Are there any best practices published by MS on how to ensure browser compatibility when coding asp.net? Thanks for any input. |
|
| Javascript being called from ASP with c# codebehind.....Problemo (3 replies) |
| microsoft.public.dotnet.scripting |
| Hi, As a real novice trying to get to grips with c#.NET and html. I have created a simple showdialogbox which is called from within a webpage.aspx, I pass values to it from the main page and i also retrieve values from the ones entered in the dialog box: script type "text/javascript" function callDialog() { var name Name.value var retrievedData window.showModalDialog( "dialogBox.aspx", name ,winSe... |
|
| Passing varibles from jsp to asp with CR in varibles. (2 replies) |
| microsoft.public.dotnet.scripting |
| Hi, Hope someone can help me with this; I have an application that uses jsp and asp the jsp calls the asp code to do a database update with information collected from a form, the variable taInfo can contain a CR from user data entry but this causes a stack overflow error in IE so I need a method to strip CR from the text string in the jsp and add them beck in the asp. The line below is from the js... |
|
| cannot find microsoft.web.ui.webcontrols (2 replies, VIP) |
| microsoft.public.dotnet.scripting |
| (Type your message here) hi everyOne, i want to use treeview and this is my first step dealing with treeviews but my problem is that i cannot find this "microsoft.web.ui.webcontrols" and i don't know what to do to get it ,i try to add reference but it didn't make it :( ,so can any one help me thanks for all alex From: alex toby Posted by a user from .Net Guru (http://www.dot-net-guru.com/) Id Brud0JVR... |
|
| IE-hosted controls name length limitation (2 replies, VIP) |
| microsoft.public.dotnet.scripting |
| I was recently toying with IE hosted Windows Forms controls (instantiated via object / tags in HTML) and ran across a surprising (and unfortunately, showstopping for my intended uses) limitation. Evidently, the class name (including the namespace) is limited to 50 characters. For example, the following works: object id "works" classid "http://127.0.0.1/MyAssembly.dll#MyCompanyName.MyProductName.Wi... |
|
| Context Menu in IE (2 replies) |
| microsoft.public.dotnet.scripting |
| Hi, i want to customize the IE Context menu using javascript is that possible to do that. please let me know Regards naveen |
|
| Email Script (2 replies) |
| microsoft.public.dotnet.scripting |
| I've created a email script and the information that is going into the body of the script is directly from my asp form objects, and it keeps on telling me it's expecting a end of statement Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error ... |
|
| Java Script in Web User Control (3 replies) |
| microsoft.public.dotnet.scripting |
| Hello EveryBody, I am able to use to perform java script validations in the Web User Control when i am using a Html Controls. But is am facing problems when i try to run the same code after making the HTML Controls as servercontrols ie runat server. The Same is working fine in normal .aspx file. Here is the Java Script Function which is working before we make the controls as runat server function ... |
|
| Application Customization (5 replies) |
| microsoft.public.dotnet.scripting |
| Hi, I have an application today running in Win32 that have some business rules that I use VBScript code to allow my customer to change some behavior of my application (taxes, notifications, etc). Now I'm converting the applicaton to C#, can I use VBScript in the same manner or can someone give some tip to better do this task. Thanks Jean |
|
| Script with ActiveX control (5 replies) |
| microsoft.public.dotnet.scripting |
| Hi, all. I'm really sorry to repost this question again... recently i'm using C# to write a WIndows Control library and i have register it to registry with regasm command. Everything went wrong when i try to call that from server but it work fine when i double click the html file to open it... When i set the security level to medium and select the "Initialize and script ActiveX controls not marked... |
|
| Exposing of object properties in JScript.NET (2 replies) |
| microsoft.public.dotnet.scripting |
| Hello, I'm using JScript VSA engine in my application. I pass my C# objects to script as global items. Properties/fields declared in C# classes are visible from script code. But I want that script can use in similar way properties not declared in the class I have internal collection of name value pairs. I suppose that my C# object should implement some interface (like IDispatch for automation obje... |
|
| How to Play A Sound File in A Script? (2 replies) |
| microsoft.public.dotnet.scripting |
| How to play a .WAV file in a WSH script? |
|
| Opening windows and passing data (2 replies, VIP) |
| microsoft.public.dotnet.scripting |
| I need to open a browser window from another browser window, pass some data from a select tool to a select tool on the new page, modify the data and then pass it back to the original window and the select tool and update it's values. Need to do it on the client only w/no server side scripting. Any help would be appreciated. |
|
| dynamic code at runtime (3 replies) |
| microsoft.public.dotnet.scripting |
| If I have a object, call it Foo. I want to be able to edit it dynamicly at runtime (preferablely using scripting). VSA can do this but it uses up too much memory so I won't use it. Is it possible to do it using CSharpCodeProvider? So far I've only found examples to edit strings/ints/... but not objects. If my script consists of the code: Class Tmp { public static Foo methodName(Foo f){ //...do som... |
|
| Fire server side event from client side (8 replies) |
| microsoft.public.dotnet.scripting |
| Hi, I have a number of HTML tables that are dynamically rendered from server side code. I've added an onClick event to the tables that fires a client side function (jscript) to redirect the user to an appropriate page using location.href. I need to capture this event some how on the server side so I can set a session variable to track the table onclick event that was raised. Does any one know how ... |
|