RE: Databind and event
- From: wawang@xxxxxxxxxxxxxxxxxxxx (Walter Wang [MSFT])
- Date: Mon, 21 May 2007 07:27:10 GMT
Hi Victor,
How is your complete page code looks like? According to ASP.NET Page Life
Cycle (http://msdn2.microsoft.com/en-us/library/ms178472.aspx), there's
only Control events between the Page's Load and LoadComplete event. Also,
I've tested using a simple webpage and following code works:
protected void Page_Load(object sender, EventArgs e)
{
this.LoadComplete += new EventHandler(_Default_LoadComplete);
}
void _Default_LoadComplete(object sender, EventArgs e)
{
BindGrid();
}
private void BindGrid()
{
DataTable dt = new DataTable();
dt.Columns.Add("Name");
dt.Rows.Add("Test");
GridView1.DataSource = dt;
GridView1.DataBind();
}
Please post your code. Thanks.
Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- RE: Databind and event
- From: Walter Wang [MSFT]
- RE: Databind and event
- References:
- Databind and event
- From: Victor
- Databind and event
- Prev by Date: RE: Windows Authentication in ASP.NET 2.0
- Next by Date: Re: Accessing an Access database in ASP.Net 2.0
- Previous by thread: Re: Databind and event
- Next by thread: RE: Databind and event
- Index(es):
Relevant Pages
|