社区
C#
帖子详情
web中的textBox没有focused事件?
wincore
2003-11-07 03:21:52
为什么在web的编程中,textBox的事件怎么这么少,居然连focused也没有
怎么办?请过来人指教!
另外,对于一个textBox得回车事件是什么?
...全文
41
9
打赏
收藏
web中的textBox没有focused事件?
为什么在web的编程中,textBox的事件怎么这么少,居然连focused也没有 怎么办?请过来人指教! 另外,对于一个textBox得回车事件是什么?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
9 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
wincore
2003-11-08
打赏
举报
回复
好的,谢谢!
possible_Y
2003-11-08
打赏
举报
回复
这种问题你应该到web版的javascript区问,你会得到很好答复的
wincore
2003-11-08
打赏
举报
回复
关于这种简单的验证
只需要在顾客端做
只要用几个html的控件就可以
wincore
2003-11-08
打赏
举报
回复
关于第二个问题已经自立更生
<SCRIPT language="javascript">
function test( )
{
window.alert("");
}
</SCRIPT>
<INPUT onfocus="PressMe()" name="TextBoxd" onkeypress="test()" type="text">
wincore
2003-11-08
打赏
举报
回复
to:supercdz(烟鬼,一天两包半)
<script>
textBox1.focus();
</script>
这些代码放到哪个位置呢?我是想在某个RadioButton.Checked = True 的时候,让他对应的TextBox来 focus().
关于key=13,web control 没有这个事件,我用html控件的时候,也没有反应,code如下:
<INPUT type="text" onkeypress="var k=window.event.keycode;if(k=13){window.alert("ss")}">
cnhgj
2003-11-07
打赏
举报
回复
javascript
textBox1.focus();
peterlee168
2003-11-07
打赏
举报
回复
Web编辑能做到这就不错了,按照楼上朋友的做法,用JavaScript 实现吧!
lg384
2003-11-07
打赏
举报
回复
每个控件都有autopostback属性
可以将其设置为ture
这样按回车就会回帖
supercdz
2003-11-07
打赏
举报
回复
要在客户端代码中实现
获得焦点
<script>
textBox1.focus();
</script>
<asp:TextBox id="BugGet_Date" runat="server" onkeypress="var k = window.event.keyCode;if (key=13){执行代码}"></asp:TextBox>
winform常用控件
主要包含内容: 第一讲 课程简介 第二讲 Windows窗体-创建和介绍 第三讲 Windows窗体-属性 第四讲 Windows窗体-方法和
事件
第五讲 Windows窗体-MDI窗体和子窗体 第六讲 控件的相关操作 第七讲 Label控件显示世界你好...
C#: Automatically select all text on
focus
in WinForms
TextBox
bool already
Focus
ed
;...
textBox
1.Got
Focus
+=
textBox
1_Got
Focus
;
textBox
1.MouseUp +=
textBox
1_MouseUp;
textBox
1.Leave +=
textBox
1_Leave;...void
textBox
1_Leave(object sender, EventArgs e){
Asp .Net Ajax AutoComplete
Textbox
with Database
Id=107&Desc=Asp-.Net-Ajax-AutoComplete-
Textbox
-with-Database<br /><br />Autocomplete
Textbox
In Asp.net It is very cool to have Autocomplete
Textbox
In Asp.net for the
textbox
in the ASP.net....
Default Text Label in
Textbox
using JavaScript/jQuery
文章源自:http://viralpatel.net/blogs/default-text-label-
textbox
-javascript-jquery/ Default Text Label in
Textbox
using JavaScript/...n one of my previous article about Change Form
Textbox
Style on...
Changing Form Input (
Textbox
) Style on
Focus
using jQuery
文章源自:...Changing Form Input (
Textbox
) Style on
Focus
using jQuery User experience has always been a factor to be consider whi...
C#
110,534
社区成员
642,575
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章