开发者

Passing information from one user control to another

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜