954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help: passing variable via table field different page subroutine

Urgent,, I'm trying to pass a variable via double click event to a sub routine on another page, yet the ondblclick is not working here's my code:

<%=svrgContact%>

the ondblclick alert works fine, but is I tell it to go to a sub routine nothing happens
ex.
ondblclick="OnDetailsChg("><%=svrgContact%>);
and within
sub
OnDetailsChg(id)
response.redirect ../asp/PalContactDetail.asp

end sub

it doesn't go to the redirect page and it doesn't carry the variable..can someone tell me why.

dweaver6
Newbie Poster
19 posts since Jan 2008
Reputation Points: 10
Solved Threads: 0
 

it should go like this:

ondblclick="OnDetailsChg('<%=svrgContact%>')"

sub onDetailsChg(id)
response.redirect ("../asp/PalContactDetail.asp?id=" & id)
end sub

SheSaidImaPregy
Veteran Poster
1,080 posts since Sep 2007
Reputation Points: 43
Solved Threads: 68
 

Thanks that worked perfectly..

dweaver6
Newbie Poster
19 posts since Jan 2008
Reputation Points: 10
Solved Threads: 0
 

No problem. I'm here, and will be for the next 7.5 hours

SheSaidImaPregy
Veteran Poster
1,080 posts since Sep 2007
Reputation Points: 43
Solved Threads: 68
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You