473,320 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Redering asp.net webform dynamically

Whether there is any available libraries to render an asp.net webform
dynamically at run time, from an xml definition?
Like

<Page>
<control class="System.Web.UI.WebControls.Textbox" id="Textbox1">
<property name="backcolor" value="red" />
</control>
</Page>

Should be rendered in the webform.

Thanks a lot,
Anoop
http://amazedsaint.blogspot.com
Mar 24 '07 #1
3 1128
What exactly are you trying to accomplish? Literally everything on your page
can be "dynamically" loaded when the page is built; that's the concept
behind the control structure of the page being a tree: you can add/remove
nodes as you like.

Having something which builds a page out of XML would be just as useful as
something which builds a page out of ASP.Net markup....
--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog

"Anoop M" <am*********@gmail.comwrote in message
news:eK**************@TK2MSFTNGP02.phx.gbl...
Whether there is any available libraries to render an asp.net webform
dynamically at run time, from an xml definition?
Like

<Page>
<control class="System.Web.UI.WebControls.Textbox" id="Textbox1">
<property name="backcolor" value="red" />
</control>
</Page>

Should be rendered in the webform.

Thanks a lot,
Anoop
http://amazedsaint.blogspot.com

Mar 24 '07 #2
I agree with Ben that dynamic code generation in ASP.NET is usually not a
good idea.

However, for gigantic projects the idea has its merits. If you're
determined to go this route then Kathleen Dollard has written a book that
will likely be helpful to you:
http://www.knowdotnet.com/articles/c...iondotnet.html

http://www.amazon.com/gp/product/cus...=ATVPDKIKX0DER

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net


"Anoop M" <am*********@gmail.comwrote in message
news:eK**************@TK2MSFTNGP02.phx.gbl...
Whether there is any available libraries to render an asp.net webform
dynamically at run time, from an xml definition?
Like

<Page>
<control class="System.Web.UI.WebControls.Textbox" id="Textbox1">
<property name="backcolor" value="red" />
</control>
</Page>

Should be rendered in the webform.

Thanks a lot,
Anoop
http://amazedsaint.blogspot.com
Mar 24 '07 #3
Actually, I've to build a dynamic UI module in a project - where the user can define the form structure at run time, and bind to fields in a web service.

The schema of the dataset accepted by the webserice is not known during design time. Hence, the UI should also change based on the fields in the dataset accepted by webservice.

Thanks a lot,
Anoop
http://amazedsaint.blogspot.com
Mar 29 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: teddy | last post by:
I am trying to create a bookstore WebApplication using c#. I can display the books (obtained from sql server) on a table in a WebForm. At the end of each row, I would like to add "add to cart"...
1
by: Yama | last post by:
Hi, I have 20 javascript files I would like to dynamically write to my rendered web page. What I would like to do is instead of saving them into a database table save them into a XML file then...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
1
by: Newton | last post by:
Hi, I am working with ASP.NET using C#. I put some labels, buttons and editboxes on a webform. But i need how to change a background color of the webform from the source code. In windows...
2
by: R Duke | last post by:
I have tried everything I can think of to change the visible property of a design time created control from a dynamically created control's command event handler. Here is the scenario. I have...
6
by: Skeptical | last post by:
Hello, I am trying to embed html output into my webform but could not figure out how to so far. The form will execute a Perl script with some parameters, and script will output some html...
4
by: Ben Amada | last post by:
Hello, I have a user control which will be dynamically loaded from one of two parent ASPX webforms. Within the user control I'd like to be able to access a property from the parent webform. ...
1
by: VMI | last post by:
How can I transfer some text from a Textbox in a popup window to the main webform that opened that popup? The popup webform will have some type of Button that the user will click in order to...
3
by: Ronald S. Cook | last post by:
I would like to put a label (or any control) on a webform all from the code. I.e. something like this: protected void Page_Load(object sender, EventArgs e) { Label TestLabel = new Label();...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.