如何获取ASP.NET页面的HtmlForm元素? [英] How to get the HtmlForm element of an ASP.NET Page?
本文介绍了如何获取ASP.NET页面的HtmlForm元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,全部,
我只是想知道如何在一个
ASP.NET页面中获取HtmlForm元素?
有人可以帮忙吗?请:)
祝你好运,
Laser Lu
Hello, All,
I just want to know that generally how to get the HtmlForm element in an
ASP.NET Page?
Can anybody help? Please:)
Best regards,
Laser Lu
推荐答案
你需要在代码后面声明一个字段:
protected System.Web.UI.HtmlControls.HtmlForm Form1;
使用Form1或您在ASPX中分配给它的任何ID。
-Brock
DevelopMentor
http://staff.develop.com/ballen
You need to declare a field in your code behind for the form:
protected System.Web.UI.HtmlControls.HtmlForm Form1;
Use Form1 or whatever ID you''ve assigned to it in the ASPX.
-Brock
DevelopMentor
http://staff.develop.com/ballen
你好,全部,
我只是想知道一般如何在
ASP.NET页面中获取HtmlForm元素?
任何人都可以帮忙吗?请:)
致以最好的问候,
Laser Lu。
Hello, All,
I just want to know that generally how to get the HtmlForm element in
an
ASP.NET Page?
Can anybody help? Please:)
Best regards,
Laser Lu.
Hello Brock,谢谢!! :) br />
Hello Brock, Thank you!!:)
您需要在代码后面声明一个字段:
protected System.Web.UI.HtmlControls.HtmlForm Form1;
<使用Form1或您在ASPX中为其分配的任何ID。
-Brock
DevelopMentor
http://staff.develop.com/ballen
You need to declare a field in your code behind for the form:
protected System.Web.UI.HtmlControls.HtmlForm Form1;
Use Form1 or whatever ID you''ve assigned to it in the ASPX.
-Brock
DevelopMentor
http://staff.develop.com/ballen
Hello,All,
>我只是想知道一般如何在ASP.NET页面中获取HtmlForm元素?
任何人都可以帮忙吗?请:)
致以最好的问候,
Laser Lu。
Hello, All,
I just want to know that generally how to get the HtmlForm element in
an
ASP.NET Page?
Can anybody help? Please:)
Best regards,
Laser Lu.
但是,有没有其他选择不需要进行硬编码的方法吗?
我的意思是如何在没有声明
HtmlForm成员的情况下在运行时获取Form元素?
However, is there any alternative approach which needs not to do hard coding?
I mean how to get the Form element at runtime without the declaration of
HtmlForm member?
您需要在代码后面声明一个字段:
protected System.Web.UI.HtmlControls.HtmlForm Form1;
使用Form1或其他您在ASPX中分配给它的ID。
-Brock
DevelopMentor
http://staff.develop.com/ballen
You need to declare a field in your code behind for the form:
protected System.Web.UI.HtmlControls.HtmlForm Form1;
Use Form1 or whatever ID you''ve assigned to it in the ASPX.
-Brock
DevelopMentor
http://staff.develop.com/ballen
你好,全部,
我只是想知道那个一般如何在ASP.NET页面中获取HtmlForm元素?
任何人都可以帮忙吗?请:)
致以最好的问候,
Laser Lu。
Hello, All,
I just want to know that generally how to get the HtmlForm element in
an
ASP.NET Page?
Can anybody help? Please:)
Best regards,
Laser Lu.
这篇关于如何获取ASP.NET页面的HtmlForm元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文