Re: ad else is wrong ????
From: Al Jones (aljones_at_yahoo.com)
Date: 09/06/04
- Next message: Al Dunbar [MS-MVP]: "Re: ad else is wrong ????"
- Previous message: Al Jones: "Re: ad else is wrong ????"
- In reply to: Al Jones: "Re: ad else is wrong ????"
- Next in thread: Al Dunbar [MS-MVP]: "Re: ad else is wrong ????"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 5 Sep 2004 20:46:45 -0500
Okay, I headed after the error - and after some reading, moved the entire
ASP portion into the <head> </head> which took care of these problems.
Still, any comments and / or assistance on what you see would really be much
appreciated.
"Al Jones" <aljones@yahoo.com> wrote in message
news:uRWouI7kEHA.3520@tk2msftngp13.phx.gbl...
> I'm not as antagonistic as I am frustrated. I stopped coding about 10
years
> ago and have been doing a little of 'you name it' since. A friend asked
me
> to come on to work some projects she has so I figured this was as good a
> chance as any to get my feet wet again.
>
> This has been, following in my predecessors footsteps, a two language
> project. The screen handling itself have been in javascript (I'm okay
<??>
> in 'C') but I haven't written any dialect of BASIC since BASIC 6. That
> should explain the mixing of java / VB script. And my aplogies if I sound
> terse - as I said, I'm Just just frustrated.
>
> Then entire script is fairly short at 40+/- lines so I'm going to snip the
> quotes and include the whole thing. This is simply taking the input from
> the first of three possbile forms (the other two are optional) and
stashing
> the data as session variables and then deciding if either of the two other
> forms are needed.
>
> Seriously, any criticism and instruction is appreciated. (Even if it does
> not necessarily sound like it....) //Al
>
> <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> ' Yes it did say JAvascript and
I
> corrected that.
> <%
> Response.Buffer = True
> %>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <title>SavePersonal</title>
> </head>
>
> <body>
> <%
> Session("svPersonName") = Request.Form("fldName") 'and also
removed
> the .item
> Session("svPersonAddress") = Request.Form("fldAddress") ' ????
> Session("svPersonCity") = Request.Form("fldCity")
> Session("svPersonState") = Request.Form("fldState")
> Session("svPersonZipCode") = Request.Form("fldZipCode")
> Session("svPersonPhone") = Request.Form("fldPhone")
> Session("svPersonFax") = Request.Form("fldFax")
> Session("svPersonEmail") = Request.Form("fldEmail")
> Session("svPersonMarital") = Request.Form("selMarital")
> Session("svPersonHomeOwner") = Request.Form("sleHomeOwner")
> Session("svPersoncbAuto") = Request.Form("cbAuto")
> Session("svPersoncbTenanct") = Request.Form("cbTenants")
> Session("svPersoncbHomeOwner") = Request.Form("cbHomeOwner")
> Session("svPersoncbValuable") = Request.Form("cbValuable")
> Session("svPersoncbUmbrella") = Request.Form("cbUmbrella")
> Session("svPersoncbFineArts") = Request.Form("cbFineArts")
> Session("svPersoncbBoats") = Request.Form("cbBoats")
> Session("svPersoncbFlood") = Request.Form("cbFlood")
>
> if (Session("svPersoncbAuto") = "checkbox" ) then
> Response.Redirect("auto.asp")
> else
> if (Session("svPersoncbHomeOwner") = "checkbox") then ' this is line
> 36.....
> Response.Redirect("HomeOwner.asp")
> end if
> Response.Redirect("PersonMail.asp")
> end if
>
> %>
>
> </body>
> </html>
>
> but I then get a different error - just moved a little.
> Response object error 'ASP 0156 : 80004005'
>
> Header Error
>
> /insurancenetusa/SavePersonal.asp, line 36
>
> The HTTP headers are already written to the client browser. Any HTTP
header
> modifications must be made before writing page content.
>
>
- Next message: Al Dunbar [MS-MVP]: "Re: ad else is wrong ????"
- Previous message: Al Jones: "Re: ad else is wrong ????"
- In reply to: Al Jones: "Re: ad else is wrong ????"
- Next in thread: Al Dunbar [MS-MVP]: "Re: ad else is wrong ????"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|