I wrote a vb6 "client-side" ActiveX Component that will extract the user's
network login.Now I want to be able to do some server-side work with this info, and it
would be great if I could put the user's network login into a session
variable but serverside-code is executed first ....
My objective is for, each time (or the first time) our intranet users access
the intranet's web page, it call the activeX which pull their user name
which them would call SQL and displays custom information.
would an include file work ? or can I in vb6
re-write my ocx so that it places the username directly in a server session
object
I have an ActiveX component that identifies all Webcams connected to a computer and pics one. Then it transfers video data. If I have both the client and Server running on same machine it works fine.
I want the client to be able to download the dll/ActiveX Component automatically and then the transfer should start The plan is to create a Web based Chat program.
is it possible to open an excel file (used as a template) from server using server-side vbscript; then modify it or add values from client using client-side vbscript?
Following is a vbscript code extract triggered by a combobox OnChange event. arrVendorA and arrdefpack are server side arrays and i need the intCounter parameter to be the array index. Code:
<script> sub getstdPackByVendor(strPartNo, intCounter) dim selVendor selvendor= colSelect("cboVendor", intCounter).value
if selvendor= "<%=arrvendorA(intCounter)%>" then if "<%=arrdefpack(intCounter)%>" = 2 then colTD("txtStdPack" & intcounter+1 ).innertext = cstr("<%=arrVAStdPAckL2(intCounter)%>") end if end if end sub </script>
The following code is giving me a type mismatch error at the 'if' statements... any ideas, anyone ?
sub getstdPackByVendor(strPartNo, intCounter) dim selVendor selvendor= colSelect("cboVendor", intCounter).value
if selvendor= "<%=arrvendorA(" & intCounter & ")%>" then if "<%=arrdefpack(" & intCounter & ")%>" = 2 then colTD("txtStdPack" & intcounter+1 ).innertext = cstr("<%=arrVAStdPAckL2(" & intCounter & ")%>") end if end if end sub
How do I go about calling a server-side vbscript within a client-side javascript function? What I have is a page heavy on the javascript that has a number of functions, one of which is to begin a visual countdown with an onclick and also open an asp page containing the server-side vbscript, which initiates a wake-on-lan call. I had no idea how to call the vbscript within the javascript function, so this is why I opted for the vbscript asp page "pop-up" via window.open. Code:
I check to see if a certain submission button is asking for removal. If the removal is true, I update a recordset's delete column. This has been tested and it works. However, now I'd like to prompt the user to make sure that he/she wants to remove the record. Here's the code: ....
I have a Client Side Java Script which is supposed to re-load the options on my serverside ASP form.
I have been trying to get the syntax right to assign the Select box on the ASP form to a variable in my JavaScript so I can update the options. Can anyone either tell me if this is not possible or what the syntax should be. Here is some information.
Form Name = AddProdForm Select Box name = subprodline JavaScript Variable = form1
Here is one of the many versions of this line I have tried.
I m writing one code to invoke remote desktop service for given IP address. For that i m using mstsc.exe file to invoke RDP.
I have a no of links to be displayed on the page and on click of link, RDP for that IP should be called. Currently i m using one button to invoke RDP. Code:
I am starting to build quite a few pages that will have tables of data from an SQL database.
I have been building the table rows on the server side in VBScript, but I have been thinking about having the VBScript code just build array variables in the <head> section (or as local variables), and then have JavaScript functions on the client side actually populate the tables when the page loads.
I do plan to do other things like being able to sort the tables in JavaScript code on the client, limit the tables height and be able to scroll the rows, and click on a row in the table, and have the values populate a form. I will also need to be able to export/download/? some tables into Excel.
I am doing login page . (login.asp)As usual it has username , password textbox and a login button .i need to do client side validation for mandatory fields and I need to do server side validations to check for the hardcoded username and password .if it matches i have to redirect to another page(content.asp)
I created a ActiveX DLL component to create a Excel file under my home directory through VB6.0. Then I registered it through "regsvr32" command and a messagebox came out to say that the register was successful. But when I tried to run it in my ASP page under IIS ver5.01 and win XP Pro, it gave me this error:
Error Type: Server object, ASP 0177 (0x800401F3) Invalid class string /tg.asp, line 2
Here is my full code: <% set myExcel=server.createobject("test.test1") myExcel.CreateExcel set myExcel=nothing %>
Was running my ASP app no problem on a Windows XP Pro SP2 machine with IIS, dragged a copy my app folder and put it on another Windows XP Pro SP2 machine with IIS and I get the below problem:
Error Type: Microsoft VBScript runtime (0x800A01AD) ActiveX component can't create object: 'Scripting.FileSystemObject' /asp/forms.asp, line 497
I can run old copies of this app folder no problems so what has happened since I dragged a copy from one machine to another?
I´m using IIS 5 on Windows XP. When trying to send a mail using 'CDONTS.NewMail', I get this error message : ActiveX component can't create object: 'CDONTS.NewMail' .
In an ASP page, I get the above error which is Error number 429. I have 2 seperate webs. 1 web you must log on. It creates an object by getting DLL just fine. This works great.
The other web is open to the public, no login. The same web page gets the above error message.
How can I have an Public web page to create an object, which is my DLL?
Im writing a script with the Excel ActiveX Component, ive written it all and just rememred I dont have excel installed on my server, or have the time to uplaod my entire Office ISO onto my server. Is there any way I can steal the excel dll from the cd or the installed version on my computer and install that on my server?
We are trying to access a .net dll based method from classic asp code. When the method is accessed, system gives a message "You are about to access a Activex component". How do we suppress or stop this message from interfering method access.
I'm trying to configure IIS (create new web site) in code. My code works fine within a standard windows application, however, when I copy the code to an asp.net page, I get the above error message. It occures in the:
I have created one ActiveX DLL in VB that has one public function ("GetClientCPUID") which will return a string of the CPUID. I want to use this to get the clients CPUID and retuern to webserver. I am new to using activeX in client side.
In Asp how can I send this ActiveX to client browser? (I will instruct my users to allow this activeX). Is there a way I will execute this activeX in clients PC and get the return value and return to the server for my processing? Please suggest the ways that I can do this.
Also suggest what are the situations that I should know before I proceed. I think there will might a issue when I upgrade the activeX and the client those are using the current one may face problem so I think I will need a way to uninstall the register the new one. Code:
How to incorporate this Install-feature into my web site. I already wrote the setup program which is available on my web server. I do not want to let the setup program to be downloaded and get installed If this is not possible using ASP then do I need to really move to CGI scripting.
I have created an .OCX in VB6 for use on a web page. I created a .cab file and placed this file on the web server and updated the web page with the <OBJECT> tag with the correct guid, etc.
When I hit the web page, it prompts me and asks if I want to download and install the component. I click yes and it appears to go through the motions of downloading the .cab, etc. But the control never appears on the web page. When I check the registry, the ocx (and its dependencies) are not registered. In fact, I can't see that the ocx is even on the system anywhere. If I manually install and register the ocx, then the web page works fine. Code:
im trying to use the following code to log whenever a user clicks through this particlular message box - however, this currently logs regardless of whether or not the message box was clicked - im assuming this is because the server-side code can't see the client side if condition. but how can i set the varMsgBox variable as a server-side variable? Code:
Does someone know the cause of this error? I'm developing a simple christian site for our church and it needs to have an email functionality. When I submit the form I receive this error. Can anyone give me some tips?
After server went down I got this error after submitting Membership form. (win2000, IIS 5.0, Access Database(mdb) ActiveX component can't create object Error Number =429
My current webhost provides limited web-based e-mail management, but at the same time does provide unlimited number of pop3 accounts.
I would like to offer my clients the ability to compose, send, receive, store, sort and filter e-mails using an interface with my company brand on it. Is the best solution to add an e-mail application to my web application which allows me to do all this (something along the lines of this e-mail application retrieving the e-mails from my host's server and storing them in a database on my application).
I hope I have made myself clear, if so what are my best options? Are there components available in ASP.NET that provide a solution to this? Would a web service be able to provide this functionality.
This has happened before and it was due the connection string not being set in VB. My question is, when I try to reconnect can I use a different connection string on the client than I have on the server, I wonder because not all my connection strings are not equal.
Some of my database paths are in Access and the rest are in SQL. That means I have to retry several times before a scrip timeout occurs. If you have read this far then you are an idiot, but the rest of the database seems to work just fine. In fact I can pull all fields out with no problem. It is just that connection string that has resulted in causing my pages not to post.