.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

get values from child window to parent window..

Posted By: gopal     Posted Date: February 22, 2011    Points:2   Category :ASP.Net
hi..
i have two pages a and b;
in a i want to call the page b and page b contains gridview with image and price.
if i clicked a particular image the corresponding image url and corresponding image price should be displayed in my page a.
i.e)parent and child window concept..

here i used <img> tag to display the image in my child window

here my requirement is to click the image and get the image url,corresponding price should go to parent window.
how to do this..

need ur suggestions with example..

regards
gopal.s

Responses
Author: Sunil Yadav       [Moderator]      
Posted Date: February 22, 2011     Points: 5   
Author: Maverick             
Posted Date: February 28, 2011     Points: 20   

Hello,

You can use querystring for that. Pass the imageId in querystring while redirecting to page a

For e.g

OnclickofImage:
Response.redirect("b.aspx?imageid=1")
now on page b
Request.querystring("imageid")


Hope this helps.

Thanks,
Maverick


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend