c# - How to get asp hidden field value of another page via iframe -
i developing application in asp.net using c#. in application there 2 pages abc.aspx , xyz.aspx. opening xyz.aspx page in iframe of abc.aspx.
in xyz.aspx page have asp hidden field named ht_test_access. requirement have access value of hidden field abc.aspx straight without querystring, session, cookies etc. please help.
you can utilize button.postbackurl , utilize page.previouspage previous page form data. msdn article cross-page posting in asp.net web pages explains well.
string text = ((hiddenfield)previouspage.findcontrol("hdnfield")).value; cross-page posting similar hyperlinks in transfer initiated user action. however, in cross-page posting, target page invoked using http post command, sends values of controls on source page target page. in addition, if source , target page in same web application, target page can access public properties of source page. always, of pages in application can share info stored in session state or application state.
c# javascript jquery asp.net
No comments:
Post a Comment