|
No:
Regards
GeordieWebProgrammer
|
|
|
|
|
Use that name when you read the information for the uploaded file, then.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for the help!
I did what you said guffa so the code looks like:
if request.form("attachment")<>"" then
set upl = Server.CreateObject("SoftArtisans.FileUp")
upl.saveas "attachment"
mailer.AddAttachment upl.Form("attachment").ServerName
end if
It does not like the code in bold stating 'cannot call binary read'. Any help?
Regards
GeordieWebProgrammer
|
|
|
|
|
You can't use Request.Form when you are using an upload component. You have to get the form data from the component.
The reason for this is that the form data and the uploaded files both come in the request. They have to be parsed at the same time, and the component does this.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks guffa for your help so far
Regarding not being able to use request.form in the following code:
if request.form("attachment")<>"" then
set upl = Server.CreateObject("SoftArtisans.FileUp")
upl.saveas "attachment"
mailer.AddAttachment upl.Form("attachment").ServerName
end if
are you regarding this to the first line. If so I thought I could use it as it is only checking if theirs some data in the file box on the form page to see whether to add the attachment. If not where abouts are you relating to? Sorry am new to ASP I just started it 2 weeks ago but know alot to do with PHP.
Thanks for your help
GeordieWebProgrammer
|
|
|
|
|
Yes, I am talking about the first line. That is the only place in the code shown where you use Request.Form.
It doesn't matter what you do with the value you read from the form data. If you read anything at all from the Request.Form collection, it will parse the request and discard any uploaded files.
I see that you also changed the file name you use when saving the uploaded file. Is this intentional, or a mistake?
---
b { font-weight: normal; }
|
|
|
|
|
I understand now.
So how will I get thet request to work then will something similar to:
set upl = Server.CreateObject("SoftArtisans.FileUp")
'if statement checking to see if the attachment box on the form has data in it
if upl.form("attachment")<>"" then
'Path where to save tyhe file to
upl.saveas ("global/attachment.out")
'upload the attachment to the email
mailer.AddAttachment upl.Form("attachment.out").ServerName
'end the if statement
end if
but this brings back the error 'Cannot Call BinaryRead' relating to the line bolded out above.
I added comments of what i think is going on if wrong please put me right.
Thanks so far for your help.
Regards
GeordieWebProgrammer
|
|
|
|
|
You have to check the documentation for the component to see in what order it does things. Perhaps you have to save the file before you can access the Form collection.
Some components parse the request when the component object is created, others parse the request when the files are saved.
---
b { font-weight: normal; }
|
|
|
|
|
hi
i am parsing an html file to get the all url links.plz any body can tell me the regular expression for extracting a link.for example the link in html file is
Fast Cool Cars - Fast Cars,
Cool Cars
in this i have need of only http://www.fastcoolcars.com
i wan to get all links and store them in array.but i am not making regular expression for this.plz help me
thanks
|
|
|
|
|
Hi there,
You can try the Regex class with the regular expression href\\s*=\\s*(?:\"(?<1>[^\"]*)\"|(?<1>\\S+)) , the sample code looks something like this:
public ArrayList ExtractHrefs(string inputString)
{
ArrayList hrefs = new ArrayList();
Regex r = new Regex("href\\s*=\\s*(?:\"(?<1>[^\"]*)\"|(?<1>\\S+))",
RegexOptions.IgnoreCase|RegexOptions.Compiled);
for(Match m = r.Match(inputString); m.Success; m = m.NextMatch())
{
hrefs.Add(m.Groups[1].Value);
}
return hrefs;
} For more information, see .NET Framework Regular Expressions[^]
|
|
|
|
|
plz if you tell me this expression for Perl.i want to use this in perl.
i shall be thankful to you.
|
|
|
|
|
Oops! I forgot the fact that I was in the Web Development forum, not ASP.NET. Sorry, I'm not familiar with the Perl, but Google can help you out.
Clickety[^]
|
|
|
|
|
Hello
I have a ActiveX component created in VB6, (where it works fine!). But when I implement the ActiveX component into VS.NET web application, on the client side, the methods(in the Active X) dont function as they should. Is there anything I have to do to my activeX before I implement it into VS.NET??
Spaz
|
|
|
|
|
Hi there,
To host an ActiveX control on a web page .aspx, you simply use the object tag, and what you might need to do is to create a cab file for your ActiveX control in case it can be downloaded to the client machine if it is not yet installed at the client side. Because you don't talk about what your function does, so IMO you might want to check some thing related to the permission, path, ... which can cause the control not to run properly.
|
|
|
|
|
My method is based on CAPICOM.
When the ActiveX is plased inside the .net web page the method is no loger abel to load a certificate.
So I agree with you that there is probably something wrong with my permissions.
Spaz
|
|
|
|
|
Hello everyone:
I have a problem that have confused me several days,here is the senario:
Some times user may accidently close a page via which some operation may have been submitted to the database,in that case we can use a confirmation msgbox to avoid that.
However,if the user really want to close that window ,all the data that have been submit to the database will be no use at all.of course,we can use a sever side code to solve this problem.
what i dont know is when the user clicks "yes" (which means he really want to close the page)in the client side ,how can we triggle a server side code to clean all the data that has just been submit to the database?and after that how can we close the page?
is there any one who can give me some suggestion? Thank you in advance!
|
|
|
|
|
Hi
I am developing an application in jsp and using oracle 9i as backend . i have a page that's asking for input for a field called as code and it has a serach icon which takes the page to next page whcih shows all the values for that code to be entered . i want a facility such that a user is able to select the code and when user clicks on that code in this current page it should take that clicked value to the previuos page and closes that window . how can i write this script & how do i provide this facility in my application . please help thanks for any help .
|
|
|
|
|
I have a word document that i can show it in HTML form , but i wana to show all details on my word document such as PARAGRAPH , TITR , SPACES , how can i do this ?
i test SAVE AS XML , but i think it must be eisier way to show these details , HELP ME BY SAMPLE
Have good day and time
|
|
|
|
|
It depends on the MSWord version and components that you have installed but if the file is saved as Word HTML you can choose to view the source code by selecting the menu "View > Source HTML Code".
But, why don't you open the document with any other editor (notepad)?
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
i think i dont explain it well , i know i can see it with View menu , but i wana process this word document , so i must first process it , i can do it also , after processing , some sentence of this text change to some links , and some of them not !!! , THEN AFTER THESE PROCESS I WANA SHOW IT IN ASP FORM , but with paragraph , titrs , headers , footer !! how can i do this ???
thanks for helping me in this confused case !!!!
|
|
|
|
|
Ups !!! I think I can't help you ...
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
THANK YOU FOR ALL!
Have good day and time
|
|
|
|
|
I am developing a Wep application. The used browser is IE 6.0. I encountered the following problem:
When I write about 10 variables into the cookie of the client browser, a session variable of the server cookie is overwritten. In other words, the session variable is invalidated. When I write less than the number of variables, it is okey!!!
Can you explain this problem for me? How can I fix that?
Thank you in advance!
N@m
|
|
|
|
|
Hi there,
Looks like the cookies produced by your application exceed the cookie limitation of Microsoft IEs. You can take a look at this document for more information:
Number and size limits of a cookie in Internet Explorer[^]
You might also be interested in the Fiddler[^] tool which you can use to inspect cookie data in the Http stream.
|
|
|
|
|
i need to edit webpage source files
coding of some of them does not correspond with my system settings (codepage for non-unicode programs) and many times they are just includes with unspecified code page at all
i want simple text editor can select codepage of edited text
if i will see wrong characters i will just select correct codepage - just like into web browser (unfortunately there just read only, and of course without complete source visibility)
i do not want buy something like front page
open office knows work with codepage just in plain html files, i need to edit also php scripts
|
|
|
|