Subscribe to Subscribers
Talk to Webmaster Tony John


Forums » .NET » ASP.NET »

Catch Iframe click in parent page


Posted Date: 24 Jun 2012      Posted By:: krishnagoluguri@gmail.com     Member Level: Gold    Member Rank: 92     Points: 5   Responses: 1



I have items page books.aspx in books.aspx i have some books and it contains add to cart button
i have forms with different names for example home.aspx
i placed iframe in home.aspx in i frame i called src as books.aspx
i have items in cart in home.aspx
i written all the code for cart all working fine but my issues is
when i click on add to cart it is added to cart but it is only displayed when i refresh the page
i wanted to cathch click event from inside i frame and wanted to bind to parent form that is items in cart how to do that




Responses

#682162    Author: Rajasekar.K      Member Level: Silver      Member Rank: 417     Date: 27/Jul/2012   Rating: 2 out of 52 out of 5     Points: 3

Hi



use this in aspx page :


<iframe name=oIFrame src="frmPrint.aspx?Id=<%=Request.QueryString["Id"]%>" width=0 height=0></iframe>



get that id in query string and redirect to iFrame page that you

created.


ex : frmview.aspx ( iframe page )



protected void ADD_Click(object sender, EventArgs e)
{
/// after action

Response.Redirect("frmview.aspx?Id=" + result, false);

}




Regards
Rajasekar.K



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : Yahoo,hotmail contact grabbing
Previous : Ajax AutoCompleteExtender Not working in Server Working in Localhost
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.