Click here to Skip to main content
15,902,114 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm trying to revise a program done in vs 2003 using asp.net...
On the page, Records is diplayed in the grid, the user will then
select from the grid. But when i click on a record in the grid,
the page refreshes and the grid becomes empty?

Inside the grid, I call a procedure from which the value needed in the
query is the value i selected from the grid.

How can i prevent the page from refreshing when i click on a record in
the grid, so that the grid wont be empty?
or
What i need to do so that the records in the grid stays when i click o a record?

please help me.
Posted

1 solution

if(page.ispostback==false)
{
gridview();
}
 
Share this answer
 
Comments
Alan Tuscano 22-Mar-12 2:12am    
Thanks Sanit. It worked!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900