|
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
|
|
|
|
|
Remove the panel. Add a grid layout control from the HTML toolbox. Convert it to a server control. Voila, you have a panel control that allows you to move things where you want them.
|
|
|
|
|
Hi.
After my last message, ive learnt the basics of perl/Tk and its structure. One part that I cant figure out is...
My original perl script took a text file and analysed each line individually, and worked through to the end of the file.
Id like to emulate this with a perl/tk gui by using a "scrolled" text area which the user cuts and pastes data into.
Then presses a calculate button which then runs the perl script.
I then want the text area to be reset and updated to show the results of the calculations.
Could someone give me a hand in how to understand what is required?!?
Thanks very very much!
|
|
|
|
|
This is ramakrishna from INDIA. i have a doubt on IE5.0 and above
with MAC Operating System.
i have developed an application in .NET using
Asp.NET,VB.NET,Javascript and Flash. This application is working
file windows operating systems. I dont have any idea on MAC with
I.E.5.0 and above so what are the problems we may expect when we
access the .NET application through MAC OS with I.E.5.0 and above.
plz reply me....
Thanks
Ramakrishna.J
SoftProSystems ltd.
|
|
|
|
|
There are many problems that can popup on Mac. I know smartnavigation doesn't work.
What are the problems you are having?
|
|
|
|