且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从域服务获取字符串列表

更新时间:2023-11-15 17:40:46

嗨prasath,

使用下面的代码而不是你的代码并转换成Silverlight页面中的列表(.cs页面)和然后执行你的操作

代码:

public IQueryable< string>你好()

{

List< string> strList = new List< string>();

strList.Add(Hello ..);

strList.Add(World ..);

返回strList.AsQueryable();

}
Hi prasath,
use below code instead of ur code and converted into list in the Silverlight page(.cs page) and then perform ur operations
code:
public IQueryable<string> Hello()
{
List<string> strList=new List<string>();
strList.Add("Hello..");
strList.Add("World..");
return strList.AsQueryable();
}