Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 How to Execute 2 select queries in asp.net 2005 C#

Author  Topic 

krishnet
Starting Member

29 Posts

Posted - 2007-05-09 : 14:25:45
Hi frdz,

On the submit click event of my web-application in asp.net C# 2005 i want to display the

select * from tablename where id=@id;

only 1 last record which user had inserted...



On the view click event i want to execute the select query as

select *from tablename;



How can i do this ??

Can anyone help me to do this where to write this two select queries and display it in the gridview and retrieve it with the sqldatasource.
Pls help me.......
Thanxsss
   

- Advertisement -