在图片/文本框后面添加动作 [英] Adding an action behind a picture / textbox
本文介绍了在图片/文本框后面添加动作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在Visual Studio中创建一个网站,asp.net C#
我已经设计了登录模板,但是如何在按钮和文本框后面添加动作,以便可以在其后面放置代码?
当我双击它不会带我进入事件处理程序:x
问候,
Jon
I''m creating a website in Visual studio , asp.net C#
I have the design of a login template but how do i add actions behind the buttons and textbox so i can put codes behind it?
When i double click it doesn''t bring me to the event handler :x
Regards,
Jon
推荐答案
通常,双击该项目将为您创建一个处理程序和/或直接将您带到该处理程序方法.但是如果不是,那么:
在对象上单击一次以将其突出显示.
查看属性"窗格.顶部附近有一个按钮,看起来像一个小的闪电.单击它.
这些属性将替换为适用于该对象的事件列表.
双击要处理的事件,将为您生成框架代码.
Normally a double click on the item will create a handler for you and / or take you directly to the handler method. But if it isn''t, then:
Click once on the object to highlight it.
Look at the Properties pane. There is a button near the top that looks like a small lightning bolt. Click it.
The properties are replaced by a list of events applicable to the object.
Double click on the event you want to handle and the skeleton code will be generated for you.
将HTML标记更改为ASP:控件标记,例如ASP:TextBox,ASP:Button
然后添加on_click ="loginBTN_click",您将可以将它们连接起来.
Change the HTML tags into ASP: control tags eg ASP:TextBox , ASP:Button
then add a on_click="loginBTN_click" and you would be able to connect them up.
这篇关于在图片/文本框后面添加动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文