|
Hi,
I did an autorun CD for my web application for easy installation. I have my MS Access database mdb file included as well. However when I did the autorun, the mdb file copied over from CD to PC had read access only. The web application therefore is unable to edit/delete/insert into the database.
How do I make the file updatable automatically without having to right click on it and modifying the properties manually?
Is there a command to change the access rights of the file in my .bat file?
Thanks!
Sincerely
|*Oraclec*|
|
|
|
|
|
Try attrib -r [drive:][path]filename.mdb.
Heard in Bullhead City - "You haven't lost your girl - you've just lost your turn..." [sigh] So true...
|
|
|
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/setfileattributes.asp
Thinking-Asking-Thinking
|
|
|
|
|
Hi. I want to develop a program using ASP, this program should transfer data (Database records) from one server to another using the server name if i use machines on the same local network, and also using IP addresses and port numbers if i want to transfer data between two computers which are apart. even in different counries.
Actually i don't have any idea about how i can start doing this. would anyone plz help me and tell me how can i start? and using what? I mean i've heard about transfereing data using socket or http. so plz help me.
Sam
Sam2004
|
|
|
|
|
Is there a way to do a Message Board without CGI? Is there anything simple that will write and view the messaes? I know some perl but haven't used it for about 3 years. Does anyone have a ready made message board that I could adapt my message board to? Thanks in advance!
jwoffmt
|
|
|
|
|
|
|
I'm working on a site that requires the end-user to download Word & PDF documents. I've never had to program a download button before. I'm sure it's something simple but just haven't been able to locate the script. Can someone help me with this? Thanks!
jwoffmt
|
|
|
|
|
You could just link to zip files or:
How do I prompt a "Save As" dialog for an accepted mime type?
http://www.aspfaq.com/show.asp?id=2161
|
|
|
|
|
Does anyone know how to obtain the location of a frame within a frameset in javascript. I tried:
location = parent.mainFrame.location.href;
but that does not work as it says permission denied.
Thank you
|
|
|
|
|
"mainFrame" is a frame name?
and what do your codes locate?
aa.htm
tt.htm
var location= parent.bb.location.href;
alert(location);
testing in ie6.0
Thinking-Asking-Thinking
|
|
|
|
|
The scenario is this - a Web Service that was developed on a XP box has been deployed on IIS 6.0 & Win2k3 m/c. The Win2k3 m/c also has VS.NET 2003 installed on it.
issue #1.
The web service needs to launch a third party process (lets call it abc.exe) to work properly. This step fails on the Win2k3 box. w3wp.exe is running under the default NETWORK SERVICE user privileges. Is there a way to enable/set privileges to the NETWORK SERVICE account so that the ASP.NET worker process has the ability to launch any/specific process? [i tried launching Notepad.exe thru the web service & it seems to launch this successfully.]
issue #2
i expected to debug the web service on the Win2k3 m/c via VS.NET but it fails with the message "... Unable to start debugging on web server. The project not configured to be debugged.". I verified the project settings between my XP & Win2k3 m/c & they are identical. Now i'm beginning to suspect that the Win2k3 default lock-down security is the culprit. Any pointers? I even added the user to the "Debugger Users" group as suggested in the docs to no avail.
Any help is appreciated. TIA.
Chen Venkataraman
|
|
|
|
|
In windows server 2003 , it doesn't matter whether you have changes worker proccess startup account in order to get higher privilage, there is some thing new in that, as you can see in the iis there is one Application pools node, the only things you need to do is to create a new pool and set the Local system account for that pool, then you can specify you website to use this pool, in home directory of your web site, and set the application pool property to use that one u created.
for issue #2 i think there should be something about server extention 2002 configuration, check it plz.
hope it works for u
|
|
|
|
|
Hello,
I have written an ASP page that send an e-mail server side using CDOsys library. How is possible to set the property "Read Receipt" used by Outlook and Outlook Express to permit to receive a mail when the destination reads the mail? I have found on internet that exist a property "urn:schemas:mailheader:Read-Receipt-To", I try to set this to the e-mail account of the sender but it fails (the mail is sent ).
I post the ASP code written in javascript.
<%<br />
var cdoSendUsingMethod = "http://schemas.microsoft.com/cdo/configuration/sendusing";<br />
var cdoSMTPServer = "http://schemas.microsoft.com/cdo/configuration/smtpserver";<br />
var cdoSMTPConnectionTimeout = "http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout";<br />
var cdoSMTPAuthenticate = "http://schemas.microsoft.com/cdo/configuration/smtpauthenticate";<br />
var cdoSendUserName = "http://schemas.microsoft.com/cdo/configuration/sendusername";<br />
var cdoSendPassword = "http://schemas.microsoft.com/cdo/configuration/sendpassword";<br />
var cdoSMPTServerPort = "http://schemas.microsoft.com/cdo/configuration/smtpserverport";<br />
var cdoDispositionNotificationTo = "urn:schemas:mailheader:dispositon-notification-to";<br />
var cdoReturnReceiptTo = "urn:schemas:mailheader:Read-Receipt-To";<br />
var cdoBasic = 1;<br />
var cdoAnonymous = 0;<br />
<br />
function SendSimpleMail(strTo, strSender, strSubject, strTesto, strAllegato, strSMPTServer, bReadReceipt){<br />
try { <br />
var objMessaggio = new ActiveXObject("CDO.Message");<br />
var objConfig = new ActiveXObject("CDO.Configuration");<br />
var objFields = objConfig.Fields;<br />
<br />
objFields.Item(cdoSendUsingMethod) = 2; <br />
objFields.Item(cdoSMTPServer) = strSMPTServer;<br />
objFields.Item(cdoSMPTServerPort) = 25; <br />
objFields.Item(cdoSMTPConnectionTimeout) = 60;
objFields.Item(cdoSMTPAuthenticate) = cdoBasic;<br />
<br />
if (bReadReceipt == 1) {<br />
objFields.Item(cdoDispositionNotificationTo) = strSender<br />
objFields.Item(cdoReturnReceiptTo) = strSender<br />
}<br />
<br />
objFields.Update(); <br />
<br />
objMessaggio.Configuration = objConfig;<br />
<br />
objMessaggio.To = strTo;<br />
objMessaggio.From = strSender;<br />
objMessaggio.Subject = strSubject;<br />
objMessaggio.HTMLBody = strTesto;<br />
<br />
if(allegato.length>0)<br />
{<br />
objMessaggio.AddAttachment(Server.MapPath("../Allegati/"+ strAllegato), strAllegato);<br />
}<br />
<br />
objMessaggio.fields.update();<br />
objMessaggio.Send();<br />
}<br />
catch (e)<br />
{<br />
Response.Write(e.description);<br />
Response.End(); <br />
}<br />
<br />
delete objFields;<br />
delete objConfig;<br />
delete objMessaggio;<br />
<br />
}<br />
<br />
<br />
%>
Thanks
Antonio del Pozzo
|
|
|
|
|
This may be a dumb suggestion, but the first thing that catches my eye is the following typo:
Ant63 wrote:
var cdoDispositionNotificationTo = "urn:schemas:mailheader:dispositon-notification-to";
...should be disposition ...
HTH
Paul
van der walt is qualified to answer - googlism
modified 18-Jul-18 11:59am.
|
|
|
|
|
I have modified the code ( ) with your ... tip, but it still fails: send the e-mail but never receive the receipt when the mail is read. Any suggestion?
Thanks in advance
Antonio
|
|
|
|
|
I just did some research on the MIME headers required for read-receipts, and as far as I can make out this is all you'll need: (obviously depending on how the CDO mail component works, I haven't used it)
Instead of:
var cdoDispositionNotificationTo = "urn:schemas:mailheader:dispositon-notification-to";<br />
var cdoReturnReceiptTo = "urn:schemas:mailheader:Read-Receipt-To";<br />
<br />
<br />
objFields.Item(cdoDispositionNotificationTo) = strSender<br />
objFields.Item(cdoReturnReceiptTo) = strSender
You should be able to get away with the following:
var cdoDispositionNotificationTo = "Disposition-Notification-To";<br />
<br />
<br />
objFields.Item(cdoDispositionNotificationTo) = strSender;
I'm not entirely sure what the effect of (not) using the schemas is, but as far as I can see that should work... Good luck
[edit] You probably also need a semicolon after the "objFields.Item(cdoDispositionNotificationTo) = strSender" line - I see you don't have that in your code... [/edit]
Paul
van der walt is qualified to answer - googlism
modified 18-Jul-18 11:59am.
|
|
|
|
|
I want to develop a program. This program will transfer a huge file from client machine to Web Server, and it should include the connection resume function like "GetRight". But I have no idea about it...
Anyone help? As I know, FTP should be common and can download from Internet, but what about the connection resume feature? I really do not have any ideas about it.
|
|
|
|
|
Probably not possible with a browser as your client.
I thought about this before...
If your browser could automatically upload files to servers without your consent, hackers could write a web page and extract files from your PC without your knowledge...that would be bad.
As far as having your user select the file again on their computer (if it was half downloaded and interupted or something) having the server side script resume where it left off would probably be impossible. I think the browser does the the uploading and is usually done so with HTTP not FTP so you probably don't have that freedom.
Cheers
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
No, you misunderstand me. I am not going to develop a web application which automatic upload file, I agree it is not possible. I want to develop a windows application, not web application actually. I post my question here is because it is FTP program, which related to Internet...
|
|
|
|
|
There are a few FTP client and servers already available if you look around CP...
IHMO wrong forum...try Visual C++ forum....much better results...
Cheers
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
Hi
I create a Dialog, on place WebBroser control on it.
when user insert one media (Window media, Real, QuickTime, Flash). I bulid html string that load Media control(depond on file to insert). And i naviagate form memory use this string (put_innerHtml).
this my code:
LPDISPATCH lpDispatch = NULL;
IHTMLDocument2* lpHtmlDocument= NULL;
IHTMLElement* lpBodyElm = NULL;
lpDispatch = m_WebCtrlPreview.GetDocument();
if(lpDispatch)
{
lpDispatch->QueryInterface(IID_IHTMLDocument2, (void**)&lpHtmlDocument);
lpDispatch->Release();
}
if(lpHtmlDocument)
{
lpHtmlDocument->get_body(&lpBodyElm);
lpHtmlDocument->Release();
}
if(lpBodyElm)
{
BSTR bstrHtml = szHtmlPreview.AllocSysString();
lpBodyElm->put_innerHTML(bstrHtml);
SysFreeString(bstrHtml);
lpBodyElm->Release();
}
szHtmlPrivew is ok, it contains html string to preview media.
My Application run well, But when i insert a Quick Time movie (*.mov), it play on Web Browser control, and then i insert another kind of media, my application will appears a critical error.
HELP ME
Regards
Trung Huynh
|
|
|
|
|
wrong forum
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
Hi,
I have a Web Part that I have built using VB.NET. It all works fine and I have included it on a couple of pages (STS 2003), however what i'd now like to do is to persist a variable using Session.
I have modified the line in Web.Config to enable session: -
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
And in my Web Part I have imported the relevant namespace: -
Imports System.Web.HttpContext
And added the following code to one of my page events: -
Current.Session.Add("ProductID", "A11234E")
Unfortunately as soon as this event fires and the code to add my session variable is executed it all blows up!
Can somebody please tell me where I am going wrong, or better still post up some code of a Web Part using session variables (I don't mind C# or VB.NET).
Thanks in advance.
Mark
|
|
|
|
|
ehm...how? I dropped a panel control on my form, then a edit box. I am now trying to move the edit box to the lower right hand corner with my mouse but I can't. The ide doesn't allow me to move it. Seems I can highlight it, resize it, just not move it....
Thanks
Ralph
|
|
|
|