Community discussion forum

JavaScript in ASP.NET

  • 1 year ago

    Hi,

    Following JavaScript line returns a string and I want to store this variable into String variable of C# Is it possible if then please help me. 

    var htmltext=document.getElementById(rteName).contentWindow.document.body.innerHTML ;


  • 1 year ago

    This is a pretty difficult method, which I'm not overly confident about advising, but check out this link about ClientScript registration.

  • 1 year ago

     keep that value in a hidden field and then access it from c# code.

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback