Re: can anyone answer this tuff question?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Marina (someone_at_nospam.com)
Date: 01/06/05


Date: Thu, 6 Jan 2005 16:04:34 -0500

I think you will have to post code that allows us to reproduce this.

"Diffident" <Diffident@discussions.microsoft.com> wrote in message
news:A29F5F57-644F-47AB-827B-87B589DB5525@microsoft.com...
> Hello All,
>
> I am encountering a strange behavior which I want the MSDN stalwarts to
> explain me in detail and your explanation is highly appreciated.
>
> I have a User Control which is dynamically loaded from a parent page. In
the
> User Control, I have a DataGrid. In the datagrid's event handler for
> "ItemCreated", I am dynamically adding a "LinkButton" to the footer of the
> datagrid. Normally a linkbutton is rendered as an "anchor" tag in HTML to
the
> browser. Here comes the interesting part:
>
> For the first time when the page is loaded, I can properly see the anchor
> links in the page BUT BUT BUT when I do a "View Source" I cannot find the
> anchor code which is rendered in the HTML. But when I do a post back and
do a
> "View Source" I can see the HTML code. Can anyone give me the reason
behind
> this strange behavior. I know that it has something to do with the
sequence
> followed by the different events in the "Page" class's lifecycle.
>
> Is the User Controls "ItemCreated" event executed after the parent page's
> "Render" event which is responsible for sending the output stream to the
> browser? If that is right then how come I am able to see the links but not
> the HTML code for the very first time?
>
> Thanks a bunch!!!!!
> Raghav
>
>
>


Quantcast