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
Goran Bibic
458
2.9k
201.3k
Need string if har row to show value, else to be ----
Nov 2 2019 7:27 AM
Need string if har row to show value, else to be ----
I try this
What I wrong?
string
redni_broj =
""
;
using
(SqlConnection openCon8 =
new
SqlConnection(Con))
{
SqlDataReader reader8;
SqlCommand cmd8 =
new
SqlCommand();
cmd8.CommandText =
"select FORMAT(redni_broj, '00000') from mp_faktura_lista where id="
+ id_fakture;
cmd8.Connection = openCon8;
openCon8.Open();
reader8 = cmd8.ExecuteReader();
if
(reader8.HasRows)
{
while
(reader8.Read())
{
redni_broj = reader8[0].ToString();
}
}
else
{
redni_broj =
"-----"
;
}
openCon8.Close();
}
Reply
Answers (
1
)
HOW DISABLE SHOT KEYS( control+p) IN WIndowsforms pdf reader
Adding sorted list to DataTable Row