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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Control Customization via XML

Control Customization via XML

Scheduled Pinned Locked Moved .NET (Core and Framework)
xmlarchitecturehelptutorialquestion
8 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.
  • M Offline
    M Offline
    michael_jhons
    wrote on last edited by
    #1

    Hi everybody, i'm currently developping a website using 3 tier architecture, i've been requested that the controls of the presentation layer should be loaded and customized via an XML file. To behonest i'm new to XML and I made some researches and i didn't succeeded. Could anyone help me with this either by providing an example or some document? shold i use teh web.config file? thank you in advance for your usual help

    E 1 Reply Last reply
    0
    • M michael_jhons

      Hi everybody, i'm currently developping a website using 3 tier architecture, i've been requested that the controls of the presentation layer should be loaded and customized via an XML file. To behonest i'm new to XML and I made some researches and i didn't succeeded. Could anyone help me with this either by providing an example or some document? shold i use teh web.config file? thank you in advance for your usual help

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

      I assumed you referred to ASP.NET controls (you mentioned web.config) : Dynamic ASPNET Controls using XML

      M 1 Reply Last reply
      0
      • E Estys

        I assumed you referred to ASP.NET controls (you mentioned web.config) : Dynamic ASPNET Controls using XML

        M Offline
        M Offline
        michael_jhons
        wrote on last edited by
        #3

        thank you for your answer, is there any other way without using the XSLT file ?

        E 2 Replies Last reply
        0
        • M michael_jhons

          thank you for your answer, is there any other way without using the XSLT file ?

          E Offline
          E Offline
          Estys
          wrote on last edited by
          #4

          Sure, you could write the parsing and interpreting of the XML yourself (C# whatever) and incorporate it in your application. However XSLT is specific to XML input so it's a natural candidate if you want to generate HTML on the fly. The example I sent you uses a pattern. If your pages do not exhibit such patterns it will become harder to customize using XML.

          michael_jhons wrote:

          the controls of the presentation layer should be loaded and customized via an XML file

          That's kind of an unbounded requirement. What must be customized?? Position? Colour? Size? Maybe just stylesheets will do the trick for you. Dependent on the actual requirements you can make a choice how your solution will look like.

          M 1 Reply Last reply
          0
          • E Estys

            Sure, you could write the parsing and interpreting of the XML yourself (C# whatever) and incorporate it in your application. However XSLT is specific to XML input so it's a natural candidate if you want to generate HTML on the fly. The example I sent you uses a pattern. If your pages do not exhibit such patterns it will become harder to customize using XML.

            michael_jhons wrote:

            the controls of the presentation layer should be loaded and customized via an XML file

            That's kind of an unbounded requirement. What must be customized?? Position? Colour? Size? Maybe just stylesheets will do the trick for you. Dependent on the actual requirements you can make a choice how your solution will look like.

            M Offline
            M Offline
            michael_jhons
            wrote on last edited by
            #5

            thank you for your help, i'll give it a try

            1 Reply Last reply
            0
            • M michael_jhons

              thank you for your answer, is there any other way without using the XSLT file ?

              E Offline
              E Offline
              Estys
              wrote on last edited by
              #6

              As an afterthought, did they/you perhaps mean XAML? Then your UI would be based on SL.

              modified on Thursday, January 21, 2010 2:58 PM

              M 2 Replies Last reply
              0
              • E Estys

                As an afterthought, did they/you perhaps mean XAML? Then your UI would be based on SL.

                modified on Thursday, January 21, 2010 2:58 PM

                M Offline
                M Offline
                michael_jhons
                wrote on last edited by
                #7

                requesters only mentioned XML, but of course i can use any methode that lead to a successful result thanks

                1 Reply Last reply
                0
                • E Estys

                  As an afterthought, did they/you perhaps mean XAML? Then your UI would be based on SL.

                  modified on Thursday, January 21, 2010 2:58 PM

                  M Offline
                  M Offline
                  michael_jhons
                  wrote on last edited by
                  #8

                  Dear Estys, i just finished applying the method you provided, i faced a little problem, it's while i'm loading,i'm also populating the radioButtonlist from a datatble, the RadiobuttonList is created using the xslt file,so an error is shoing to all using controls in the Default.aspx.cs file is "the name 'control's ID' does not exist in the current context" so how could i use controls in this context? thank you again for your help.

                  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