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. General Programming
  3. XML / XSL
  4. Generation of inline code in ASP.NET by XSL [modified]

Generation of inline code in ASP.NET by XSL [modified]

Scheduled Pinned Locked Moved XML / XSL
csharpasp-netwpfwcfxml
5 Posts 2 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.
  • W Offline
    W Offline
    Wild Rover
    wrote on last edited by
    #1

    I'm trying to create ASPX page with DataGrid, that includes template column, which looks like TextBox. I order to enable data binding to textbox I'm using the following syntax: using XSL. I supposed, the XSL code should be the same, while escaping '<','>' etc.: . In this case I'm getting the following error: Parser Error Message: Code blocks are not supported in this page, because it is not compiled. Please, assist. Alex -- modified at 10:06 Wednesday 29th August, 2007

    G 1 Reply Last reply
    0
    • W Wild Rover

      I'm trying to create ASPX page with DataGrid, that includes template column, which looks like TextBox. I order to enable data binding to textbox I'm using the following syntax: using XSL. I supposed, the XSL code should be the same, while escaping '<','>' etc.: . In this case I'm getting the following error: Parser Error Message: Code blocks are not supported in this page, because it is not compiled. Please, assist. Alex -- modified at 10:06 Wednesday 29th August, 2007

      G Offline
      G Offline
      George L Jackson
      wrote on last edited by
      #2

      It is objecting to the "<%# ... %>" code which gets placed in the .aspx page before it gets compiled. By the time you place your code in the page, the page has already been compiled. Also, why place a textbox in this way when you can do it statically in design mode?

      "We make a living by what we get, we make a life by what we give." --Winston Churchill

      W 1 Reply Last reply
      0
      • G George L Jackson

        It is objecting to the "<%# ... %>" code which gets placed in the .aspx page before it gets compiled. By the time you place your code in the page, the page has already been compiled. Also, why place a textbox in this way when you can do it statically in design mode?

        "We make a living by what we get, we make a life by what we give." --Winston Churchill

        W Offline
        W Offline
        Wild Rover
        wrote on last edited by
        #3

        Is there any workaround? Is it possible to implement this in code-behind file?

        G 1 Reply Last reply
        0
        • W Wild Rover

          Is there any workaround? Is it possible to implement this in code-behind file?

          G Offline
          G Offline
          George L Jackson
          wrote on last edited by
          #4

          There are a some ways but you have to stay away from the code blocks. You may need to as your question in the ASP.NET Forum to get a better answer, but you can use XSL in the creation of a custom control or during the binding processs you can add content to a cell or even modify the whole row. However, you have to stay away from coding blocks.

          "We make a living by what we get, we make a life by what we give." --Winston Churchill

          W 1 Reply Last reply
          0
          • G George L Jackson

            There are a some ways but you have to stay away from the code blocks. You may need to as your question in the ASP.NET Forum to get a better answer, but you can use XSL in the creation of a custom control or during the binding processs you can add content to a cell or even modify the whole row. However, you have to stay away from coding blocks.

            "We make a living by what we get, we make a life by what we give." --Winston Churchill

            W Offline
            W Offline
            Wild Rover
            wrote on last edited by
            #5

            Thanks anyway :)

            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