Using .NET’s Register Script methods with jQuery’s $(document).ready() 24 July 2009 NovoGeek (2) In ASP.NET web apps, most of the times we would need to call JavaScript functions in page_load event of code behind, for various valid reasons. In such scenarios, we simply use .NET’s Register Script methods for emitting JavaScript code, which is absolutely fine. If you are using jQuery, ... [More]
Filtering .NET 3.5 returned JSON with jQuery 16 July 2009 NovoGeek (0) In .NET 3.5, when a Web service class is decorated with “ScriptService” attribute, the web service returns data in JSON format [MSDN]. I have demonstrated this with a simple example in the article, Passing JSON objects in .NET 3.5. Let us consider that our “person” ... [More]
Customizing jQuery plugins for "d parameter" in .NET 3.5 JSON response. 30 June 2009 NovoGeek (2) I was trying to use jqGrid, an excellent jQuery based grid, for building a zero postback page. It's configuration is very simple, similar to flexigrid, but has many additional features like inline editing, subgrids etc. What jqGrid expects is a JSON response having few objects and arrays, ... [More]
Passing JSON objects in .NET 3.5 08 June 2009 NovoGeek (0) In my previous post, I have explained how to pass complex types using jQuery and JayRock in .NET 2.0 framework. I was digging a bit into Dave’s example (using complex types to make calling services less complex) in .NET 3.5 framework, to find how easier JSON serilaization/deserialization can b... [More]
Passing complex types to service calls using jQuery & JayRock 28 May 2009 NovoGeek (0) Scenario: Consider a web form having several fields, whose values are to be submitted to the server through an AJAX call. This can be easily achieved using jQuery’s $.ajax(), passing all the form elements (like first name, last name, city etc) as parameters to the AJAX call. ... [More]
Beware – jQuery unbind() vs removeAttr() 18 May 2009 NovoGeek (1) Here is a jQuery bug which suck few hours of my time: unbind() works only on events attached using jQuery. removeAttr() does not work on events added using jQuery Confusing? Here is the scenario which explains better: I have a server side asp button(btnTest), for which an &... [More]
NovoGeek.com!! 10 May 2009 NovoGeek (2) Restructured my site www.novogeek.net. Moved my technical blog from kris.novogeek.net to the root. Created a new subdomain - Labs.NovoGeek.Net for my little experiments. Placed only few important demos as of now. Will slowly move all my silly/stupid code snippets there :) Update(11th May, 2009)... [More]
Converting ASP.NET DataTable to JSON using JayRock 22 April 2009 novogeek (3) Beginners using jQuery plugins and jQuery AJAX with ASP.NET get stuck with one common problem-converting datatable to JSON. This conversion is necessary since JSON can be easily parsed in JavaScript and also most plugins expect data in JSON format, though that can be altered. On googling, I fo... [More]
Performance improvement in browsers-John Resig 03 April 2009 novogeek (0) A beautiful presentation given by John Resig, creator of jQuery, at Google. John covers the latest improvements in the modern browsers namely Firefox 3.1, Safari 4.0, Internet Explorer 8.0, Google Chrome and Opera 10. You can find the video presentation here @ Youtube and the pdf format of the prese... [More]
How to use ASP .NET without Javascript? 25 March 2009 novogeek (0) In ASP.NET, we are used to drag/drop server controls and quickly finish the task, though we do not concentrate much on how they work. The problem arises when JavaScript is disabled in the user's browser, as some of these controls do not work. Also, if you have rich AJAX features in you... [More]