如何在静态方法中使用html或asp.net的控件? [英] How to use a html or asp.net's control inside a static method..?

查看:264
本文介绍了如何在静态方法中使用html或asp.net的控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在方法后面的代码中访问Web控件或html控件,
但是它是一个声明为网络方法的静态方法,我只想使用文件上传控件以及文本框控件和该静态方法中的隐藏文件.

不管它是HTML控件还是Web控件(服务器端控件),我都只在静态方法中使用该控件..

I want to access a web-control or html control inside my code behind method,
but its a static method declared as a web-method, i just want to use a file-upload control and as well as text box control and hidden filed inside that static method.

no matter it is a html control or web-control (server side control), i just only use that control in my static method..

推荐答案

请访问此链接,这将对您有帮助...
http://www.asp.net/mvc/tutorials/creating-custom-html- helpers-cs [^ ]
Please Visit this link, This will be helpful for You...
http://www.asp.net/mvc/tutorials/creating-custom-html-helpers-cs[^]


这篇关于如何在静态方法中使用html或asp.net的控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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