legendgod Posted June 17, 2004 Posted June 17, 2004 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. :) Quote http://blog.legendgod.com
Joe Mamma Posted June 18, 2004 Posted June 18, 2004 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 Quote 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.
legendgod Posted June 20, 2004 Author Posted June 20, 2004 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 webformBI don't know ShowModalDialog/ShowModelessDialog. But anyway, I have used several Javascript function to make it out. Thank you for your help! Quote http://blog.legendgod.com
Ido Posted June 20, 2004 Posted June 20, 2004 Hi, i need exactly the same. can you write here how you've managed to do that? thanks. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.