Saturday, August 13, 2011

Solution Page Validation error with "EnableEventValidation=true" Command




Add the below line if grid bind in page load  :--
if (!Page.IsPostBack)
{
DataTable  dt=methodName_that_fill_datatable();
}

add
<%@ Page AutoEventWireup="true" >

and remove<%@ Page EnableEventValidation="true" >

No comments:

SQL Optimization

  SQL Optimization  1. Add where on your query  2. If you remove some data after the data return then remove the remove condition in the sel...