linq to entities - Asp.net dynamic controls from l2e -
g'day, have aspx page has html stored in sql server 2008 table uses linq entities retrieve & display in placeholder on page. displays correctly except asp button not display. viewing source of page shows button there not on page.
page = page.replace("!loginbutton!", "< asp:button id='login' text='login' runat='server' />")
how display?
thanks.
whatever code replacing !loginbutton! .aspx code. not pure html display button.
when asp.net render page asp:button converted html <input type="button" .....
appropriate javascript functions(for postback).
in case if want see button postback event need write
page = page.replace("!loginbutton!", "< intput type='button' id='login' text='login'/>")
i hope work.
Comments
Post a Comment