protected void Page_Load(object sender, EventArgs e) { int Count1= GrvNewPORequests.Rows.Count; if (!IsPostBack) { txtPODate_CalendarExtender.StartDate = DateTime.Today; txtReqDate_CalendarExtender.StartDate = DateTime.Today; BindGridNewPOReq(); int count = GrvNewPORequests.Rows.Count; // first time the count will show the no of rows and same will display on the page } // Second time Coiunt1 will show '0' ! }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)