开发者

Passing information from one user control to another

开发者 https://www.devze.com 2023-02-16 04:56 出处:网络
I have a webpage having two user control uc1 and uc2. When user clicks a html server control on the page, i want to pass some开发者_StackOverflow社区 property value of uc1 to uc2. How do i do that?

I have a webpage having two user control uc1 and uc2. When user clicks a html server control on the page, i want to pass some开发者_StackOverflow社区 property value of uc1 to uc2. How do i do that?

Thanks, syd


Set the property or call a method eg.

uc2.propertyX = uc1.propertyY;

or call a method

 uc2.propertyXChange(uc1.propertyY);


You could place a function on the parent page which handles the transfer of data between the various user controls. Call it like: this.page.myfunctioncall(x, y)

0

精彩评论

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

关注公众号