Hi all,
I have a form which has a drop down. I would to fill some text boxes and a drop down based on its result it will fetch data from a database.
I am using Linq query. It returns a row which I receive in a grid view, this works fine, but I would the result in individual text boxes.
Here is my query:
var query = (from m in _db.tblMainAccounts.ToList()
where m.MainAccount == mcode
select new tblMainAccount
{
MainAccount = m.MainAccount,
Title = m.Title,
ControlLevel = m.ControlLevel,
}).ToList();
return query;
and in aspx.cs page:
gvCoa.DataSource = coaDal.GetMainAccountWithCode(code);
gvCoa.DataBind()
Now how do I get the data in text boxes instead of a grid view?
Thanks in advance