As We all know about where condition. My doubt is, Is possible to use two or more fields. If possible post some link for reference.
SELECT * FROM partycategory WHERE partycategory='"+TextBox1.Text+"' And party='"+TextBox2.Text+"'
Hi sujayanand,
Yes it is possible. You can do it like below.
C#
SqlCommand cmd=new SqlCommand("SELECT * FROM partycategory WHERE partycategory='"+TextBox1.Text+"' And party='"+ TextBox2.Text +"'",con);
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.