Can the type of client influence ASP code?

Discussion in 'ASP General' started by CPS, Sep 20, 2004.

  1. CPS

    CPS Guest

    Hi,

    I have a problem, that suggests the client (type of?) is influencing the
    HTML generated by my ASP code. Is this even possible?

    My problem is this.

    I have an ASP routine that takes some image details and constructs the HTML
    as below:

    Sub vbWriteBodyPic( strBdyPic, strBdyLink, strBdyAlt, strHTML )
    If Trim(strBdyPic) <> "" Then
    strHTML = "<img border=0 src=""" & strBdyPic & _
    """ width=600 height=100 alt=""" & _
    Server.HTMLEncode(Trim(strBdyAlt)) & """/>"
    If Len(strBdyLink)>0 Then strHTML = "<a href=""redirect.asp?url=" & _
    strBdyLink & """ TARGET=""Target = new"">" & strHTML &
    "</a>"
    strHTML = "<tr><td align=center>" & strHTML & _
    "</td></tr><tr><td>&nbsp;</td></tr>" & vbCrLf
    Else
    strHTML = ""
    End If
    End Sub


    On some clients, the <img......./> tag is missing completely from the
    generated HTML. On others, it is rendered correctly 100% of the time. (The
    data in the parameters is identical - from same DB)

    The fact that this happens on only some clients, suggests it is the client
    at fault, but the fact that HTML is missing suggests it is the
    Server/asp/code at fault.

    Does anyone have any ideas, as this is driving me mad!

    Many Thanks.

    Colin
    CPS, Sep 20, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex Callea
    Replies:
    4
    Views:
    484
    David Browne
    Nov 9, 2004
  2. =?Utf-8?B?V2hpc2t5Um9tZW8=?=

    How to influence who the User is

    =?Utf-8?B?V2hpc2t5Um9tZW8=?=, Feb 13, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    354
    Alec MacLean
    Feb 13, 2006
  3. Peter Hartmann
    Replies:
    1
    Views:
    286
    Tim Roberts
    Sep 18, 2005
  4. Claudius
    Replies:
    2
    Views:
    308
    Bo Persson
    Feb 25, 2006
  5. +mrcakey
    Replies:
    9
    Views:
    456
    Jonathan N. Little
    Oct 11, 2008
Loading...

Share This Page