This topic is locked
[SOLVED]

 Open Same Id Of Other View

2/16/2013 2:18:00 AM
ASPRunnerPro General questions
A
adnankmk author

I have a table name employees with the following fields.
id (int)

Name (Varchar)

Section (Varchar)

Date of Birth (datetime)
I have created two views of the table as under:
View One: Add Employee
id (int)

Name (Varchar)

Section (Varchar)

Date of Birth (datetime)
View two: Transfer Employee
id (int)

Section (Varchar)
I added a button on the view page on the "Add Employee view" with the name "transfer".On clicking the transfer button I want to open the same id of the Transfer Employee view.
For example:

I view the following employee:

51 Ahmad LG 19.03.1987
On clicking the Transfer button the following view should be opened

51 LG

What code should I write to the button.
Thanks in advance

A
adnankmk author 2/16/2013



I have a table name employees with the following fields.
id (int)

Name (Varchar)

Section (Varchar)

Date of Birth (datetime)
I have created two views of the table as under:
View One: Add Employee
id (int)

Name (Varchar)

Section (Varchar)

Date of Birth (datetime)
View two: Transfer Employee
id (int)

Section (Varchar)
I added a button on the view page on the "Add Employee view" with the name "transfer".On clicking the transfer button I want to open the same id of the Transfer Employee view.
For example:

I view the following employee:

51 Ahmad LG 19.03.1987
On clicking the Transfer button the following view should be opened

51 LG

What code should I write to the button.
Thanks in advance


I have solved by the following code.
<INPUT onclick="window.location.href='table.asp?editid1={$rf_id_value}';" type=button value=button1></TD>