[02/03] ASP.net Access controls on parent frame
I have a shopping cart applcation that displays the items in an Iframe, this is the viewcart part. on the parent page I have a label that should display the total amount but it doesnt, I tried to put the amount in the iframe code into a session variable and put that value in the label on the parent page, problem is the value updates only when the parent frame gets refreshed.
is there a way to have the parent page refresh from the codes inside the iframe page? or have a script access the parent page label from the iframe?
thanks, any help would be great!
Re: [02/03] ASP.net Access controls on parent frame
I must point out that this sounds like bad design: having the actual items in an IFrame, when the page itself represents a shopping cart. Ideally, since you're using ASP.NET, you could have the actual items in a repeater (for example) in a web user control (.ascx) on the page.
You could use parent.location.reload();, but you should reconsider your design.
Re: [02/03] ASP.net Access controls on parent frame
Quote:
Originally Posted by mendhak
I must point out that this sounds like bad design: having the actual items in an IFrame, when the page itself represents a shopping cart. Ideally, since you're using ASP.NET, you could have the actual items in a repeater (for example) in a web user control (.ascx) on the page.
You could use parent.location.reload();, but you should reconsider your design.
I will sir, Im new to .net and the people that asked me to write the application gave me a specific design that i have to follow, that this an iframe.. it would have been easier if everything was on a single page. thanks for the reply
Re: [02/03] ASP.net Access controls on parent frame
I love it when clients attempt to dictate application design. I further love it when I put them in their place by correcting them. :afrog:
Re: [02/03] ASP.net Access controls on parent frame
ahahaha i could try that but the "client" is too big a company for me hehehe but i should try still :bigyello: