Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 181319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:44:33+00:00 2026-05-11T14:44:33+00:00

I am writing an application that requires that my customer can layout their input

  • 0

I am writing an application that requires that my customer can layout their input forms in which ever way they choose.

I would like to use an HTML template with placeholders, and then replace these with secified .NET controls at runtime:

<table style='width: 100%;'> <tr>     <td colspan='2'>         <fieldset title='Customers Template' >             <table style='width:100%;'>                 <tr>                     <td width='140'>                         Policy Number:</td>                     <td width='150'>                         $$Policy Number$$</td>                     <td colspan='2' rowspan='3' valign='top'>                         Type 1:<br />                         $$Type 1$$</td>                     <td rowspan='3' valign='top'>                         Info:<br />                         $$Info$$</td>                     <td rowspan='3' valign='top'>                         Problems:<br />                         $$Problems$$</td>                 </tr>... 

So I want to find and replace my $$xxx$$ text with various .NET controls, depending on the datatype of the field being added, at runtime.

Any suggestions on good ways to approach this?

Thanks, Mark

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:44:34+00:00Added an answer on May 11, 2026 at 2:44 pm

    Replace your $$xxx$$ blocks with <asp:PlaceHolder> controls.

    At runtime you can parse the template

    — In the most simplest case, you can require the template be valid xhtml, then you can simply use the .NET XML APIs to iterate through all the ChildNodes of the XmlDocument. From each element build the appropriate ASP.NET Server control.

    For a more complex (and complete HTML parser) see http://www.developer.com/net/csharp/article.php/2230091

    As you parse, wherever you see <asp:PlaceHolder> – replace that with your logic that defines your template.

    Tutorial: http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=752

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a Java application that requires access to a database, which is
I am writing a web application that requires user interaction via email. I'm curious
I'm writing a J2SE desktop application that requires one of its components to be
im writing an application that downloads and installs addons for programs which needs to
I am writing an application that requires root user privileges to execute. If executed
I am writing an encryption application that requires a 64 bit key. I am
I'm writing a c# application that requires user authentication. When the user hits the
I am writing a web2py application that requires summing dollar amounts without losing precision.
I am writing an application in C# that requires me to create an Array
I am writing an android application that requires a large amount of bandwith to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.