Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have a kendoui grid in my Grid.aspx page that shows my data from sqlserver, and then i add a button by id:framebtn in Grid.aspx page,when i click on framebtn another page (WebForm1.aspx) will popup by using ifram. in my WebForm1.aspx i have a textbox(by id="txtName") and one button(btnRegist) and when you click on btnRegist in WebForm1.aspx it insert every thing in the txtName to my sqlserver and then you can see it on kendoui grid in Grid.aspx if you refreshing the Grid.aspx page after inserting... i want to a way to rebind my kendoui grid after inserting a record in iframe automatically without refreshing the page????? any body can help me please?
Posted

1 solution

Same domain

If both the pages are in same domain, then you can easily communicate from child with parent page by window.parent.

You can call a function of parent page by window.parent.someFunction(argument1, argument2);.
You can pass any number of arguments according to the function signature in parent page.

So, after the update in WebForm1.aspx page, just call the parent function as said above and update the Grid.

Different domain

If both parent and child are in different domain, then you have to use window.postMessge technique for communication. For that check my tip - Communication with Cross Domain IFrame - A Cross Browser Solution[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900