aspx page\[code\]<asp:UpdatePanel ID="asypnl" runat="server"> <ContentTemplate> <asp:Wizard /> <StartNavigationTemplate> </StartNavigationTemplate> <FinishNavigationTemplate> </FinishNavigationTemplate> <WizardSteps> <asp:WizardStep ID="WizardStep1" runat="server"> <asp
anel runat="server" ID="pnlGiftInfo"> <td> <asp
ropDownList ID="ddlPaymentOption" runat="server"> <asp:ListItem Selected="True" Value="http://stackoverflow.com/questions/12644923/0">Gift</asp:ListItem> <asp:ListItem Value="http://stackoverflow.com/questions/12644923/1">Pledge</asp:ListItem> </asp
ropDownList> </td> </asp
anel> </asp:WizardStep> </WizardSteps> <asp
anel runat="server" ID="pnlOutput"> <%-- Content comes from the database OutputHtml Colunm--%> </asp
anel> </ContentTemplate></asp:UpdatePanel>\[/code\]DataBase Column \[code\]<p>Thank you for your <span id "ddlGift">gift</span><span id "ddlPayment">payment</span> of {Amount} to the {Comm}<script type="text/javascript" language="javascript"> var p = document.getElementById("DropDownPayment"); var eledropdownPayment = p.options[p.selectedIndex].value; var ddlGift = document.getElementById("Gift"); var ddlPayment = document.getElementById("ddlSelectionPledge"); if (eledropdownPayment == "0") { ddlGift.style.display = "block"; ddlPayment.style.display = "none"; } else { ddlGift.style.display = "none"; ddlPayment.style.display = "block"; }</script>\[/code\]After submitting the final step in the wizard ctrl I am getting the result to display using the Html tag structure built inside the databse. Everything is working fine except the script in the database its not executing so I can see both the span text.I just want to select the span as per the dropdown selection.I cannot write the script in the aspx as these span tags are not there at the page load event, they get inside the output panel on completion of the 2 steps in the wizard ctrl.I need some way to just display the sapn as per the drop down selection...Thanks. Sorry for the Long description.





