css - How to get div tag(runat="server") value in asp.net codebehind as a innerhtml format? -


i declared div tag following:

<div id="txt" runat="server" clientidmode="static"> </div> 

i using txt textbox. have whatever entered "txt" in codebehind innerhtml format. tried following code shows innerhtml tag only. doesnt shows value.

objplemailtemplate.emailtemplatebody = txt.innertext; 

please me

objplemailtemplate.emailtemplatebody = txt.innerhtml; 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -