Response write does not output the values of variables
Response write does not output the values of variables
am 25.03.2005 17:43:03 von jack
Hi,
I got a code where I am trying to check the values of the variables of
AuthorID and
intCount by adding response.write statement. However, I am not getting the
value of the above two variables. Cannot figure out why. Any help is
appreciated.
Thanks.
Please ignore earlier post which got partially posted.
CODE:
If fPerformUpdate = True Then
Dim intCount
intCount = 0
Dim AuthorID
Dim FName, LName, Phone
Dim Address, City, State
For Each Item In Request.Form
If Left(item, 3) = "ID_" Then
AuthorID = Mid(Item, 4)
intCount = intCount + 1
End If
Response.Write AuthorId & "
"
Response.Write intCount & "
"
Next
End If
Re: Response write does not output the values of variables
am 25.03.2005 17:55:08 von jeff.nospam
On Fri, 25 Mar 2005 08:43:03 -0800, "Jack"
wrote:
>Hi,
>I got a code where I am trying to check the values of the variables of
>AuthorID and
>intCount by adding response.write statement. However, I am not getting the
>value of the above two variables. Cannot figure out why. Any help is
>appreciated.
>Thanks.
>Please ignore earlier post which got partially posted.
>CODE:
>If fPerformUpdate = True Then
> Dim intCount
> intCount = 0
>
> Dim AuthorID
> Dim FName, LName, Phone
> Dim Address, City, State
>
> For Each Item In Request.Form
> If Left(item, 3) = "ID_" Then
>
> AuthorID = Mid(Item, 4)
> intCount = intCount + 1
> End If
> Response.Write AuthorId & "
"
> Response.Write intCount & "
"
> Next
>End If
Is there a value being sent by the form? Does it meet the conditions
in your IF staement? Add a Response.Write "Got Here!" in your IF/END
IF block to see if it's even executing.
Jeff
Re: Response write does not output the values of variables
am 25.03.2005 19:21:03 von jack
Thanks Jeff, I saw that the if conditions is not being met for which there is
no value of Response.write variables. I appreciate your help. Regards.
"Jeff Cochran" wrote:
> On Fri, 25 Mar 2005 08:43:03 -0800, "Jack"
> wrote:
>
> >Hi,
> >I got a code where I am trying to check the values of the variables of
> >AuthorID and
> >intCount by adding response.write statement. However, I am not getting the
> >value of the above two variables. Cannot figure out why. Any help is
> >appreciated.
> >Thanks.
> >Please ignore earlier post which got partially posted.
> >CODE:
> >If fPerformUpdate = True Then
> > Dim intCount
> > intCount = 0
> >
> > Dim AuthorID
> > Dim FName, LName, Phone
> > Dim Address, City, State
> >
> > For Each Item In Request.Form
> > If Left(item, 3) = "ID_" Then
> >
> > AuthorID = Mid(Item, 4)
> > intCount = intCount + 1
> > End If
> > Response.Write AuthorId & "
"
> > Response.Write intCount & "
"
> > Next
> >End If
>
> Is there a value being sent by the form? Does it meet the conditions
> in your IF staement? Add a Response.Write "Got Here!" in your IF/END
> IF block to see if it's even executing.
>
> Jeff
>