Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Dear everyone, I am someone not very familiar with the public/protected/private concept. Especially to write a function to call another function inside a separated webform. Here is my problem:

 

I have a webform A, when a button is clicked, windowB with webform B pop-up. After make some update in webform B, user click the button in webform B. Then, webform A will run a function (not reload), window B will close at the same time.

 

If it is just to reload the webform A, it is easy to accompulish by Javascript. However, I need to run a aspx function.

 

Is it possible? How to do it? Can you write me some demo code? Thank you very much. :)

Posted
  Quote
Dear everyone, I am someone not very familiar with the public/protected/private concept. Especially to write a function to call another function inside a separated webform. Here is my problem:

 

I have a webform A, when a button is clicked, windowB with webform B pop-up. After make some update in webform B, user click the button in webform B. Then, webform A will run a function (not reload), window B will close at the same time.

 

If it is just to reload the webform A, it is easy to accompulish by Javascript. However, I need to run a aspx function.

 

Is it possible? How to do it? Can you write me some demo code? Thank you very much. :)

are you are you using ShowModalDialog/ShowModelessDialog to open webformB?

 

 

Add the parent document to the vArguments and then in webformB have a javascript function that calls the function in webformA by getting it from the window.dialogArguments property of webformB

Joe Mamma

Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized.

Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.

Posted
  Quote
are you are you using ShowModalDialog/ShowModelessDialog to open webformB?

 

 

Add the parent document to the vArguments and then in webformB have a javascript function that calls the function in webformA by getting it from the window.dialogArguments property of webformB

I don't know ShowModalDialog/ShowModelessDialog. But anyway, I have used several Javascript function to make it out. Thank you for your help!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...