Amit's Blog

Sharing Thoughts and Learning

  Home  |   Contact  |   Syndication    |   Login
  43 Posts | 0 Stories | 233 Comments | 14 Trackbacks

News

About Me?
Read it in
Blog Statistics
Proud Member of

Tag Cloud


Archives

Post Categories

Articles

Book Review

I Visit.

OpenSource Project(s)

Ajax Data Controls

Another addition of my Ajax Control Development Article series. This time it is Asp.net Ajax Repeater. Check it out...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

While working on Ajax Data Controls Project, I need the generated HTML from an ITemplate. Here is the code that generates the html, some of you may find it useful. 1: StringBuilder output = new StringBuilder(); 2: StringWriter sw = new StringWriter(output, CultureInfo.InvariantCulture); 3: HtmlTextWriter htw = new HtmlTextWriter(sw); 4: 5: Control control = new Control(); // Create a Fake control to act as a Container 6: 7: template.InstantiateIn(cont... // This is the ITemplate 8: control.RenderControl(htw);...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

I have just started a new Project in CodePlex AjaxDataControls. I am planning to include GridView, DataList, Repeater, DetailsView, FormView and ObjectDataSource in the initial release. Since the Asp.net version of these controls does not have any object model in the client side as those were released long before Ajax framework, currently the only choice available working with this controls is to surround these controls in an UpdatePanel. UpdatePanel is a great option for developing Small/Mid size...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati