Blog - Microsoft .NET, ASP.NET, AJAX and more

Dynamic AJAX Control Toolkit - ValidatorCallout Extender

by Damien White 7/24/2008 8:51:38 AM
Technorati Tags: ,

I added one of these a while ago and figured I would include another.  Dynamic AJAX Toolkit Controls seem to really be an issue for some, so I hope this helps.  This time, we will create a dynamic ValidatorCallout for a TextBox with a RequiredFieldValidator (although you can use any validation method).  One other thing to note on the ValidatorCallout is that  it only works with client-side validation. More...

Currently rated 4.7 by 3 people

  • Currently 4.666667/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Stumble It! kick it on DotNetKicks.com

Dynamic Control ViewState Problems

by Damien White 7/23/2008 8:08:19 PM

Technorati Tags: ,

The ID Property is Important

I've encountered quite a few developers having ViewState problems with dynamic controls.  Ever have a control get recreated, but the value isn't there on PostBack and you are creating your controls at the correct time?  Frustrating to say the least.  Anyway, even if you follow the correct pattern for creating / recreating dynamic controls, you may either forget (D'oh) or don't set (Double D'oh) an ID for the control.  By not setting an ID, you are relying on ASP.NET to create the control with the same ID.  Sometimes it will, other times it won't... not a gamble you should take.  More...

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Stumble It! kick it on DotNetKicks.com
Tags:
Categories: .NET | ASP.NET | C# | CSS
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed