调用另一个控件的非静态方法 [英] Call non static methode of another control
本文介绍了调用另一个控件的非静态方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是asp.net的新手.我想在单击按钮时调用另一个控件的非静态方法(ascx).如何在后面的代码中执行此操作?
谢谢
Hi, I am new to asp.net. I want to call a nonstatic methode of another control(ascx) when i click on a button.How can i do this in code behind?
Thank you
推荐答案
,您必须创建该控件的对象.
使用此控件引用(对象)调用该方法
you have to create object of that control.
using this control reference(object) call that method
这篇关于调用另一个控件的非静态方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文