Wednesday, January 23, 2008
2:10 PM
This is a matter of where you're doing your databinding and how...
Say you have a grid and you have something like this you may have trouble
if not isPostback then
griddatabinding ()
…
end if
I am suggesting that your databinding is done in code. If so, then you will
experience the kind of problem you are indicating. If you have disable
viewstate then you will also loose your grid style assuming you did every
thing programmatically.
The answer
If not isPostback the n
…
End if
' move this outside your if statement
Griddatabinding()
You may have something similar in your code. If not post some code so we
can help analyze the problem.
--
aaa
[quoted text, click to view] "Jonathan Wood" wrote:
> I'm getting into the habit of checking IsPostBack in my Form_Load handler
> and not updating the page if it is a postback.
>
> However, I notice that if I hit my browser's refresh button, the page
> refreshes without any data.
>
> Since when is a refresh a postback?
>
> Thanks.
>
> --
> Jonathan Wood
> SoftCircuits Programming
>
http://www.softcircuits.com >