分割位置搜寻 [英] Split the location search

查看:42
本文介绍了分割位置搜寻的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


这是我的位置表列表

钦奈,孟买,浦那
孟买金奈
孟买,科钦
德里,班加罗尔
chennai
钦奈班加罗尔

例如:Naukri,Monster Jobportal网站中的位置搜索类别


如果要提供chennai的输入值,则孟买意味着我要在此数据列表中列出chennai和孟买的列表值.

如何拆分文本框值,请在asp.net中找出并发送编码路径



Bala

Hi
This''s my Location table list

chennai, mumbai, pune
chennai, mumbai
mumbai, cochin
del bangalore
chennai
bangalore, chennai

For examples : Naukri, Monster jobportal website in location search category


If am give the input values for chennai, mumbai means i want list out the chennai and mumbai list values in this datalist

how to split the textbox values please find out and send the coding path in asp.net

by

Bala

推荐答案

就像您可以对文本框值做一个String.Split一样.请查看msdn以获取更多信息: http://msdn.microsoft.com/zh-CN /library/system.string.split.aspx [ ^ ]

祝你好运!
Looks like you can just do a String.Split on the textbox value. Check out msdn for more info: http://msdn.microsoft.com/en-us/library/system.string.split.aspx[^]

Good luck!


嘿,


只需使用代码即可!!

例如...
string sLocation ="chennai,孟买,浦那";

string [] sArrLocation = sLocation.split(new char {'',''});

然后,您将把位置收集到sArrLocation中.

希望对您有帮助.


谢谢
享受代码.........
Hey,


Just use the code!!.

Ex...
string sLocation="chennai, mumbai, pune";

string[] sArrLocation=sLocation.split(new char{'',''});

Then you will get collection of the location into sArrLocation.

I hope this will help you.


Thanks
Enjoy the Code.........


这篇关于分割位置搜寻的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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