473,386 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

can anyone answer this tuff question?

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

Nov 19 '05 #1
1 1263
I think you will have to post code that allows us to reproduce this.

"Diffident" <Di*******@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.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

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Dave H | last post by:
Hello, I have a query regarding definition lists. Is it good practice semantically to use the dt and dd elements to mark up questions and answers in a frequently asked questions list, or FAQ? ...
2
by: amelia170 | last post by:
I am creating a database with a yes or no answer for question 1. Based on that answer, (if they answer yes) they will answer question 2, then three....However, if they answer no to question one, I...
7
by: changs | last post by:
Hi, all I have a asm code, I suspect it sort of socket programming. Can anyone here give some instructions on how to determine the function or give the psudo-code in C? Thanks in advance! ...
7
by: pthomet | last post by:
Another formulation of the message tittle could be : is it really "safe" (in the business sense) to embed a SSL webservice consumer into any given software, given that any time a proxy server will...
3
by: viral123 | last post by:
Hi all I have Branch name, employee name and some of the fields in my database. I have to create attendance report using crystal. The problem is in my report I want to display employee names...
2
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.