开发者

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

开发者 https://www.devze.com 2023-04-03 17:13 出处:网络
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.as

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

精彩评论

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