Solved

Error in link

Posted on 2014-03-20
12
283 Views
Last Modified: 2014-03-20
I am trying to redirect and pass a parameter but I get an error.

  MM_editRedirectUrl = "EmailQnrreadytosend.asp?NewUserId=(Userid.Fields.Item('Userid').Value)"

The page doesn't display any error even though 'friendly errors' is turned off

Attached is the whole ASP code (minus the includes), maybe that will help.
ASP.txt
0
Comment
Question by:amucinobluedot
  • 7
  • 5
12 Comments
 
LVL 32

Expert Comment

by:Big Monty
ID: 39942431
change the link to:

MM_editRedirectUrl = "EmailQnrreadytosend.asp?NewUserId=" & Userid.Fields.Item('Userid').Value
0
 

Author Comment

by:amucinobluedot
ID: 39942468
That didn't work out, the last part of the code becomes gray and I get an error as well
0
 
LVL 32

Expert Comment

by:Big Monty
ID: 39942474
whats the error?
0
 

Author Comment

by:amucinobluedot
ID: 39942477
This is the error I get

An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.

Friendly errors are turned off ... so... weird
0
 

Author Comment

by:amucinobluedot
ID: 39942485
This is how the code looks like with the line above. (Gray) .. which means something is off
erroe.gif
0
 
LVL 32

Expert Comment

by:Big Monty
ID: 39942494
you have an extra quote at the end of the line, please copy my (original) answer exactly and you won't have these problems...

MM_editRedirectUrl = "EmailQnrreadytosend.asp?NewUserId=" & Userid.Fields.Item('Userid').Value
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:amucinobluedot
ID: 39942503
Same error, also greyed out
error2.gif
0
 
LVL 32

Accepted Solution

by:
Big Monty earned 500 total points
ID: 39942510
make sure everything is one line, your screen shot looks like its two lines. also, change it to:

MM_editRedirectUrl = "EmailQnrreadytosend.asp?NewUserId=" & Userid.Fields.Item("Userid").Value
0
 

Author Comment

by:amucinobluedot
ID: 39942564
It worked this time, thanks !
0
 

Author Comment

by:amucinobluedot
ID: 39942570
Well .. that created another problem. Now the actual document is not being deleted physically from the drive  :(
0
 
LVL 32

Expert Comment

by:Big Monty
ID: 39942654
open another questions with the details and we can have a look :)
0
 

Author Comment

by:amucinobluedot
ID: 39942804
Sure thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now