bool chek = DS.Tables["table"].Rows[0]["MB_MobileNo"].ToString().Contains(); if(Chek>0) { txtMobileNo.Text = DS.Tables["table"].Rows[0]["MB_MobileNo"].ToString().Substring(3); }
var chek = DS.Tables["table"].Rows[0]["MB_MobileNo"].ToString().Contains(); if(Int.Parse(Chek)>0) { txtMobileNo.Text = DS.Tables["table"].Rows[0]["MB_MobileNo"].ToString().Substring(3); }
if (DS.Tables["table"].Count()>0 && DS.Tables["table"].Rows[0]["MB_MobileNo"].Count()>0) { txtMobileNo.Text = DS.Tables["table"].Rows[0]["MB_MobileNo"].ToString().Substring(3); }
if(DS.Tables["table"].Rows[0]["MB_MobileNo"].ToString()!="") { txtMobileNo.Text = DS.Tables["table"].Rows[0]["MB_MobileNo"].ToString().Substring(3); }
if (!string.IsNullOrEmpty(DS.Tables["table"].Rows[0]["MB_MobileNo"].ToString())) { txtMobileNo.Text = DS.Tables["table"].Rows[0]["MB_MobileNo"].ToString().Substring(3); }
string vString = DS.Tables["table"].Rows[0]["MB_MobileNo"].ToString().Substring(3); string abc = vString !="" ? vString : "";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)