Geeks With Blogs
Jeroen Bourdeaud'hui web application developer vb.net
How to prevent the user to post page twice, by using refresh
When a user post's data to the server, the page will be reloaded. When the user hits the F5/refresh button, a message appears, which tells us, that we´ve allready sended the data to the server. And asks us if we want to sent it again. If the user clicks "yes", we have to catch that, we don´t want this in our application - check that the user can only post something every 2 minutes. - save the posted data in viewstate and check if something changed - ... Or we can check if the user hit the refresh ......

Posted On Thursday, September 29, 2011 9:51 PM

Paging using Linq
Last, I needed a function to add paging. The first problem I had, was how to this. A couple of seconds later, I allready had a solution to this problem: Linq Skip and take will do the trick. list<t>.Skip(_howMany... This won't crash if you pass one of both statements. It will just return the result. source.Skip(startRowIndex).... I've created an extension method to use this function. VB Module LinqHelpers <System.Runtime.Compiler... ......

Posted On Tuesday, May 10, 2011 12:22 PM

Copyright © Jeroen Bourdeaud'hui | Powered by: GeeksWithBlogs.net