|
The above is a bit unclear, look at this
CardData cards = new CardData();
this.ViewState["Card Number"] += this.CardNumberTextBox.Text +"," + ".";
string[] ary = this.ViewState["Card Number"].ToString().Split(',');
foreach(string s in ary)
{
if(s.Trim() != "")
{
using (CardAccess ca=new CardAccess())
{
cards = ca.GetCardByNumber(s);
}
}
} |
|