X
xeroxero
ASP.NET 2.0 Web Application Project.
I have a class called "SuperPage" that inherits from the
System.Web.UI.Page class. In SuperPage, I
1. Override OnInit (do somecustom Session setup)
2. Override Render (add some controls in the page header, add some
style stuff, etc)
I made a new web page that inherits from SuperPage. I create a
treeview in codebehind, and an empty datagrid in codebehind, and add
them to the Form's Controls collection.
I do not have any markup or control information in the .aspx page
template.
In the Event when a tree node is clicked, I get data and DataBind it
to the grid. However, it appears that the ASP.NET event cycle then
starts all over again, so the Controls and drawn twice, a data query
happens (yes I always get some data back) and the grid is databound.
Worse, the grid always shows zero results.
What could be happening here?
Thanks.
I have a class called "SuperPage" that inherits from the
System.Web.UI.Page class. In SuperPage, I
1. Override OnInit (do somecustom Session setup)
2. Override Render (add some controls in the page header, add some
style stuff, etc)
I made a new web page that inherits from SuperPage. I create a
treeview in codebehind, and an empty datagrid in codebehind, and add
them to the Form's Controls collection.
I do not have any markup or control information in the .aspx page
template.
In the Event when a tree node is clicked, I get data and DataBind it
to the grid. However, it appears that the ASP.NET event cycle then
starts all over again, so the Controls and drawn twice, a data query
happens (yes I always get some data back) and the grid is databound.
Worse, the grid always shows zero results.
What could be happening here?
Thanks.