How I can use both C# and Java script in one place
I need to know to use both C# and Java script in one visual 2010
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sunny SharmaPosted Jul 1, 2013, 3:29 AM
not completely but yes, for Web Browser Control, if you want to do DOM element manipulations like you do with javascript or jquery, there are libraries out there enabling you to do so. One I know and use preferably is CsQuery. It allows me to query DOM elements for the document contained inside a Web Browser Control in Win Form.
Basically my intention was to know if Kana wants to apply JavaScript on a Web Browser control inside a WinForm or it's a web app. Hope I've made myself clear :)
Correct me if I'm wrong.
Cheers!
Jignesh TrivediPosted Jul 1, 2013, 2:39 AM
can we use javascript with winform application?
have you any example link for same?
as per my knowledge, we can use javascript with only web application.
Sunny SharmaPosted Jul 1, 2013, 2:09 AM
Please mention if you want to use JavaScript in Win Forms or Web Forms.
Jignesh TrivediPosted Jun 30, 2013, 10:58 PM
hi,
you mean say C# and javascipt code in one file?
yes you can write c# and javascript code with in aspx file.
or you can write C# code with <% %> in aspx file..
<% if (this.MyTextBox.Visible) { %>
Only show when myTextBox is visible
<% } %>
same thing you can write for javascript in aspx file in Script tag.
hope this will help you.