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!", "&lt; intput type='button' id='login' text='login'/&gt;") 

i hope work.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -