Dynamically add aspx snippet into a given aspx page

C

ColdAir

Hi,

I would like to add a dynamic aspx snippet, into the currently designed aspx
page.

For ex.,

I would like to add the following

'<asp:LinkButton id="LinkButton4" runat="server">Masters</asp:LinkButton><br
/>'

(which is generated through xsl transformation dynamically.) to the
existing designed aspx content.

At the same time, I would like to have the html source to be with anchors
(as usual for linkbuttons) without any asp tags in the final html when we
are browsing.

Finally, I would like to add event for dynamic aspx snippet. How to go about
it ?

Thanks


ColdAir
 
J

JeffP->

I'm not sure that I'm understanding your dilema or not, but I often use an
action enum and control visibility function to control what is shown on the
page. I then reuse controls for may functions. For example on a client
profile & order form, if Rental or Sale is choosen then drop down lists offer
the appropriate choices. The lookups/drop down list content is stored in the
database and maintained on an admin page, so as the form loads it says what
controls do I have, then each control is filled appropriately. This makes
quite a few round trips to the server but keeps the number of pages down and
makes for a scaleable solution.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top