خرید بک لینک

ی ادو را شروع کردم تقریبا یاد گرفتم فقط چند مورد وجود داره حتی جستجو هم کردم به نتیجه نرسیدم ممنون میشم کمک کنید اینم کدهای من.<br>

 &nbsp;SqlCoection scn = new SqlCoection(@"Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirector  y|DDD.MDF;Integrated Security=True;User Instance=True");<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SqlCommand scm = new SqlCommand("select * Table1 where (a LIKE '%" + textBox1.Text + "')", scn);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SqlDataAdapter sda = new SqlDataAdapter(scm);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DataTable dt = new DataTable();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// scm.Parameters.AddWithValue("@p1", textBox5.Text);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scn.Open();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sda.Fill(dt);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dataGridView1.DataSource = dt;</div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scn.Close();
<br>1-جستجو شبیه سازی شده&nbsp;<br>2-جستجو از اول کلمه<br>3-جستجو عددی<br>4-جستجوی کل کلمه<br>--------------------------------------------------------------------------------------------------------------<br>2-چگونه با جستجوی کد مشتری مشخصات را در تکست فرم قرار بدم&nbsp;<br>کدی شیه این:<br>
DataClasses1DataContext db = new DataClasses1DataContext();<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int m = int.Parse(textBox5.Text);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var Qury = (from T in db.moshtaris</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; where T.kod == m</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; select new { T.name, T.salon }).SingleOrDefault();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox6.Text = Qury.name.ToString();</div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox7.Text = Qury.salon.ToString();
<br>5-با سلام من به تازگ

برچسب: نویسنده: محمد رضا جوادیان تاريخ: شنبه 29 خرداد 1395 ساعت: 22:54

صفحه بندی