|
| ||||||||||
| Tags: onafterlogin, parameter, pei, querystring |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| QueryString parameter OnAfterLogin PEI
I am a beginner in ALUI portal development and writing c# program in OnAfterLogin PEI to capture the querystring paramater from the URL. But I am not able to capture the querystring parameter from the URL. suppose This is the URL I am entering in the browser. http:techarena.in/portal/server?TokenID=j5S1Apz3 This is the code I wrote in OnAfterLogin PEI. IXPRequest xpRequest = _appData.GetRequest(); string redirectAfterLogin=xpRequest.GetRequestURL(); pTokenID=xpRequest.GetParameterValue("TokenID"); But the QueryString is always null. Please help me to figure it out. Thanks in advance. |
|
#2
| |||
| |||
| Re: QueryString parameter OnAfterLogin PEI.
try doing something like this: _appData.GetRequest().GetParameterValue(TokenID) It may help you |
|
#3
| |||
| |||
| Re: QueryString parameter OnAfterLogin PEI.
No it didn't work. although The above code work for a guest login. I can capture the Queystring for the GuestUser. But when we enter the user ID and Password in the login page, the querystring is always null on onAfterLogin. |
|
#4
| |||
| |||
| Re: QueryString parameter OnAfterLogin PEI.
So this is a line directly from one of my pei's: _appData.GetParameterValue("curRef"); Now that said, it is from a PEI that gets invoked by a guest user. I have never tried to grab a qs from a newly logged in user, but it should be the same. What i suggest is that you debug and step through your pei. You should take a look at the request object and the appdata object to see what is exactly in there. Perhaps the QS is getting stripped or something during aredirect. |
|
#5
| ||||
| ||||
| Re: QueryString parameter OnAfterLogin PEI.
Try GetQueryString() gets all data after the /portal/server.pt It could be getting stripped, especially if as guest user you had to physically press the "login" button that redirected you to the login page. If not, it should still be there. |
|
#6
| |||
| |||
| Re: QueryString parameter OnAfterLogin PEI.
Figured it out. The string redirectAfterLoginURL contails all the URL parameters, it is working if the url contains some community ID. IXPRequest xpRequest = _appData.GetRequest(); string redirectAfterLoginURL = Request.GetParameterValue(ASConstants.REDIRECT_AFTER_LOGIN_INPUT); Thanks guys for your help. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "QueryString parameter OnAfterLogin PEI" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| JSF example url? Parameter Help!! | Gadin | Software Development | 5 | 21-09-2010 10:05 PM |
| How to enable ASP encrypt querystring with website page | Suzane | Software Development | 3 | 04-08-2009 11:42 AM |
| javascript add parameter to url | purvagarg | Software Development | 3 | 23-07-2009 08:04 PM |
| What is parameter tampering ? | Anathakrishnan | Technology & Internet | 5 | 21-04-2009 09:25 AM |
| Code for returning the QueryString | Samir_1 | Software Development | 1 | 14-01-2009 12:31 PM |