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
Hardik Patel
NA
378
468.1k
pls check this query?
Jul 15 2013 1:35 AM
try
{
string query = "";
// query += "SELECT WOInwardEntry.InvoiceNo FROM WOInwardEntry INNER JOIN WO ON WOInwardEntry.WOCode = WO.WOCode where WOInwardEntry.WOCode = '" + ddWONumber.SelectedItem.Value + "'";
query += "select InvoiceNo,InvoiceDate,InwardDate from WOInwardEntry where wocode ='" + ddWONumber.SelectedItem.Value + "'";
cmd = new SqlCommand(query, cn);
da = new SqlDataAdapter(cmd);
da.Fill(ds);
if ((ds != null) && (ds.Tables.Count != 0) && (ds.Tables[0].Rows.Count != 0))
{
txtInvoiceNo.Text = ds.Tables[0].Rows[0]["InvoiceNo"].ToString();
txtInvoiceDate.Text = Convert.ToDateTime( ds.Tables[0].Rows[0]["InvoiceDate"]).ToString("dd-mm-yyyy");
txtInwardDate.Text = Convert.ToDateTime(ds.Tables[0].Rows[0]["InwardDate"]).ToString("dd-mm-yyyy");
}
//FillItems();
}
catch { }
finally { }
is it right to retrive more than one raw?
Reply
Answers (
4
)
How to host ASP.NET 4.0 application for free
How to Normalize a Windows Form and its related sql Table