开发者

Calling a procedure in a different aspx page (within the same project)

In my asp.net project, I have two particular aspx pages (lets say PageA.aspx and PageB.aspx)

In the codebehind PageA.aspx.vb, I want to call "Sub GetDefaultValues()" which happens to be in PageB.aspx

Update:

PageB.aspx h开发者_JAVA技巧as textbox controls that contain default values (which are being read in Sub GetDefaultValues). Those default values get populated into the textboxes of PageA.aspx (based on certain conditions)

Is there a way to do that?


Create a separate class that holds the method and call it from both pages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜