Link to home
Start Free TrialLog in
Avatar of jtuttle99
jtuttle99

asked on

Asp.net Accessing SQLDataSource SELECTCommand from Iframe

Are there any ways to access parent page's Select command for SQLdatasource from iframe?
The iframe contains listboxes and it creates SQL select statement based on the selections.
I would like to pass it to parent page and show new results.

Is it possible?

Thank you
Avatar of ullfindsmit
ullfindsmit
Flag of United States of America image

That is not possible in .Net

The two pages are independent of one another and have no relation when the page request is being made.

However, if you absolutely wanted to do it, you could simply call the parent page via a HTTP WebRequest and have the page return you just the SQL by using a param you decide on.
Avatar of jtuttle99
jtuttle99

ASKER

Could you provide me sample code using HTTP WebRequest ? Is it not recommended method??? Do you think Viewstate works?

Thank you
ASKER CERTIFIED SOLUTION
Avatar of ullfindsmit
ullfindsmit
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial