I may have bricked myself into a corner here by saying, "Sure, that's no problem !"
My C# Framework 2.0 app I'm building with VS 2005 reads a policy document on our sister organization's site for display on our own site. The document originates as a Word doc at the other organization's URL; my page reads it via StreamReader (since my boss said no to iFrames and security policy won't allow us to have Word on the server) into a literal control on my page.
My boss wants me to move the button to page bottom--for a bit of assurance users have read the policy before signing via button click.
Trying to relocate the button, I encountered the problem: Having the button at page top--with the dynamically-generated literal control below--is not the same as putting the button below this created-on-the-fly control. In the latter case, which my boss wants, I see the button's HTML code if I use View Source--but no button appears in presentation.
I'm a C# newbie. Is there maybe a late-binding solution or other expedient way to get that button to appear below the policy before we demo for the director ? Could I put some sort of placeholder on the page that could grow, and locate the button below at design time?
Your counsel appreciated.
From Page Load:
//the string "sbuild" compiled from the doc goes into the literal control
//Now that the dynamic-content control is generated, I guess I should put the button after it
//sequentially in the code (I already tried having it in the .aspx file, but that only works if
//the button is to appear ABOVE the policy; I need it below)
string strButton =
"<center><asp:Button ID=\"btnSignIt\" runat=\"server\" Text = \"I have read and accept the terms of the Policy\" OnClick = \"btnSignIt_Click\" ></asp:Button> </center>"