Sample Credit Card Numbers:: //clear Textbox Controls

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

void CancelDate()

{
foreach (Control c in
this.Master.FindControl("ContentPlaceHolder1").Controls)
{
//Clear textbox controls
if (c is TextBox)
((TextBox)c).Text = "";
//uncheck the checkboxes
if (c is CheckBox)
((CheckBox)c).Checked = false;
//uncheck the radiobutton
if( c is RadioButton )
((RadioButton)c).Checked = false;
if (c is DropDownList)
{
for (int i = 0; i < ((DropDownList)c).Items.Count; i++)
((DropDownList)c).Items[i].Selected = false;
((DropDownList)c).Items[0].Selected = true;
}
if (c is CheckBoxList)
{
for (int i = 0; i < ((CheckBoxList)c).Items.Count; i++)
((CheckBoxList)c).Items[i].Selected = false;
((CheckBoxList)c).Items[0].Selected = true;
}
if (c is RadioButtonList)
{

for (int i = 0; i < ((RadioButtonList)c).Items.Count; i++)


((RadioButtonList)c).Items[i].Selected = false;
((RadioButtonList)c).Items[0].Selected = true;

}
}

System.Threading.Thread.Sleep(2000);

Sample credit card numbers:


Mastercard
5177501546933428
5386030600802953
5230641288211636

5541102192498706
5594816079913638
5568317198375082
5573065438113010
5466040800655310
5246700092123320
5183854352369829
VISA 16 digit
4485550482716925
4916074607296423
4532755350187249
4532798158978526
4539156131767784
4929782470529408
4556391852260838
4615778719622532
4539063762139053
4916576634322519
VISA 13 digit
4929546822038
4485429054470
4556957398842
4024007156579
4916919074545
American Express
345463762507188
378144993995992
343484020397545
375603518907397
378 622106227510
Discover
6011163519554737
6011717776649868
6011582244750015
Di ners Club

30177440922698
30036425020847
30388100277717
enRoute
214940240605856
214964407316131
214954026890921
JCB 15 digit
210008567127773
210075582728976
210090989081499
JCB 16 digit
3088967085867611
3158720550559550
3112879450209875
Voyager
869901142963429
869908363133913
869936466454068

You might also like