Click here to Skip to main content
16,010,268 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: HTTP/1.1 500 Internal Server Error? Pin
Paddy Boyd24-Jul-06 22:03
Paddy Boyd24-Jul-06 22:03 
GeneralRe: HTTP/1.1 500 Internal Server Error? Pin
Aslam Bari24-Jul-06 23:42
Aslam Bari24-Jul-06 23:42 
GeneralRe: HTTP/1.1 500 Internal Server Error? Pin
VK-Cadec27-Jul-06 9:55
VK-Cadec27-Jul-06 9:55 
QuestionProblem with uploading with image + text box field Pin
imthias00724-Jul-06 19:24
imthias00724-Jul-06 19:24 
AnswerRe: Problem with uploading with image + text box field Pin
Paddy Boyd24-Jul-06 22:04
Paddy Boyd24-Jul-06 22:04 
GeneralRe: Problem with uploading with image + text box field Pin
imthias00724-Jul-06 22:58
imthias00724-Jul-06 22:58 
GeneralRe: Problem with uploading with image + text box field Pin
Aslam Bari24-Jul-06 23:49
Aslam Bari24-Jul-06 23:49 
GeneralRe: Problem with uploading with image + text box field Pin
imthias00725-Jul-06 0:45
imthias00725-Jul-06 0:45 
hi,

As per the above your question 1. the next page what i have this below script
the action page:UploadDest.asp and the below script is the code which has and its working fine when i upload the image.
--- this script below i downloaded from google site -------
<%
response.buffer = true 'in my tests, this seems to increase speed a bit

set oUpload = server.createobject("ASPUpLoad.clsUpload")




'If nothing's entered, the .dll will save the file
'in the same path in which it resides, with the
'file name entered by the user

'THIS SAVES TO SAME DIRECTORY THE WEB PAGE IS IN
'MAKE SURE WEB USER HAS WRITE ACCESS
'TO THIS DIRECTORY (OR WHATEVER DIRECTORY YOU
'CHOOSE FOR SAVING). OTHERWISE, AN ERROR WILL OCCUR

oUpload.Path = Server.MapPath(".")

'Don't worry if user leaves FileName blank.
'the dll will just save it as the file
'selected.

if oUpload.Form("SaveAs") <> "" then

'get rid of any "\" chars, because we are
'setting path above. But you can set full
'path with this property to.

sSplit = split(oUpload.Form("SaveAs"), "\")
sFileName = sSplit(ubound(sSplit))


'if user has specified a file type
'use that, otherwise, we will just take what's
'given


if oUpload.Form("FileType") <> "Other" then

if instr(sFileName, ".") > 0 then
sSplit = split(sFileName, ".")
sFileName = sSplit(0) & "." & oUpload.Form("FileType")
else
'file type doesn't actually convert one file type to
'another. This is just used as an illustration
'of the Form Object.
sfileName = sFileName & "." & oUpload.Form("FileType")
end if

End if

oUpload.FileName = sFileName
End if

bAns = oUpload.Save

%>

<title>FreeVBCode.com ASP Upload Example


ASP Upload Results


<% if bAns = true then %>
The uploaded file was successfully saved to the host machine as <%= oUpload.Path & oUpload.FileName%>


In addition, the following information was obtained from the submitting form:


<% set objFormDetails = oUpload.FormDetails
lCount = objFormDetails.Count
for lCtr = 1 to lCount
Response.write "Key: " & objFormDetails.Key(lCtr) & " Value: " & objFormDetails.Item(lCtr) & "
"
Next

%>


<% else %>
No file was saved due to the following reason: <%= oUpload.Error %>
<%
end if


set oUpload = nothing
%>





---------------------------- end of above script -----------------
But my main concern is how am i going to get the rest of the text content variables like as in this url : http://www.focus.com.sg/asp/addnews.asp to the above action page.

For the 2 point aslam , can u please say exactly how am i goin to use session variable on those pages. fyi, i have used the session variable on action page : UploadDest.asp as per the code below

<%
Session("title") = Request.Form("title")
Response.Write(Session("title"))
Response.End

then the rest of the as in the above script.

--------- if your clear enough help me how to use session variable and how to add the variable to querystring and you also mentiond on 4th point about the database query to show information on next page. give me some solutions


AnswerRe: Problem with uploading with image + text box field Pin
Guffa25-Jul-06 3:01
Guffa25-Jul-06 3:01 
AnswerRe: Problem with uploading with image + text box field Pin
rmccoll26-Jul-06 8:29
rmccoll26-Jul-06 8:29 
AnswerRe: Problem with uploading with image + text box field Pin
Guffa26-Jul-06 23:55
Guffa26-Jul-06 23:55 
GeneralRe: Problem with uploading with image + text box field Pin
rmccoll31-Jul-06 6:08
rmccoll31-Jul-06 6:08 
GeneralRe: Problem with uploading with image + text box field Pin
Guffa1-Aug-06 6:11
Guffa1-Aug-06 6:11 
Questionwriting to hidden input with javascript Pin
jszpila24-Jul-06 10:14
jszpila24-Jul-06 10:14 
AnswerRe: writing to hidden input with javascript [modified] Pin
Paddy Boyd24-Jul-06 22:07
Paddy Boyd24-Jul-06 22:07 
AnswerRe: writing to hidden input with javascript Pin
Guffa25-Jul-06 2:52
Guffa25-Jul-06 2:52 
QuestionWSDL Data binding information Pin
TomWork24-Jul-06 7:47
TomWork24-Jul-06 7:47 
QuestionGet current system time Pin
Aqueel24-Jul-06 1:48
Aqueel24-Jul-06 1:48 
QuestionHow to archieve in implemented toolbar in mozilla Pin
shivditya24-Jul-06 1:30
shivditya24-Jul-06 1:30 
QuestionTemplate Creation using TYPO3 Version 4 Pin
georgekjolly24-Jul-06 1:11
georgekjolly24-Jul-06 1:11 
QuestionAjax in asp.net 1.1 why almost autocomplete not working in edit mode? [modified] Pin
uscodeproject22-Jul-06 4:57
uscodeproject22-Jul-06 4:57 
AnswerRe: Ajax in asp.net 1.1 why almost autocomplete not working in edit mode? Pin
Edbert P23-Jul-06 15:22
Edbert P23-Jul-06 15:22 
GeneralRe: Ajax in asp.net 1.1 why almost autocomplete not working in edit mode? [modified] Pin
uscodeproject24-Jul-06 9:11
uscodeproject24-Jul-06 9:11 
QuestionASP ? Ajax ? :confused: Pin
RedDragon2k22-Jul-06 0:57
RedDragon2k22-Jul-06 0:57 
AnswerRe: ASP ? Ajax ? :confused: Pin
Landarzar22-Jul-06 1:31
Landarzar22-Jul-06 1:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.