469,140 Members | 1,204 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,140 developers. It's quick & easy.

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 1045
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Yama | last post: by
1 post views Thread by Newton | last post: by
4 posts views Thread by Ben Amada | last post: by
3 posts views Thread by Ronald S. Cook | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.