This topic is locked

Personalized ***_list.asp + header

11/23/2005 05:16:28
ASPRunnerPro General questions
A
Alex_xelA author

I'm not able to personalized the file _list.asp.

I should insert an image or better an header (header.asp).

Where I must put the row <% Server.Execute("header.asp") %> ???

In my tests the error visualized is:

(italian-english)

Riga (row) 209

Carattere (carachter) 4

Error: 'document.forms.frmAdmin.TargetPageNumber is null o isn't object

Code 0

Url: [http://www'>http://www.
//_list.asp](http://www'>http://www.//***_list.asp)
Thanks, Alex!

Sergey Kornilov admin 11/23/2005

Alex,
use the following:

<!--#include file="header.asp"-->
A
Alex_xelA author 11/24/2005

Thanks, Sergey
the problem is:

when I insert the code in to the asp page, the search mask on the top don't work correctly... the error is the same, the page don't "filter out"... don't work with my input...
Sorry, for my bad english, but I hope you understand my questions... <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=6867&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />
Saluti, Alex!

Sergey Kornilov admin 11/24/2005

Alex,
The error occurs because your header.asp breaks the List page.
You may try to change the place in the ..._list.asp file where you include your header.

The best place to put your code is just after this snippet:

Response.Write("<body topmargin=5 bgcolor=white")

if Request.Form<>"" or Request.QueryString<>"" then Response.Write(" onLoad=""if (document.frmAdmin.SearchFor != null) document.frmAdmin.SearchFor.focus();""")

Response.Write(">")


If this doesn't help inspect your header.asp file to find the errors.

A
Alex_xelA author 12/7/2005

Thanks Sergey,
your suggestion is great, but I have another question...
when I insert the code in to the asp page, (this time an database with relationated table) the problem is the same: the search mask on the top don't work correctly... the page don't "filter out"... don't work with my input...
In this case where I must insert the code?
Thanks, Alex

Sergey Kornilov admin 12/8/2005

Alex,
you inserting code in correct place.
The problem is that your header.asp file breaks list page execution. You need to fix code in header.asp file.