Beantown
|
| Posted: 06/26/2003, 8:35 AM |
|
Hello ALL !
I've got what I think to be a simple coding issue :
Trying to make a hotlink within a returned grid column field.
Want the link to be : http://servername/custom.asp?param1=aaa¶m2=bbb
CONTROL SOURCE is the field name itself,
DATA TYPE is text,
CONTENT is text,
HREF TYPE is page,
SOURCE/PARAMETERS : Link Type is Page, and I've named an object, "tracking," with the SOURCE TYPE being EXPRESSION, the PARAMETER SOURCE being (in lower case) CUSTOM.ASP?PARAM1={TRACKING_NUMBER}&PARAM2={SHIPPEDBY}, PARAMETER NAME being TRACKING.
My problem is that I can't seem to figure out how to get the URL built so that when the user clicks the link, it takes them to that destination.
Any ideas ?
Thanks much,
-- B.
|
|
|
 |
rrodgers
|
| Posted: 06/26/2003, 9:00 AM |
|
What are you using? CC or CCS?
rob
|
|
|
 |
bean
|
| Posted: 06/26/2003, 10:34 AM |
|
Oh, sorry :
win2k server, sp2, iis, Code Charge Studio to create ASP 3.0 files.
|
|
|
 |
rrodges
|
| Posted: 06/26/2003, 10:47 AM |
|
>>CUSTOM.ASP?PARAM1={
Are you specifying the page in the link parameter list?
Try putting the "custom.asp" in destination. When you run the program what does the link look like in the source?
Are TRACKING_NUMBER, and SHIPPEDBY populated? Can you print them on the page to see the values
rob
|
|
|
 |
bean
|
| Posted: 06/26/2003, 11:07 AM |
|
It's mostly working except for the fact that it adds "?receivingPage=2"
to my HREF link (as seen when viewing the source code of the link) which causes the page not to go to the correct place.
Such as seen in the source when viewed :
<a href="tracker.asp?param1={Tracking_Number}¶m2={shipped_by}?receivingPage=2">11</a>
Thanks !
|
|
|
 |
rrodgers
|
| Posted: 06/26/2003, 11:15 AM |
|
>>It's mostly working except for the fact that it adds "?receivingPage=2"
I have never seen that.
Does this happen on all pages with links or only this one? Do you use this "receivingPage" variable some where in your application? What happens if you add the "receivingPage" var to the "remove parameters" property?
rob
|
|
|
 |
bean
|
| Posted: 06/26/2003, 11:31 AM |
|
I'm not using the 'recevingpage' var anywhere. I tried including in the 'Remove Parameters' box and it (?receiving=xxx) still shows up.
This occurs on all pages.
|
|
|
 |
rrodgers
|
| Posted: 06/26/2003, 11:42 AM |
|
Wow. Well, maybe time to report it to support and see if they have any ideas?
http://support.codecharge.com/support_new.asp
Did you convert this from a different language like php or ???
Did you convert this from CC?
rob
|
|
|
 |
bean
|
| Posted: 06/26/2003, 11:57 AM |
|
no, no conversion from anything, just using CCS 1.0.7.0
(and I'd rather not upgrade as this is a stable build --
had problems with the most recent.)
I guess I'll report it. Thanks for your help!
-- B.
|
|
|
 |
rclayh
|
| Posted: 06/26/2003, 12:00 PM |
|
This may or may not help. Instead of using a LINK as your control, use a Label. Set it to HTML and just build your whole link string "<a ...>...</a>" with ASP code. Then you don't have to deal with it being treated as a link (I think).
|
|
|
 |