how to write code "how to call one command two tables data in ado.net"?
plz help me
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jitendra KumarRank #760 · 3K reputationPosted Jan 13, 2015, 11:06 PM EST
Strored proc like this :-
create proc sp_GetTablesRcd
As
Select * from table1
Select * from table2
Select * from table3
Select * from table4
See attached file :-
Jitendra KumarRank #760 · 3K reputationPosted Jan 13, 2015, 5:53 PM EST
Use join.
Chinna NethaRank #5,573 · 294 reputationPosted Jan 13, 2015, 7:52 PM EST
6 tables are there..6 different gridview are there...
how to call 6 tables in ado.net?
how to write code in ado.net for page_load event?
....
Jitendra KumarRank #760 · 3K reputationPosted Jan 13, 2015, 7:56 PM EST
Please explain more or share code for better understanding.
Chinna NethaRank #5,573 · 294 reputationPosted Jan 13, 2015, 8:10 PM EST
In papers.aspx web form six gird view is there .... and 6 tables are there(back end)
i want how to call 6 tables in page_load event ?
ex:string s="select * form table1,table2,table3,table3,table4,table5,table6";
tell me single command in ado.net
help me plz
Jitendra KumarRank #760 · 3K reputationPosted Jan 13, 2015, 8:22 PM EST
Why are you select 6 tables in one select command.
Use stored proc like this.
Create proc sp_SelTable
as
Select * from table 1
Select * from table 2
Select * from table 3
Select * from table 4
Select * from table 5
Select * from table 6
return six tables. hold the record in dataset on pageload event.
bind gridview acc to table record like this.
If(ds.table[1].rows.count > 0)
{
}
If(ds.table[2].rows.count > 0)
{
}
Chinna NethaRank #5,573 · 294 reputationPosted Jan 13, 2015, 10:09 PM EST
Jitendra KumarRank #760 · 3K reputationPosted Jan 13, 2015, 10:24 PM EST
Kindly Share code.
Chinna NethaRank #5,573 · 294 reputationPosted Jan 14, 2015, 12:48 AM EST