Click here to Skip to main content
15,922,015 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDataList's OnItemCreated events get called without page load event..! Need Help Pin
Sachin Pawar A.1-Dec-06 19:52
Sachin Pawar A.1-Dec-06 19:52 
QuestionHow to make a progress bar?? Pin
miss_neha_mishra1-Dec-06 19:43
miss_neha_mishra1-Dec-06 19:43 
AnswerRe: How to make a progress bar?? Pin
Dominic Pettifer2-Dec-06 6:13
Dominic Pettifer2-Dec-06 6:13 
QuestionCheckbox Problem Pin
monika_vasvani1-Dec-06 18:46
monika_vasvani1-Dec-06 18:46 
AnswerRe: Checkbox Problem Pin
Not Active1-Dec-06 18:53
mentorNot Active1-Dec-06 18:53 
Questionshow menu ites show over the dropdown list Pin
yesu prakash1-Dec-06 18:39
yesu prakash1-Dec-06 18:39 
QuestionHow does controls renders HTML Pin
Tina P1-Dec-06 15:24
Tina P1-Dec-06 15:24 
AnswerRe: How does controls renders HTML Pin
Guffa1-Dec-06 16:39
Guffa1-Dec-06 16:39 
Tina P wrote:
when I first drag a control to asp.net designer, it actually generate html


Not really. It generates markup code, but that is not the final html code.

Tina P wrote:
Can someone please explain to me how does asp.net controls render Html.


When the page is created, everything in the markup code is created as objects.

For example, this part of the markup:

<div><asp:Label id="myLabel" runat="server"></div>

will be created as these three objects:

LiteralControl("<div>")
Label id="myLabel"
LiteralControl("</div>")

As you see, everything that is not server controls are treated as literal text.

The last part of creating the page is the rendering, where the objects in the page will each create a bit of the html code. Let's say that you have set the Text property of the label to "Hello world.". Then the three objects will create these three strings:

"<div>"
"<span id="myLabel">Hello world.</span>"
"</div>"

Those strings will be written to the response stream among with the strings from all the other objects in the page to form the complete html document.


---
b { font-weight: normal; }

GeneralRe: How does controls renders HTML Pin
Tina P1-Dec-06 21:32
Tina P1-Dec-06 21:32 
AnswerRe: How does controls renders HTML Pin
Guffa2-Dec-06 5:17
Guffa2-Dec-06 5:17 
GeneralRe: How does controls renders HTML Pin
Tina P3-Dec-06 7:34
Tina P3-Dec-06 7:34 
AnswerRe: How does controls renders HTML Pin
Guffa3-Dec-06 18:35
Guffa3-Dec-06 18:35 
QuestionALT keys usage in ASP .Net pages Navigation Pin
sam L1-Dec-06 15:11
sam L1-Dec-06 15:11 
AnswerRe: ALT keys usage in ASP .Net pages Navigation Pin
Vasudevan Deepak Kumar1-Dec-06 20:59
Vasudevan Deepak Kumar1-Dec-06 20:59 
GeneralRe: ALT keys usage in ASP .Net pages Navigation Pin
sam L1-Dec-06 21:48
sam L1-Dec-06 21:48 
Questiondisplaying images in tooltip for tree nodes Pin
shefali_sinha1-Dec-06 13:02
shefali_sinha1-Dec-06 13:02 
AnswerRe: displaying images in tooltip for tree nodes Pin
Not Active1-Dec-06 17:23
mentorNot Active1-Dec-06 17:23 
AnswerRe: displaying images in tooltip for tree nodes Pin
ashish_patil++3-Feb-07 23:25
ashish_patil++3-Feb-07 23:25 
QuestionAutoEventWireup="false Pin
saravanan051-Dec-06 11:37
saravanan051-Dec-06 11:37 
AnswerRe: AutoEventWireup="false Pin
DavidNohejl1-Dec-06 13:16
DavidNohejl1-Dec-06 13:16 
QuestionServer.Transfer and server.execute Pin
saravanan051-Dec-06 9:17
saravanan051-Dec-06 9:17 
AnswerRe: Server.Transfer and server.execute Pin
Bassam Saoud1-Dec-06 10:18
Bassam Saoud1-Dec-06 10:18 
JokeRe: Server.Transfer and server.execute Pin
Grapes-R-Fun1-Dec-06 14:13
Grapes-R-Fun1-Dec-06 14:13 
AnswerRe: Server.Transfer and server.execute Pin
ednrgc4-Dec-06 1:32
ednrgc4-Dec-06 1:32 
QuestionASP.NET and Crystal report Pin
aransiola1-Dec-06 8:53
aransiola1-Dec-06 8:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.