在ASP.NET中的多行文本框中搜索每个新行字 [英] Search each new line word in a multi lined textbox in ASP.NET

查看:91
本文介绍了在ASP.NET中的多行文本框中搜索每个新行字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站中,在网页中有多行文本框。如果在文本框中输入的内容意味着,我想搜索每个单词(逐行)并根据搜索将图像显示给数据列表。根据他的搜索,找到了多少图像意味着我想显示找到标签的图像数量。如果在搜索工具中找不到多行文本框中的任何单词,我想在标题中显示未找到的那个单词....请帮助我....我在ASP.NET中做。

In my website, in a web page there is multi lined textbox. If something entered in the textbox means, I want search each word(line by line) and display the images to a datalist according to the search. And according tot he search, how many images found means I want to display the number of images found to a label. And if any word from the multi lined textbox not found in search means, I want to display that word in a label with ''NOT FOUND''.... Please help me.... I am doing in ASP.NET.

推荐答案

请点击以下链接:



http://msdn.microsoft.com/en-us/library/6c3yckfw%28v=vs.100%29.aspx [ ^ ]

http:// stackoverflow.com/questions/11589232/passing-data-between-two-usercontrols-in-asp-net [ ^ ]

http://stackoverflow.com/questions/363899/passing-values-between-web-user-controls [ ^ ]

http://stackoverflow.com/questions/376366/passing-value-between-web-user-controls-differentquestion [<一个href =http://stackoverflow.com/questions/376366/passing-value-between-web-user-controls-differentquestiontarget =_ blanktitle =New Window> ^ ]



下次请指定语言(C#,VB等)
Fallow below links:

http://msdn.microsoft.com/en-us/library/6c3yckfw%28v=vs.100%29.aspx[^]
http://stackoverflow.com/questions/11589232/passing-data-between-two-usercontrols-in-asp-net[^]
http://stackoverflow.com/questions/363899/passing-values-between-web-user-controls[^]
http://stackoverflow.com/questions/376366/passing-value-between-web-user-controls-differentquestion[^]

Next time, please, specify language (C#, VB, etc.)


我想最好的方法是:



包括您用于搜索的查询if if if if then然后在数据列表中显示图像其他按钮点击写入

i guess the best way is :

include the query that you are using for your search in if block if success then show image in data list else on button click write
Label1.Text = TextBox1.Text; 





查看此链接,了解如何从文本框中填充标签

http://www.dotnetfunda.com/tutorials/controls/label.aspx [ ^ ]


尝试使用CheckBoxes。

因此没有错误的值,可以进行多项选择。



如果你不能,你可以比较这些值与数据库中的那些,如果没有找到,那么你可以显示错误信息。



希望这有帮助。
Try to use CheckBoxes.
So there will be no wrong values and multiple selection can be done.

If you can''t, you have compare the values with those from database and if not found, then you can display the error message.

Hope this helps.


这篇关于在ASP.NET中的多行文本框中搜索每个新行字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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