View Full Version : request.params
steph
09-02-2003, 01:23 AM
Hello,
I dunno what's wrong with that maybe someone could help:
to validate a submission a user has to clic on a link in a confirmation mail the adress of the page is after the clic: www.mysite.net/valider-inscription.aspx?temp=drX6kpH3600&mail=me@host.net&confirm=1 (http://www.mysite.net/valider-inscription.aspx?temp=drX6kpH3600&mail=me@host.net&confirm=1)but an error occurs when I try to get the values of the parameters :
Exception Details: System.Web.HttpException: Request is not available in this context
Source Error:
Line 6:
Line 7:
Line 8: Dim temporaire as string = Request.Params("temp")</font id="red">
Line 9: Dim user_email as string = Request.Params("mail")
Line 10: Dim validation as string = Request.Params("confirm")
thanks for some help
bruce
09-02-2003, 06:42 AM
Try use
request.querystring("test")
[b]quote:Originally posted by steph
Hello,
I dunno what's wrong with that maybe someone could help:
to validate a submission a user has to clic on a link in a confirmation mail the adress of the page is after the clic: www.mysite.net/valider-inscription.aspx?temp=drX6kpH3600&mail=me@host.net&confirm=1 (http://www.mysite.net/valider-inscription.aspx?temp=drX6kpH3600&mail=me@host.net&confirm=1)but an error occurs when I try to get the values of the parameters :
Exception Details: System.Web.HttpException: Request is not available in this context
Source Error:
Line 6:
Line 7:
Line 8: Dim temporaire as string = Request.Params("temp")</font id="red">
Line 9: Dim user_email as string = Request.Params("mail")
Line 10: Dim validation as string = Request.Params("confirm")
thanks for some help
</blockquote id="quote"></font id="quote">
steph
09-02-2003, 07:24 AM
I tried changing the first line, here is the result:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Request is not available in this context
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Request is not available in this context
Source Error:
Line 6: '
Line 7:
Line 8: Dim temporaire as string = Request.querystring("temp")
Line 9: Dim user_email as string = Request.Params("mail")
Line 10: Dim validation as string = Request.Params("confirm")
[b]quote:Originally posted by bruce
Try use
request.querystring("test")
</blockquote id="quote"></font id="quote">
bruce
09-03-2003, 03:30 AM
Very weird....
I tried this piece of code and it worked just fine
<%@ Page Language="VB" %>
<script runat="server">
Sub Page_load()
dim test as string = request.querystring("test")
response.write (test)
End Sub
</script>
<html>
<head>
</head>
[b]
<form runat="server">
</form>
</body>
</html>
[b]quote:Originally posted by steph
I tried changing the first line, here is the result:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Request is not available in this context
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Request is not available in this context
Source Error:
Line 6: '
Line 7:
Line 8: Dim temporaire as string = Request.querystring("temp")
Line 9: Dim user_email as string = Request.Params("mail")
Line 10: Dim validation as string = Request.Params("confirm")
[b]quote:Originally posted by bruce
Try use
request.querystring("test")
</blockquote id="quote"></font id="quote">
</blockquote id="quote"></font id="quote">
vBulletin® ©Jelsoft Enterprises Ltd.