如何获取当前正在运行的Form的Form_id [英] How to get Form_id of Current running Form

查看:238
本文介绍了如何获取当前正在运行的Form的Form_id的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在准备一个Customcontrol,因为我需要检索form_id.
Customcontrol放在其中的形式.

因为仅依靠form_id,我可以传递参数...

我正在Windows应用程序中开发CustomControl.


谢谢

Hi all,

I am preparing One Customcontrol for that i need to retrieve form_id.
of a form in which my Customcontrol is placed.

Because depending on that form_id only ,I can pass parameters...

I am developing CustomControl in Windowsapplication.


Thank You

推荐答案

function myFunction(frm) {
alert("This form is " + frm.id + ".");
return true;
}

<form id="Form1" onsubmit="return myFuction(this)">


查看此线程
http://stackoverflow.com/questions/5664899/将获取的表单表单发布到ASP网上 [
See this thread
http://stackoverflow.com/questions/5664899/get-the-id-of-a-form-posted-to-asp-net[^]


这篇关于如何获取当前正在运行的Form的Form_id的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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