PlayWorld's Best Online Games-FootBaLL, Cricket, BaseBall
Get link
Facebook
X
Pinterest
Email
Other Apps
Try to click on the image below and enjoy the world's best online games there. You will definitely like it. :) Best way of wasting your valuable time :P.
To use HQSMS API you need to 1st Register at HQSMS. They will provide you some credit for testing your app. But to send more sms you have to buy credit from them. Below is the code for sending SMS to a user in asp.net. here I'm using System.Net library from asp.net and then obviously HQSMS APIs. protected void sendButton_Click(object sender, EventArgs e) { HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(new Uri("http://www.hqsms.com/api/send.do?username=username&password=md5_password&to=to_phoneNo&message=Please Work!&from=HQRoute")); HttpWebResponse response = (HttpWebResponse)req.GetResponse(); System.IO.StreamReader strreader = new System.IO.StreamReader(response.GetResponseStream()); string deliver = strreader.ReadToEnd(); ...
DataView in asp.net doesn't have any method of returning Top n rows or it doesn't accept any row filter string such as, dataview.RowFilter = "top 100". So to server the purpose you can use the method below to get top n rows from DataView. private DataView GetTopDataViewRows(DataView dv, Int32 n) { DataTable dt = dv.Table.Clone(); for (int i = 0; i { if (i>= dv.Count) { break; } dt.ImportRow(dv[i].Row); } return new DataView(dt, dv.RowFilter, dv.Sort, dv.RowStateFilter); }
Comments
Post a Comment