473,804 Members | 3,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
"ItemCreate d", 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 "ItemCreate d" 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 1290
I think you will have to post code that allows us to reproduce this.

"Diffident" <Di*******@disc ussions.microso ft.com> wrote in message
news:A2******** *************** ***********@mic rosoft.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
"ItemCreate d", 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 "ItemCreate d" 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
3755
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? Here is an example of just such a usage: <dl class="faq"> <di>
2
1979
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 want them not to be able to answer question 2 at all. Ideas? Thanks so much!
7
2360
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! Tony
7
2251
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 be encountered, then the call will fail (based on my knowledge) ? ....Different Player, shoot again... I am asking a question which was posted several times in the last months, but never answered; any advice / insight would be appreciated. ...
3
1059
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 order by their branch name. for e.g. in my crystal report i want to display data in this way Brooklyn Branch name
2
7670
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 PasswordRecovery with a Password reset required; a temporary password is sent to the account on file. I want an extra layer of security to accommodate the very unlikely contingency that someone's e-mail account is compromised. Challenging with the...
0
9584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10583
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10337
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9160
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2995
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.