How to call a method in another .aspx file
-
Hi every one, I need to call a method resides in another .aspx file from another .aspx file (all in the code behind).. I tried making it public and static but still I can't access it, I can solve my problem if I could make the second page to post back when the first one do post back.. Any suggestions?? Thank You very much
-
Hi every one, I need to call a method resides in another .aspx file from another .aspx file (all in the code behind).. I tried making it public and static but still I can't access it, I can solve my problem if I could make the second page to post back when the first one do post back.. Any suggestions?? Thank You very much
You need to place your function (which you want to call in more than one pages) in a separate class, then make an instance of that class in your page and call that function. Simple Object Oriented Programming Mubashir
Every job is a self portrait of the person who did it.
-
You need to place your function (which you want to call in more than one pages) in a separate class, then make an instance of that class in your page and call that function. Simple Object Oriented Programming Mubashir
Every job is a self portrait of the person who did it.
-
You need to place your function (which you want to call in more than one pages) in a separate class, then make an instance of that class in your page and call that function. Simple Object Oriented Programming Mubashir
Every job is a self portrait of the person who did it.
-
What I did one time was create a interface with a execute method. Then add the interface to your page and then place a call to the Page_Load in the execute method. Then where you want to use is create a instance of the page and use the execute method. I hope this is usefull.