This topic is locked

Open in a new Window

10/13/2004 7:55:48 PM
ASPRunnerPro General questions
J
jmbowman author

I created a view only page with ASPRunner to a SQL database. When a user right clicks on "View" and selects Open in a new window, the program errors and puts them into a edit window that allows them to add records.
How can I correct this?
Thx,

Jim

Sergey Kornilov admin 10/14/2004

Jim,
unfortunately "View" link works only if you click on it. "Open in a new window" won't work.

501098 10/14/2004

I don't want users to be able to add data. This is a view only area.
How can I prevent the program from failing and entering an edit mode when a user selects open in a new window. Seems like there is a bug in code.

Sergey Kornilov admin 10/15/2004

Jim,
you can use ASPRunnerPro 3.1 that builds a separate View page (..._view.asp). Try to rebuild ASP code using ASPRunenrPro 3.1 to avoid this problem.
http://www.asprunner.com/files/asprunnerpro31a.exe

501099 10/15/2004

Jim,
I don't know if this will help but I believe if you modify your edit.asp file you can prevent users from getting an edit screen through the "open in new window" option.
the code is somewhere around line 60 in my file and looks like this...
message=""

mypage=Request.Form("targetpagenumber")

If mypage="" Then


mypage=1

myaction=Request.Form("action")
[color=blue] If myaction="view" Or myaction="deleteimage" Then

myaction="edit"

If myaction="add" Then


myaction="added"
The line I added is in red.
Good luck,

Dan <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=2664&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />