Tips and tricks for .NET using ASP and VB code.

Break up ViewState

    Protected Sub Page_PreInit(sender As Object, e As System.EventArgs) Handles Me.PreInit
        'MaxPageStateFieldLength can only be set in the PreInit event.
        Page.MaxPageStateFieldLength = 32767
    End Sub

No comments:

Post a Comment

Search This Blog