This topic is locked

Frames navigation...

5/27/2005 11:34:09 AM
ASPRunnerPro General questions
author

Problem: I want users to view the list page in the top frame. And, when they click "edit" on a record, it should open in the bottm frame. I can get it to work, but then whenever I click on a column heading to sort by that column, the sorted list page opens in the bottom frame.
Any ideas on how to prevent this? It's driving me NUTS!

501211 5/27/2005

Is there a spot in the code below where I could designate a frame?
<table><tr><td class=blackshade>

<% if (rs.Fields("Controversial").Attributes and 128) and ( rs.Fields("Controversial").Type = 204 or rs.Fields("Controversial").Type=205 ) then

Response.Write Label("Controversial") & "</td>"

else

%>

<a class=blackshade href="billtrack3_list.asp" target="_self" onClick="java script:

document.forms.frmAdmin.action.value = 'OrderBy';

document.forms.frmAdmin.orderby.value = '<%=Replace("Controversial","'","\'")%>';

document.forms.frmAdmin.submit(); return false; "><%=Label("Controversial")%>

</td>

<%

if Request.Form("orderby")="Controversial" and strOrderImage<>"" then

Response.Write "<td><img src=images/" & strOrderImage & " border=0></td>"

end if
end if

%>
</tr></table>

Sergey Kornilov admin 5/30/2005

Hi,
you don't need to add target="_self" to <a href> element.
Add it to frmAdmin form declaration. Find it and modify this way:

<form method="get" action="" name="frmAdmin" target="_self">