启用提交按钮
问题描述:
我是Visual Studio 2005的新手,我在这里遇到问题.我有两个按钮:保存和提交按钮.仅在单击保存"按钮后才能启用提交按钮?谢谢.
I am new in visual studio 2005 and i have a problem here. I have two button : save and submit button. How can i enable the submit button only if i click the save button? Thanks.
答
这与VS2005无关,如果您正在编写JavaScript,则VS2005只是一个文本编辑器.你有关于javascript的书吗?您已采取什么步骤来学习如何使用它? document.getElementById将允许您查找控件(您不说它是否是服务器控件,但如果是服务器控件,则需要正确的ClientID来获取客户端名称),然后将属性设置为从那里进行控制.
This has nothing to do with VS2005, which is merely a text editor if you''re writing javascript. Do you have any books on javascript ? What steps have you taken to learn how to use it ? document.getElementById will allow you to find the control ( you don''t say if it''s a server control, but if it is, you need the ClientID properly to get the client side name ), and then you set the property on the control from there.