如果我在一个文本框中提供员工ID,那么我想在另一个文本框中找到该员工ID的适当名称。 [英] If I Give Employee Id In One Textbox Then I Want The Apropriate Name Of That Employee Id In Another Textbox.

查看:81
本文介绍了如果我在一个文本框中提供员工ID,那么我想在另一个文本框中找到该员工ID的适当名称。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在一个文本框中提供员工ID,那么我想在另一个文本框中找到该员工ID的合适名称。

提前感谢

解决方案

你知道,这不会神奇地发生:你需要一些数据结构(或数据库表)将员工ID映射到他/她的名字。

你可以使用,例如, Dictionary ,请参阅文档示例代码 [ ^ ]。


使用jQuery .ajax webservice调用来调用webservice来获取值。然后填写。



http://api.jquery。 com / jQuery.ajax / [ ^ ]

if i give employee id in one textbox then i want the apropriate name of that employee id in another textbox.
thanks in advance

解决方案

That, you know, wouldn't happen magically: you need some data structure (or database table) mapping the employee id to his/her name.
You could use, for instance, a Dictionary, see the documentation sample code[^].


Use jQuery .ajax webservice call to call a webservice to get the value. Then fill it in.

http://api.jquery.com/jQuery.ajax/[^]


这篇关于如果我在一个文本框中提供员工ID,那么我想在另一个文本框中找到该员工ID的适当名称。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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