在Web窗体中动态读取密钥? [英] Read Keys Dynamically In Web Form ?

查看:69
本文介绍了在Web窗体中动态读取密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的项目中实现一个搜索页面,例如Google搜索.

我正在使用ajax进行自动补全.

我想在搜索框中输入文本时将数据绑定到网格.

例如:如果搜索框Text = s =>显示名称为s
的应用程序 如果搜索框文字= sa =>自动调用引发并显示名称为sa ..的应用程序.




请帮助我....

I want to implement a search page in my project like google search.

i am taking autocompletion by ajax.

i want to bind the data to grid when i am entering text in search box.

ex: if search box Text = s => displays applications with start name s
if search box text = sa => automatically call raises and displays applciations with name sa..




please help me....

推荐答案


我只想分享我的想法,而不是取决于您的解决方案.

1)您可以编写有关文本更改事件的代码,并调用db填充网格->这是非常慢的进程同步调用.

2)使用Page方法获取输出源,并在运行时构建
标签,并将其设置为div的innerHTML.
像这样
Div1.innerHTML = PageMethods.MyMethod("World",MyMethod_Result);

如果您想了解分页方法的基础知识,请点击链接,或者如果您已经知道则可以.



BasicsofPageMethod

PageMethodSetp1

谢谢
Faisal
Hi,
I just want to Share my Ideas not the solution its up to you.

1) You can write code on text change event and call db populate the grid -> which is very slow process synchronous call.

2) Use Page method get the out put source and build the
tag at run time and set it to a div''s innerHTML .

like this
Div1.innerHTML= PageMethods.MyMethod("World", MyMethod_Result);

If you want to know basics of page method then please follow the link or if you know already then fine.



BasicsofPageMethod

PageMethodSetp1

Thanks
Faisal


这篇关于在Web窗体中动态读取密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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