Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to rise aspx parent forms event from aspx Child form

Reply
Thread Tools

How to rise aspx parent forms event from aspx Child form

 
 
=?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?=
Guest
Posts: n/a
 
      10-22-2005
Hi,

I have two aspx form say Frm1 and Frm2 . In Frm1 one dropdown box and one
button is there.After pressing that button it opens Frm2 ,in Frm2 i choose
one data from Frm2's dropdown box when i closed this form Frm2 i want to the
see the selected data in Frm1's dropdown box . For that i want to call the
Parent Form's event. How to..
plz give soln.with some samples if possible...

thanks
assankhan
 
Reply With Quote
 
 
 
 
S. Justin Gengo
Guest
Posts: n/a
 
      10-22-2005
Assankhan,

You'll need to use javascript to do this.

I have an example of how to do this on my website at
http://www.aboutfortunate.com?page=codelibrary

Use the textbox on the page to search for: "refresh parent"

The sample code shows how to close a popup window and refresh the parent
window. Using that code you'll be able to get the value in page2's drop down
list and on post back save it to a session variable or database.

Then on page1's refresh you can check if that session variable or database
value exists and set it's drop down accordingly.

Feel free to email me if you have any questions.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"AssanKhan Ismail" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Hi,
>
> I have two aspx form say Frm1 and Frm2 . In Frm1 one dropdown box and one
> button is there.After pressing that button it opens Frm2 ,in Frm2 i choose
> one data from Frm2's dropdown box when i closed this form Frm2 i want to
> the
> see the selected data in Frm1's dropdown box . For that i want to call the
> Parent Form's event. How to..
> plz give soln.with some samples if possible...
>
> thanks
> assankhan



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If a class Child inherits from Parent, how to implementChild.some_method if Parent.some_method() returns Parent instance ? metal Python 8 10-30-2009 10:31 AM
Re: Rise up! Rise up now! You have very few days left... wisdomkiller & pain Computer Support 0 12-28-2008 05:06 PM
Re: Rise up! Rise up now! You have very few days left... Evan Platt Computer Support 2 12-28-2008 03:25 PM
Re: Rise up! Rise up now! You have very few days left... Gaston Ryan Coake Computer Support 0 12-28-2008 01:32 PM



Advertisments