Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 30th, 2007, 04:42 AM
Registered User
Join Date: Jun 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to cholletivinod
Default How to access hidden value from child page

hi frnz ,
am creating one application in taht i want to access hidden field value from one child page and display it in another page

first page
 <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style="text-align:center" class="style44">Welcome To Fidelity Premium Finance</div>
 <input type="hidden" name="returnurl" value="vinod" />
 <input type="hidden" name="merchantdisplayname" value="vinnu" />
<div><asp:Button ID="btnProceed" runat="server" Width="15%" Text="Proceed" PostBackUrl="~/2.aspx" CssClass="style42"/></div>

second page
i want to display the value of(returnurl) ie hidden value in second page

please give rep

Old July 30th, 2007, 08:05 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

I would suggest moving this thread to a javascript/html category as it's really that type of issue, not a ASP.NET issue.

Are you looking to do this from the client side? (i.e. window to window?)

Old August 2nd, 2007, 07:16 AM
Friend of Wrox
Join Date: Feb 2006
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav_jain2403

If you want to do using javascript. You can do it.

Suppose you open the window from parent as follow:
function func1()
var winForm = window.open('child.aspx');

and in child window, write the code as follow in the function you want to access the value of hidden field:

alert(window.opener.document.getElementByName("ret urnurl").value);

Hope this is what you are looking for.

Similar Threads
Thread Thread Starter Forum Replies Last Post
access hidden form value with Mech - Mechanize crmpicco Perl 1 May 29th, 2011 08:42 AM
Read child page form value on different domain davenic Javascript How-To 9 December 2nd, 2007 09:38 PM
How to set hidden field value AFTER page reloads savoym Javascript How-To 5 June 13th, 2007 10:13 AM
GridView hidden field access bmains ASP.NET 2.0 Basics 2 September 21st, 2006 01:54 AM
Page refresh, Back Button unhide hidden division John K. King Javascript 13 April 12th, 2004 03:00 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.