Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Why cant I do this in .Net 2.0? [modified]

Why cant I do this in .Net 2.0? [modified]

Scheduled Pinned Locked Moved ASP.NET
csharpquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    blurMember
    wrote on last edited by
    #1

    This was fine when I use at .Net 1.1 for the gridview cells, A (in red colour). But the output for .Net 2.0 was A public string strAbsent = "A"; -- modified at 4:13 Monday 21st August, 2006 thanks in advance. Much appreciated.

    E V 2 Replies Last reply
    0
    • B blurMember

      This was fine when I use at .Net 1.1 for the gridview cells, A (in red colour). But the output for .Net 2.0 was A public string strAbsent = "A"; -- modified at 4:13 Monday 21st August, 2006 thanks in advance. Much appreciated.

      E Offline
      E Offline
      eggsovereasy
      wrote on last edited by
      #2

      Could you please rephrase your question. As it stands all I have is what the output is in .NET 2.0, for which I have no context, and "Why can't I do this in .net 2.0?". Why can't you do what? What worked fine in 1.1? What is wrong with the output from 2.0?

      B 1 Reply Last reply
      0
      • B blurMember

        This was fine when I use at .Net 1.1 for the gridview cells, A (in red colour). But the output for .Net 2.0 was A public string strAbsent = "A"; -- modified at 4:13 Monday 21st August, 2006 thanks in advance. Much appreciated.

        V Offline
        V Offline
        vik20
        wrote on last edited by
        #3

        You will have to use HTMLEncaode=false Here is a post telling the reason http://vikramlakhotia.com/Post.aspx?postID=5 Vikram Lakhotia

        B 1 Reply Last reply
        0
        • E eggsovereasy

          Could you please rephrase your question. As it stands all I have is what the output is in .NET 2.0, for which I have no context, and "Why can't I do this in .net 2.0?". Why can't you do what? What worked fine in 1.1? What is wrong with the output from 2.0?

          B Offline
          B Offline
          blurMember
          wrote on last edited by
          #4

          In the past, in .Net 1.1 I have a datagrid and I binded my data using datatable, dataset etc. I have set earlier public string strAbsent = "A"; In some column the output will show A in red colour in the datagrid. Now, I am migrating the project to .Net 2.0. I have a gridview and I binded my data using datatable, dataset etc. But it appears that the output A is no longer in red colour but instead it shows exactly the html tags: A thanks in advance. Much appreciated.

          1 Reply Last reply
          0
          • V vik20

            You will have to use HTMLEncaode=false Here is a post telling the reason http://vikramlakhotia.com/Post.aspx?postID=5 Vikram Lakhotia

            B Offline
            B Offline
            blurMember
            wrote on last edited by
            #5

            How can i set htmlencode="False" when im not using any boundcolumns? Is there any way to set A to red colour.

            thanks in advance. Much appreciated.

            V 1 Reply Last reply
            0
            • B blurMember

              How can i set htmlencode="False" when im not using any boundcolumns? Is there any way to set A to red colour.

              thanks in advance. Much appreciated.

              V Offline
              V Offline
              vik20
              wrote on last edited by
              #6

              u can use Item Style template to give it colour. Vikram

              B 1 Reply Last reply
              0
              • V vik20

                u can use Item Style template to give it colour. Vikram

                B Offline
                B Offline
                blurMember
                wrote on last edited by
                #7

                Sorry maybe I did not explain clearly. The above html tags was from the codebehind. how can I edit the item-template when I would not know where the letter A will appear in the gridview. ------------------------ | |A | | | | | | | | | | A| | | | | | | | | | | | | | | |__|__| A|__|__|__| Some other letter will appear at the blank cells in the gridview. My purpose is to highlight to user, A with red colour so it catch reader eyes to notice the number of As. -- modified at 14:10 Tuesday 22nd August, 2006 thanks in advance. Much appreciated.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups