|
i have a asp page,in that asp page if i click one button i need to copy some DLL to the client machine and also i need to register them in the registry.
please provide some solution
regards
sharath
sharath Chandra
|
|
|
|
|
chandu_shar wrote: copy some DLL to the client machine
Stream it as a download and let the user save it to an appropriate location.
chandu_shar wrote: register them in the registry
Give instructions to the user.
Alternatively, have a setup bundle the DLL and register and download the setup to the client machine.
|
|
|
|
|
Hi
I would like to get the C# equvalent of the javascript code
escape(document.referrer);
This is supposed to return a string value I will use for user monitoring.
Thank you
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
Is that what you want?
Dim temp As String =Request.ServerVariables("HTTP_REFERER")<br />
Dim prevPage As String =Right(temp, Len(temp) -InstrRev(temp, "/"))
Ref: What’s the Previous Page? - HTTP Referer
|
|
|
|
|
Thank you for the response
I found it the C# equivalent is:
Request.UrlReferrer.ToString();
Thank you
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
Okay. Cool.
|
|
|
|
|
hi
i want to Retrive full exe path of installed software from Following code i get only the message that the software exeist or not
Set objFSO = CreateObject("Scripting.FileSystemObject")<br />
set oWscript = CreateObject("WScript.Shell") <br />
dim lstsft<br />
dim mylist <br />
dim i,j<br />
'<---------------------------------><br />
call getInstalledList ()<br />
'<---------------------------------><br />
Private sub getInstalledList ()<br />
dim chk<br />
mylist = split("Symantec AntiVirus,MSXML 4.0 SP2 Parser and SDK", ",")<br />
strComputer = "."<br />
Set objWMIService = GetObject("winmgmts:" _<br />
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")<br />
Set colSoftware = objWMIService.ExecQuery _<br />
("Select * from Win32_Product")<br />
lstsft=""<br />
For Each objSoftware in colSoftware<br />
lstsft = lstsft & "," & objSoftware.Caption <br />
Next<br />
lstsft= split (lstsft,",")<br />
for i = 0 to ubound(mylist)<br />
chk="0"<br />
for j=0 to ubound(lstsft) <br />
if lstsft(j) = mylist (i) then<br />
msgbox(mylist(i) & " exist" ) <br />
chk="1" <br />
end if <br />
next <br />
if chk = "0" then<br />
msgbox ( mylist(i) & " not exist")<br />
end if <br />
next<br />
end Sub
so HOW I GET PATH OF exe using VBScript
Thanks in advance
SP
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
Hi
I am a student and making a final project on web development. I am stucked in one propblem, that is how to give my website its own email id like info@housedecoration.com
I am using vb.net and Asp.net,so please can anyone help me out, My supervisor is out of country
Regards
fiaz_khawaja@hotmail.com
Khawaja
|
|
|
|
|
AFAIK, you can only have that kinda Email Id when you owned this domain..
For example, I owned one domain name called "http://michaelsync.net". So, I can create any Email address like info@michaelsync.net or blabla@michaelsync.net.
So, If you are sure that you own this website "http://housedecoration", you can create the id that (info@housedecoration.com) you want.
It's not about programming languages (eg: VB.NET or ASP.NET)
Hope it helps.
|
|
|
|
|
I've got a PC Program that has a synchronize form which calls a web service to get data updates from our servers. This is working good for all but one user who gets this exception when trying to call the webservice method:
The remove server returned an error (500) internal server error
Since no one else is having this problem, I'm assuming it a setting on the user's machine or some setting through their internet provider. Does anyone have any ideas of what can cause this error or where I could even start in trying to figure it out?
Any help or advice would be greatly appreciated.
|
|
|
|
|
Normally when I have issues with a web service the first thing I do is try to access it in a web browser from the problem PC. So if you type in the url including the asmx file you should get a page back depending on how you set up your web service. If you can see the webservice in the brower it should work with your app.
My best guess without more info is that your webservice is perhap only internally DNS on your local intranet. Since it doesn't have an External DNS an outside user can't get to it, but that is pretty much a complete guess.
Ben
|
|
|
|
|
Thanks for taking the time to consider my problem.
Unfortunately, I am not able to recreate the problem that this particular user has. And I am able to access the web service via a web browser just fine. I haven't asked the user if he can, but I didn't see how the answer to that would help me. I figured it would give me the same error message, but I suppose it is worth a try.
I know that the webservice is not just on the local intranet, because other users have been able to access it without problems. That is why this is so confusing, I thought everything was working just fine and now I have this one user who is having problems and I can't figure out what is different between his computer and everyone else who has been able to get access. The only thing I can think of is that the user has dial-up internet access provided by Earthlink. Would they have some kind of security or setting that would prevent a webservice from working?
Again, thanks for your help. If you have any other ideas or advice please let me know.
|
|
|
|
|
You are right about they will probably be the same error, but at least then you know for sure it is some sort of DNS issue. I am not totally sure how it works with dial-up, but I am pretty sure it works the same, anyway, you could manually point your url to the correct IP address by updating their local hosts file. Before you do that you could try accessing the url with an IP address instead of a name. If that works then you might just be able to update your configuration file, I am assuming your web service url is in a config file.
Hope that helps.
Ben
|
|
|
|
|
By the way, if the web browser does work, it might be a rights thing. If your appliction is marked as partially trusted then your app would not have rights to access the internet.
Ben
|
|
|
|
|
Hello,
I need to add a database where people can search and pull up results. The database is currnetly in Access.
What tools, software, or languages will I be using in order to implement this. And will Access work fine. Thanks you
Steve Vondras
Red Lake Nation
MIS Tech
svondras@redlakenation.org
|
|
|
|
|
If Access is fine or not, depends on how many users you will have. You've not said what you're writing this in ( asp/php/asp.net/etc ), so yuo can't hope for more specific help until you say what it's in. Any of those would allow you to use a DB, however.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks for the quick reply
I am planning on using php
Steve Vondras
Red Lake Nation
MIS Tech
svondras@redlakenation.org
|
|
|
|
|
OK - I'm sure that will be fine, so long as Access scales to your app's size. I have never used PHP, so I can't help more than that.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
New to web services here. I know web services have a URI, but do individual web methods also have their own URI? I think the answer is most likely no, but I'm curious.
|
|
|
|
|
NO. (AFAIK)
but You can call like http://webservice/webmethod1 or http://webservice/webmethod2 with HTTP_POST.
|
|
|
|
|
Well, according to everything I've read on the net, you can call a javascript function from vbscript (and vice-versa). However, When I try to do this, IE6 reports a "Type mismatch" on the javascript function. Here's a code snippet:
<%@ LANGUAGE="VBSCRIPT" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<script language='JavaScript1.2' type='text/javascript'>
function jsGetScreenWidth()
{
return screen.width;
}
</script>
<%
Dim njsScreen: njsScreen = jsGetScreenWidth()
%>
<body></body>
</html>
Can anyone shed any light for me?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Wow - this brings back bad memories.
IE can run VBscript on the client. However, you seem to be running it on the server, in which case, the answer is no. You can't call client code from the server, for a variety of reasons.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
well i would like to ask one Christian,
as u said client code can not be called from server side, but how abt the statement below:
btnPlaceOrder.Attributes.Add("onclick","javascript:alert('how are u');")
i mean statement is on the server side and is using client side code. thts the way i think. i might be wrong. what do u say?
|
|
|
|
|
The statement is on the server side, and it puts a string in the onclick property of an element. The code in the string is not executed on the server, it's put in the html code that is generated. When the page reaches the browser, it parses the html code and put the value of the property as an event in the element. When you click on the element, the code is executed.
The code is wrong, by the way. You don't use the javascript: protocol in events. That's only used when you put Javascript code in an URL.
---
single minded; short sighted; long gone;
|
|
|
|
|
I'd say that it depresses me how many people are using ASP.NET and have no idea of the server/client division or how web development works.
Like Guffa said, you can inject javascript into the page on the server side, in fact, the server side is one huge engine for generating HTML and javascript, precisely because that's all you can serve to the client, and expect the client to do anything with. So, again, the javascript can only run on the client, getting it to the client is the whole reason the server side exists.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|