Archive for the ‘development’ tag
Asp Net Sql Server Express

Please Help me out with the Form view comtrol in ASP.NET regarding Paging.?
I am using SQL server Express and .NET 2.0. I am generating random records from the database and displaying them with the help of FormView control. I have enabled paging. The problem is that the records change as i move to other pages of the form view itself. Can somebody help me out with this problem. How to maintain the same contents of the form view pages. Please tell me the detailed procedure
From the sound of things, as you go to the next page, you are performing a PostBack and that is “re-submitting” your page, forcing a new data retrieval/display.
There are a couple of ways to avoid this problem:
1) Set the form object to have the PostBack attribute set to False; or
2) In the Load method of the Form object, check the IsPostBack() attribute and override it.
ASP.NET Soup 6 Adding Data with SQL Server 2005 Express Edition