Re: ad else is wrong ????

From: Al Jones (aljones_at_yahoo.com)
Date: 09/06/04


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.
>
>



Relevant Pages

  • Re: OT: sea level rise hmmmmm....
    ... some care in responding I'd tend to allow a little more time. ... Okay. ... Climate science isn't so dissimilar, ... global warming, more precipitation per year and a change in the time ...
    (sci.electronics.design)
  • Re: Bottlenecks (or not) in human evolutionary history, as promised to Dorothy Heydt a year ago! (lo
    ... >>> The genes conferring the modern phenotypic traits conferred a greater ... >And that's also okay, or more nearly okay than it might at first ... >those that commanded their construction don't act as though *they* care ...
    (rec.arts.sf.composition)
  • Re: Hello From the other side
    ... I'm sure Rolex is one of the very best medicines available. ... "He's the watch dog" a 140 lb German Shepherd who is my buddy. ... I have to go for x-rays on Friday to make sure everything is okay. ... So, once again, thank you all for all the beautiful things you said, and shame on you for making me cry for over 30 minutes, because you care. ...
    (alt.support.stop-smoking)
  • Re: Hello From the other side
    ... Rest up, take care of yourself, do what you gotta do. ... the watch dog" a 140 lb German Shepherd who is my buddy. ... Friday to make sure everything is okay. ...
    (alt.support.stop-smoking)
  • Re: OT accident
    ... Ouch! ... hear you personally are okay. ... Take care of yourself (pamper yourself as ...
    (rec.crafts.textiles.quilting)