c# - Request.Querystring == null from inside Iframe -
i have simple mvc page being loaded in iframe on tab of account record in dynamics crm, set pass parameters through.
this works fine, page loads , if right-click - properties, url+parameters expected e.g. -
http://myserver.com/?type=1&typename=account&id={816e90be-7dbc-dd11-9e0b-001c25cfae82}&orgname=myorg&userlcid=1033&orglcid=1033
however, in controller have
request.querystring["id"]
and returns null, request.querystring null
if load page in browser without iframe request.querystring["id"] has guid expected.
what stupid thing have missed?
i don't believe can way want because request application coming iframe instead of user. in order need pass parameters in source of iframe so:
<iframe id="thepage" src="mypage.aspx?id={816e90be-7dbc-dd11-9e0b-001c25cfae82}"></iframe>
you can think of request being proxied. if jack tells jon , jon tells jill, jill has no knowledge of jack unless jon tells her.
let me know if answers question.
Comments
Post a Comment