前台页面如何调用其它页面的方法?
index.aspx页面中调用index.aspx.cs的一个方法可以这样写: <%selectinfo();%> ,如果在别面中调用这个方法该怎么写?请各位达人指教
------解决方案--------------------把方法作为静态 写在一个公共类中。调的时候: <%#selectinfo()%>
------解决方案--------------------封装到一个类里,每个页面都可以调用
------解决方案--------------------封装到一个类里,每个页面都可以调用
------解决方案--------------------封装到一个类里,就可以每个页调了,
------解决方案--------------------大家好:````````````````````````````````````````````````````````````````````````````````````
现在开会!
````````````````````````````````````````````````````````````````````````````````````
第一:不要乱说话
````````````````````````````````````````````````````````````````````````````````````
第二:尤其是关于楼主的坏话
````````````````````````````````````````````````````````````````````````````````````
第三:绝对不能说的是,关于我的坏话
````````````````````````````````````````````````````````````````````````````````````
第四:大家有事要说吗?
````````````````````````````````````````````````````````````````````````````````````
2分钟内,室内无声....
------------------------------------------------
第五:大家都没话说,散分!揭贴!
....................................................................................