Results 1 to 5 of 5

Thread: [02/03] ASP.net Access controls on parent frame

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2006
    Posts
    33

    [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!

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2006
    Posts
    33

    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

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  5. #5

    Thread Starter
    Member
    Join Date
    Jun 2006
    Posts
    33

    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
  •  



Click Here to Expand Forum to Full Width