ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Accessing Query String parameter of parent view from link in AjaxList
Title:
B
I
{code}
?
Hello everyone, Please i have an issue here. I have a view loaded with the url http://blwblw.com?roletype=somerole And I have an ajaxlist that loads data into that same page. My issue is that the partial view rendered by the AjaxList contains html elements that need to make use of a querystring that is only available in the parent page. Please any ideas how i can achieve data Regards
Save Changes
Cancel
seamfaces
asked at 23 May 2015
Answers
B
I
{code}
?
something like: @Html.Awe().AjaxList().Parameter("p1", Request["roletype"]) and you'll get the p1 parameter in the ajaxlist url (Search action) or this request parameter roletype could be read by the controller and set into a viewmodel property and in the view you would set .Parameter("p1", Model.RoleType)
Save Changes
Cancel
Omu
answered at 24 May 2015
Thanks Works Perfectly
at 24 May 2015
seamfaces
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK