This topic is locked

Multi EDIT & VIEW

4/8/2007 2:52:10 AM
ASPRunnerPro General questions
M
Michael7 author

Hi,

I am working on a form that requires the edit and view link to be dependent on a field called TYPE

Under the field called TYPE there are 3 selections from a dropdown list - SFS, SSS & Appraisal

I am making a different add page for each of them and while they all write to the same DB Table, they all write to different fields.

On the list page i need assistance so that if they press the view page or edit page it will go to the correct link eg

where the table line contains a type of SFS, when we select (Edit or View) it will go to Exceed_(edit or view)_SFS.asp?ID details...
Can this be done?
Thanks

Michael

Sergey Kornilov admin 4/8/2007

Michael,
you can set View as type of TYPE field to custom and build a corresponding hyperlink manually:

if strValue="SPS" then

strValue = "<a href=Exceed_edit_SFS.asp?editid1=" & rs("ID") & ">Edit</a>"

else if strValue="..." then
end if

M
Michael7 author 4/10/2007

Thanks for the response.
I just created exdtra edit & view pages called Type1_edit.asp, Type2_edit.asp etc and assigned Type1 against an Exceed Type then used that DB Field in the Edit & View hyperlink
Thanks

Michael