如何在asp.net中使用html控件 [英] how to use html control in asp.net

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

问题描述

如何通过单击html输入按钮从文件后面的代码调用函数

how i can call function from code behind file by click of html input button

推荐答案

右键单击控件-按用作服务器控件",然后双击事件属性click方法..
right click the control - press Use as Server Control then event properties double click the click method..


,或者只是将标签标记为runat ="server".
Or just mark your button with tag runat="server".


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

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