Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write into chrome/ie/ff f12 console from c# asp.net application code behind

How can I reproduce JavaScript's console.log() functionality from code-behind in ASP.NET web application?

like image 280
codemonkeyliketab Avatar asked Jan 29 '16 20:01

codemonkeyliketab


1 Answers

Surprised this hasn't been given before but this works for me in Code Behind with Chromes console:

Response.Write("<script>console.log('opened window');</script>")
like image 75
Joel Avatar answered Oct 05 '22 12:10

Joel