pamela rizk
asked on
asp web application
i have an asp web Form form1 in asp.net that contains a button click
on this button click i am opening form2
i need from form1 to call a method used in form 2 how to do that ?
on this button click i am opening form2
i need from form1 to call a method used in form 2 how to do that ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
Your method must be decorated with the WebMethod attribute, and must be a static function
Open in new window
Another option is to pull your method into a class library and then reference / include it in both Form1 and Form2
The least favorable option would be to copy the method from Form2 into Form1