|
But asp provide a fuction which executes a file or any executable application and i think that function's name is execute .So if asp provides it why not javascript of vbscript.
Be FaithFull To Your Work.
|
|
|
|
|
Good gravy - are you mental ? Who in their right mind would run a browser if it meant that the author of any web page could run any program they liked on your computer ?
Also, calling your post 'urgent help', and then creating a NEW post instead of replying again on the same topic is not the right way to use the forums. Use a descriptive header, and if you're still discussing the same thing, do it by replying to the person who replied to you.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
If I build a web page, and it can format your hard disk. Will you open it?
<italic>Work hard, Work effectively.
|
|
|
|
|
I wanna know is there any java script function ( preferrably with some example ) which executes an execuatble file ( written in any programming language )on client side.
Thanks
Be FaithFull To Your Work.
|
|
|
|
|
No, thank god! neither your computer nor anyone else's would be safe if there was!
Phil
|
|
|
|
|
Hi there,
I've some problems accessing my ActiveX control from a VBScript/JScript. The control can be successfully initialized an acessed via the <object> tag.
The problem is, that I've to retrieve additional objects/interfaces from the control, which are all defined in the typelib embedded in the control. This likes somehow like this:
var ObjInst = new Object;
ObjInst = Control.GetInstance();
ObjInst.Method();
Because everythings working fine from CPP/VB when compiling, I would like to know, whether I have to register the typelib somehow in the html code or somewhere else, or whatever may cause this error. I can view the typelib in the OLE viewer supplied with visual studio, so the registration can't be that faulty in my opinion. My thaughts were, that acessing a reference to a IDispatch interface should be generally no problem in JScript/VBScript.
Thanks for any suggestions.
Florian
|
|
|
|
|
Hi,
I'm still struggling to send null values to a stored procedure.
I have a textbox which doesn't require a value. If the textbox is empty, then it must pass a null value to the stored procedure, and I still have not found a solution. Once all validation has been done I add the value of the textbox to a strDialCode variable.
This is how I add my textbox to the CreateParameter method
objCmd.Parameters.Append objCmd.CreateParameter("@ContactDialCode", adWChar,
adParamInput, Len(strDialCode), strDialCode)
And here is my stored procedure, or part of it...
CREATE Procedure sp_InsertContact
(
@ContactDialCode nvarchar(10) = NULL
)
INSERT INTO tblContact
(
ContactDialCode
)
VALUES
(
@ContactDialCode
)
GO
I really hope someone can help me on this because I have been struggling for a couple of weeks on this.
Cheers.
Brendan
|
|
|
|
|
In C#, it's DbNull.Value - is there an ADO equivelant ?
I didn't think you could have default values in a stored procedure ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I think you can pass a NULL to a stored procedure, but when I leave the length property blank, or out, then I also get an error. So if I can find a way to pass this, then I think it should work.
I have seen other stored procedures where they also use = NULL.
Can you maybe send me the CreateParameter string for adding s null value in C#? Maybe I can follow from that. Do they also require a length firld?
Please guys, help me out on this? I am new to stored procedures.
|
|
|
|
|
I don't care what the purists say, my advice is to avoid null values like the plague! Define all the db fields you can as NOT NULL and do whatever you have to fit in with it. In your example, for a ContactDialCode, siomply store an empty string instead. A plague upon NULLS!
cheers
Phil
|
|
|
|
|
ROTFL - at least you know this is a religious discussion. Sometimes, NULL has a real meaning ( for example, no string has been entered, as opposed to an empty string was entered ).
I believe it's a decision that's up to the consience of the individual churchgoer, but there are definately times when NULL is a meaningful value.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
yes, I know.... but since when did reason ever get in the way of reigion? Nullify NULLs, I say! (And as for the egghead who decided to use apostrophe's as string delimiters in SQL...;P)
Phil
|
|
|
|
|
how can i refesh the form/document (like f5 key) through the coding in asp
|
|
|
|
|
ASP is a server technology. You can't refresh the users screen from the server. However, you perform a location.refresh() in javascript.
|
|
|
|
|
|
I have the need to insert a snippet of HTML into about 400 separate web pages. The first possibility is obviously to just open each file (different domains and accounts) paste the code and save (via MS FP).
Being the lazy person I am, I was hoping to someohow programmatically (ASP, VB etc) build something that can update those pages all at once (given the appropriate page name and login creds).
Any ideas?
TIA...
|
|
|
|
|
You want to write code that logs in to a remote web server, changes the HTML and then saves it ? No, that won't work. You'd need to FTP to the server to do that.
If your pages are XHTML, then an XSLT would be able to update all the pages for you.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Actually, I was planning on doing it via FTP and just wanted to find the best way/tool/method to programmatically update the file once I have it downloaded.
In other words, my program will grab the FTP address, login, download the file and then somehow modify it and put it back.
|
|
|
|
|
If you have write permission on the server, you could write an ASP.NET page that reads the files one by one, one line at a time, and writes them out to a temp file, inserting the required extra code along the way. Then rename the temp file as the original. Move on to next file. This kind of assumes the change is the same for all files, and there is some way of telling the script where to insert the new bits (eg, after the body tag)
This is not that hard to do. Examine the system.IO class for file functions, and the StreamReader and StreamWriter objects.
cheers
Phil
|
|
|
|
|
If it's XHTML, then an XSLT would be the best bet, IMO.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am working on ASP as front end and VB as middle layer, in an application. I need to use an array from VB in ASP. How to write the Let and Get properties for the same.
all help is appreciated. Thanks
|
|
|
|
|
I'm new to web sites and just learning so will someone with knowledge please help me figure out this?
I have 2 domain names. I have 1 hosting account. I have domain name #2 pointed to domain #1. for example: when putting www.domain1.com in the address bar it goes to domain #1. when typing domain #2 in the address bar it goes to domain #1/domain2
I was told that I can add more pages to domain #2 and put a mask code on the pages to make them work in domain #1 and the address bar will show the address domain #2.
I hope I'm expaining this correctly. I was told to go to google and do a search for datml masking code and I would find a code to put on the pages. I didn't find a code. Does anyone here know a code that will do that?
Thanks in advance,
Kozy Kitten
|
|
|
|
|
hi,
i have 2 list boxes on my aspx page. i need to have a functionality that,
whenever a user double clicks an item on any of the list boxes, it shifts to the other one. i am using a javascript for this purpose as there is no double click event provided.
the script is working and the items do shift. but when a server web control such as a button is clicked, all shiftings made by double clicking revert.
please help me. do i need to use viewstate? if i do, can anyone tell me how?
if there is another way please do tell me!
thanx in advance
☺«««DTA»»»☺
|
|
|
|
|
|
Pls suggest me any idea to write a program to convert from MS Access Database to MySQL Database.
Thanks and regard.
I tried so hard and got so far
|
|
|
|