如何从code,后面调用的方法 [英] how to call method from code-behind

查看:126
本文介绍了如何从code,后面调用的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从code-behind.I调用方法使用asp.netňC#.I'm在.NET environment.This不熟悉是我的例子C#中code-背后:

How to call method from code-behind.I use asp.net n c#.I'm not familiar in .net environment.This is my example c# in code-behind:

public void HandleAction()
{
    //HandleAction content
}

public void WriteTable()
{
           //WriteTable content
}

我想它调用标记页面。我用的Response.Write网页中写入数据。

I want to call it in markup page. I have use Response.Write to write the data in webpage.

推荐答案

我已经找到了answer..It应标记这样调用<%WriteTable();%GT;

I have found the answer..It should be call like this in markup <%WriteTable();%>.

这篇关于如何从code,后面调用的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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