TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Amrul Hakim
NA
19
3.9k
How to display the number row records in sql to textbox?
May 15 2017 11:13 AM
this my code ;
Thank you
public
MainDashboar_C()
{
InitializeComponent();
}
SqlConnection conn =
new
SqlConnection(@
"Data Source=AM-PC\SQLEXPRESS;Initial Catalog=Management_Gudang;Integrated Security=True"
);
public
SqlDataReader READER;
private
void
Tampikan_Label()
{
conn.Open();
SqlCommand CMD =
new
SqlCommand(
"Select COUNT(*) From Stok_Barang "
, conn);
READER = CMD.ExecuteReader();
if
(READER.HasRows)
{
txt_BarangMasuk.Text = READER
.ToString();
}
Else
{
txt_BarangMasuk.Text = "0";
}
}
Reply
Answers (
2
)
How to set column width when export datagrid to excel in wpf
MVC how toCreate dynamic Menu bar in Layout page.