How to set a values to parent page Label without reload?

Posted by Udayasankar under ASP.NET on 2/18/2010 | Views : 2666 | Status : [Member] | Replies : 2
Hai,
I want to set a values to my parent page Label without reloading parentpage. I need to post values from iframe page to parent page.
provide any javascript or c# samples.
Thanks in advance.




Responses

Posted by: Abhi2434 on: 2/19/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
If you are in Javascript you find label as

var label = document.getElementById('spanId');


If you are going to find a label parent of the iframe use :

var label = parent.document.getElementById('spanId');


So the only thing is that, you need to go for window.parent to access objects.

:)

www.abhisheksur.com

Udayasankar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sagarp on: 3/25/2010 [Member] Bronze

Up
0
Down
Hi friend


check following links

http://www.codeproject.com/answers/58442/How-to-set-a-values-to-parent-page-Label-without-r.aspx


Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

Udayasankar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response