DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

1
kicks
submitted by wwb_99 1 year ago

sitepoint.com — Why keeping your template logic in the template is next to godliness. With a concrete example.

Add a comment 4 comments | category: | Views: 0 | Get KickIt image code
tags: , | tag it

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:
Why the animosity? The .NET community is small enough as it is, there is no need to turn on fellow coders.

That said, I disagree with you entirely.

Also:

1. ASP:Labels and ASP:Literals have no viewstate.
2. Html Controls with runat="server" are represented as System.Web.UI.Controls.HTMLControls in the Control Tree, which has the same footprint as my ASP controls.
3. You are doing the exact same thing in your example as mine, binding a business object to a repeater...Except in your example you don't have compile time checking because its all inline in the aspx. It is also harder to understand, modify, and maintain.
4. If your project follows a Build / QA / Deploy schedule, I don't want to see people fixing things in the aspx and pushing them to production without following procedure.
5. Why the hate? Does your blog not get enough readers?
posted by FlySwat 1 year ago
No animosity intended, and I am not certain where you got that from. Healthy intellectual disagreement, yeah. But hate, nah.

Side note: Labels and Literals do have viewstate. Not sure where you got that notion from.
posted by wwb_99 1 year ago
You are right, Labels and Literals do have view state if they are modified.

http://msdn2.microsoft.com/en-us/library/ms972976.aspx
posted by FlySwat 1 year ago
Ew, I can't edit my last comment.

Labels and Literals only have viewstate if they are modified after a postback. In this situation, that never happens, so there is no viewstate.
posted by FlySwat 1 year ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge