This topic is locked
[SOLVED]

 List Page link redirection

7/17/2012 8:40:40 AM
ASPRunnerPro General questions
I
ioagia author

Hello,
i use ASPRunnerPro 6.2 version.

In the List Page i want to insert a link in every row.
Each link will redirect to a new url.
The new url includes a parameter with the value of one of record fields.

For example:

The url seems like: *http://www.mysite.com?index.aspx?categoryID=

where [color="#FF0000"]***is the value of [i]categoryID*field of this record row.
I have already added a code snippet that does a simple redirection, but i can't find a way to pass the parameter value.

I can't get the field value for every row.
Can you help me please!
Please check the image:

Sergey Kornilov admin 7/17/2012

My suggestion is to set 'View as' type of this field to 'Custom' and write your code there. You will be able to get access to the current record content this way.
Check this article for more info, especially the part related to 'View as' type 'Custom':

http://xlinesoft.com/blog/2011/04/28/taming-the-beast-events-buttons-and-code-snippets/

I
ioagia author 7/18/2012

Thank you guys.
That solved my problem!!!
<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=67072&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' />