如何在一次点击多个电话号码上发送短信? [英] How can I send sms on multiple phone number on one click?

查看:143
本文介绍了如何在一次点击多个电话号码上发送短信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在一次点击中发送短信多个电话号码,然后从每行的Gridview中选择单元格号码。



我尝试过:



i think loop可用于此目的,但不知道它将如何在ASP.Net中使用?

I want to send a sms on Multiple phone number on one click and Pick cell number from Gridview in each row.

What I have tried:

i think loop could be used for this purpose but do not have idea how it will use in ASP.Net?

推荐答案

避免循环,将信息存储在DataTable中并使用Linq批量调用方法

Avoid the Loop, Store the information in DataTable and Call the method as bulk using Linq
DataTable recTable = new DataTable();

recTable.Select(string.Format("[code] = '{0}'", someName)).ToList<DataRow>().ForEach(r => r["Color"] = colorValue);


这篇关于如何在一次点击多个电话号码上发送短信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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