Posts Categorized: Javascript

A collaboration White Board using HTML 5 and SignalR

Posted by & filed under .Net 4.0, ASP.Net, CodeProject, Javascript.

It is very simple and light weight collaboration white board using HTML5 canvas API, JQuery and SignalR. Users can draw together in the white board. Client side implementation The client side implemented using HTML5 Canvas element and JQuery which helps users to draw lines and shapes. The HTML5 <canvas> element is used to draw graphics, [...]

WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for ‘jquery’

Posted by & filed under .Net, ASP.Net, CodeProject, Javascript, Miscellaneous.

Today while working on ASP.Net web application in VS Express 2012 for Web, I got a strange error like this. It was strange because I just added some basic components like TextBox, Requiredfield Validator, and validation summary controls only. Later I found one Microsoft Connect issue. And according to the connect website we can fix [...]

How to access page methods from JQuery

Posted by & filed under .Net, .Net 4.0, ASP.Net, Javascript.

Most of the time to make web page ajax, developers were using UpdatePanel with Script Manager and sometimes (most of the time in my experience) the update panel will affect the performance of the Page. One of the project I used script manager and Pagemethods for the ajax implementation. The current project I am working, [...]

How to access javascript from WebBrowser control

Posted by & filed under .Net, Javascript, Windows Forms.

We can invoke any javascript function from windows application using InvokeScript method. Here is my javascript function. And we can call this function like this from C# It will show a MessageBox with text 30. You can also call C# function / methods from javascript also. You need to decorate the class using ComVisible attribute. [...]

How to show confirm dialog before user closing browser tab or window

Posted by & filed under ASP.Net, Javascript, Miscellaneous.

Recently in ASP.Net forums, I found a question like how to show an alert box before user closing or leaving browser window or tab. You can find the similar dialog, in StackOverflow.com , when you are started answering a question and then trying to close window / tab or navigating from it without submitting the [...]