在另一个USer控件中调用UserControl方法。 [英] Call UserControl Method in Another USer Control.

查看:58
本文介绍了在另一个USer控件中调用UserControl方法。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要用户控制。

1)usercontrol1.ascx

有方法,如method1()



2)Usercontrol2.ascx



我需要在本页中调用用户控件1的方法method1()我该怎么做?



请尽快给我答复。



谢谢。

解决方案

参考这可能会对你有所帮助



http://stackoverflow.com/questions/14386572/how-can-i-call-method-from-usercontrol-from-another-usercontrol-using- asp-net [ ^ ]



HTTP:// foru ms.asp.net/t/1446861.aspx?how+to+call+one+user+control+method+in+another+user+control+ [ ^ ]

I have to user control.
1)usercontrol1.ascx
have method like method1()

2)Usercontrol2.ascx

I need to call method method1() of user control 1 in this page how can I do that?

please give me answer asap.

Thanks.

解决方案

Refer this might help you

http://stackoverflow.com/questions/14386572/how-can-i-call-method-from-usercontrol-from-another-usercontrol-using-asp-net[^]

http://forums.asp.net/t/1446861.aspx?how+to+call+one+user+control+method+in+another+user+control+[^]


这篇关于在另一个USer控件中调用UserControl方法。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆