Results 1 to 5 of 5


  1. #1
    Vidya Guest

    Default PLEASE HELP

    I have this link on a page which passes the parameters to the next page & appropriately displays the message.<BR><BR>This works in IE very well but not in NS??<BR><BR>&#060;a href = "abc.asp?SuB=&#060;%=rs("Subject")%&#062;&Day=&#06 0;%=icurrent%&#062;"&#062;&#060;%=rs("Subject")%&# 062;&#060;/a&#062;<BR><BR>rs("subject") is not a single word, its like "abc xyz". Has it got anything to do with the spaces in between.<BR><BR>In my second page <BR>Set rs = conn.Execute("select * from table where Subject Like &#039%"&Request.querystring("SuB")&"%&#039 and cstr(Day)=&#039"&Request.Querystring("Day")&"&#039 ")<BR><BR>What cud be the problem??

  2. #2
    Skippie Guest

    Default RE: PLEASE HELP

    A URL that contain spaces will work in IE, but not in Netscape. <BR><BR>There are two ways to fix the problem:<BR><BR>1: Replace spaces with "+" like this: <BR>&#060;%= Replace(rs("SUBJECT")," ","+") %&#062;<BR><BR>2: Replace all "bad" characters with ASCII values like this:<BR>&#060;%= Server.URLEncode(rs("SUBJECT")) %&#062;<BR><BR>-- Skippie<BR>

  3. #3
    Vidya Guest

    Default RE: PLEASE HELP

    Thank U so much...<BR><BR>

  4. #4
    soser Guest

    Default RE: PLEASE HELP

    Yep its the spaces. <BR><BR>Try using &#060;%=server.urlencode(rs("Subject")%&#062; (as well as any others that you expect spaces in)<BR><BR>

  5. #5
    Smitty Guest

    Default RE: PLEASE HELP

    The querystring space acts like a delimeter and causes the truncation. You might try: Var = Replace(Var, " ", "_") and perform the opposite Replace in the receiving page or pass the value in a session variable. Another option is to requery the database for the value in the receiving page.<BR>HTH.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts