|
-
Sep 11th, 2007, 09:05 AM
#1
Thread Starter
Member
[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!
-
Sep 11th, 2007, 03:42 PM
#2
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.
-
Sep 11th, 2007, 06:46 PM
#3
Thread Starter
Member
Re: [02/03] ASP.net Access controls on parent frame
 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
-
Sep 12th, 2007, 04:19 PM
#4
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.
-
Sep 12th, 2007, 08:13 PM
#5
Thread Starter
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|