Kind of feeling itchy since couple of weeks for not being able to find out why javascript or .js files not loading properly for static html file in chrome and firefox, but works absolutely fine in IE.
Ok now used browser debugging tools, IE show the .js files loaded successfully and works fine. But chrome/forefix shows script were loaded like gibberish (chineese,japanese something like that). Something fishy going on, but how...
public string aboutme {
var known = { { "C#" , "Javascript" }, { "ASP.NET", "MVC" } };
return known.ToJson();
}
Friday, 16 September 2011
Tuesday, 13 September 2011
JQuery dialog inside update panel generating duplicate elements
JQuery dialog is a nice feature provided by JQuery UI, having said care should be taken when using dialog boxes inside an update panel.
Consider a dialog box is inside an update panel as shown below :-
Blogger Name
Blogger email
Now javascript for displaying the dialog
var btnAddBloggerData= $("#btnAddBloggerData");
btnAddBloggerData
.unbind("click")
.bind("click", function () {
...
Labels:
ASP.NET Ajax,
JQuery UI
Monday, 12 September 2011
Visual studio 2010 run post build events based on debug or release mode
Using a batch file that should be run after post build is a common task. But some actions are not required in debug mode and some times in release mode.
To achieve this create 2 batch files
1. debugpostbuild.bat
2. releasepostbuild.bat
Update post-build event command line as follows:-
1. goto VS2010 -> right click on your project -> properties -> Build Events
2. copy below code
if $(ConfigurationName) == Release...
Labels:
VS 2010
Thursday, 1 September 2011
Structure of jqGrid after generating html and its contents

Something which might be useful for everyone using jqgrid.
JQGrid HTML structure:
for short form refer to the following link stackoverflow.com.
Errors using inadequate data are much less than those using no data at all.
Charles Babbage...
Labels:
JQGrid
Subscribe to:
Posts (Atom)