Group29.com - What did you expect?
  Create an account
:: Home  ::  Downloads  ::  Your Account  ::  Forums  ::
Google Adsense
Modules
  • Home
  • Downloads
  • ExpectationReviews
  • Forums
  • Group29 FAQ
  • MovieReviews
  • OtherReviews
  • Stories Archive
  • Submit News
  • Top 10
  • Topics
  • Web Links
  • New at Group29
    ·2017 USC vs UCLA preview
    ·Movie Review: IT (2017) [25]
    ·Movie Review: Dean [20]
    ·Forum Topic: Update your Facebook property
    ·2016 UCLA vs USC preview
    ·Expectation Review: Star Wars: The Force Awakens [29]
    ·Web Link: WEP Key Converter
    ·Expectation Review: Jupiter Ascending [25]
    ·Forum Topic: Why does my IPA file get saved as a zip file in IE?
    ·Web Link: BeyondCompare

    read more...
    TheForce.Net
    Currently there is a problem with headlines from this site
    Hot trends
    ·Group29.com

    read more...
    Group29 Discussion Board :: View topic - Gridview problem DataFormatString not working Visual Studio
    Log in Register Forum FAQ Memberlist Search
    Ratings, Links, Free Speech and more

    Group29 Discussion Board Forum Index -> Group29 Tech Tips -> Gridview problem DataFormatString not working Visual Studio
    Post new topic  Reply to topic View previous topic :: View next topic 
    Gridview problem DataFormatString not working Visual Studio
    PostPosted: Wed Jun 04, 2008 9:20 am Reply with quote
    BB
    Regular
     
    Joined: Jun 23, 2004
    Posts: 340


      


    There is a bug in older versions of the .NET 2.0 framework used for Visual Studio 2005. Even if you have a DataFormatString in your Gridview object, the column may still not format.

    The workaround is to add the code
    Code:
    HtmlEncode ="false"

    to that column

    When HtmlEncode is on, the data is retrieved from the data store, Html Encoded, and then the format string is applied. By HtmlEncoding the value from the data store, the framework protects unsafe script from the data store from being displayed to the client.

    I have observed this in the RTM versions of .NET 2.0 2.0.50727.42, as well as .NET 2.0 with security updates including 2.0.50727.832.*

    The problem does not occur in the SP1 version of .NET 2.0 (2.0.50727.1433). This SP1 came with the .NET framework 3.5. Apparently this also did not occur in the beta version of .NET 2.0.

    *see also Version history of the .NET 2.0 CLR
    View user's profile Visit poster's website
    Promoted to main topics
    PostPosted: Mon Feb 02, 2009 1:26 pm Reply with quote
    BB
    Regular
     
    Joined: Jun 23, 2004
    Posts: 340


      


    This article has been promoted to the main Group29 topics section
    http://www.group29.com/modules.php?name=News&file=article&sid=195
    View user's profile Visit poster's website
    Gridview problem DataFormatString not working Visual Studio
      Group29 Discussion Board Forum Index -> Group29 Tech Tips
    You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot vote in polls in this forum
    All times are GMT - 6 Hours  
    Page 1 of 1  

      
      
     Post new topic  Reply to topic  


    Powered by phpBB © 2001-2003 phpBB Group
    Theme created by Vjacheslav Trushkin
    Forums ©
    Group29 Productions

    All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest (c) 2006 by Group29 Productions.


    You can syndicate Group29 Productions news with an RSS Feeder using the file backend.php


    PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
    Page Generation: 0.10 Seconds

    :: HeliusGray phpbb2 style by CyberAlien :: PHP-Nuke theme by www.nukemods.com ::