Blogger Widgets
  • Sharing Photos using SignalR
  • TFS Extenstion - allows copy work items between projects
  • Displaying jquery progressbar with ajax call on a modal dialog
  • Managing windows services of a server via a website
  • Exploring technologies available to date. TechCipher is one place that any professional would like to visit, either to get an overview or to have better understanding.
  • SignalR

    Sharing Photos using SignalR

Search This Blog

Tuesday, 30 November 2010

CSS Cursor as pointer not working

Working on website development for quite a bit now. Just had come across a style sheet issue in a web page. With the following style sheet:- .linkbtn { cursor:pointer; text-decoration: underline; } What would anyone expect for this simple html as : Find Certainly to show a different cursor when user hovers on the text. Yes it works on IE !! but not on firefox & chrome. Ok lets debug and see what's happening, the...

Tuesday, 23 November 2010

Filename validation in VC++

Validating files names should not be very difficult, Is it? . Yes, it is if you trying to do in VC++. Here is a small snippet of code that helps :- CString fileName = "test:11"; for (int i = 0; i < fileName.GetLength(); i++) { if (!(PathGetCharType(fileName[i]) & GCT_LFNCHAR)) { bValid = FALSE; break; } } Do not forget to include "Shlwapi.h" “If people never did silly things, nothing intelligent would ever get...

Friday, 12 November 2010

Display progress bar inside JQGrid

Considered displaying a JQuery progress bar inside JQGrid. Here is a small example how this can be achieved. Consider the json data returned by a web service is as follows:- { "page":"1", "total":1, "records":"5", "rows":[ {"id":"1","cell":["1","Scott","US","10"]}, {"id":"2","cell":["2","Charles","UK","20"]}, {"id":"3","cell":["3","Dan","Astralia","30"]}, {"id":"4","cell":["4","Chris","Canada","25"]}, {"id":"5","cell":["5","Paul","China","80"]}...

Thursday, 11 November 2010

Display Icons in JQGrid

JQGrid is one of the best plug-in to display data as grid. Using JQGrid is very simple and easy to use. In this article we will look into displaying icons in JQGrid. Consider the following code that makes an ajax call: jQuery("#grid").jqGrid({ url:'GetDetails.asmx?team=All', datatype: "json", colNames:['ID','Team', 'Name', 'Designation'], ...

Wednesday, 10 November 2010

Getting 401 Unauthorized error consistently with jquery call to webmethod

ASP.NET with JQuery provides a flexible method of making ajax calls via a webservice. Making an ajax call using JQuery API would be as simple as $.ajax({ url: "TestService.asmx/Test", data: "{'JSONData':'" + JSON.stringify(id) + "'}", // For empty input data use "{}", dataType: "json", type: "POST", contentType: "application/json", complete: function (jsondata,...

Monday, 1 November 2010

Unable to debug published ASP.NET website

Have been struggling to debug ASP.NET application but had no success what so ever. For time being drop the thought of publishing the website using Visual Studio (2005/2008/2010). Lets start with the Manual process :- 1. Create a folder under C:\inetpub\wwwroot for eg: MyWebsite 2. Goto IIS, right click on Default Website -> Select Add application 3. Specify Alias, select location, select the required application pool and...

Server.GetLastError() giving error as 'File does not exist.'

In general Server.GetLastError() is the more used way of getting the last generated error. But have you ever got an error message and does not exactly know what went wrong. Such as the error below:- {"File does not exist."} which has actually occurred in the source code at protected void Application_Error(Object sender, EventArgs e) { HttpException Error = Server.GetLastError() as HttpException; Session["Error"] = Error; ...
Copyright © 2013 Template Doctor . Designed by Malith Madushanka - Cool Blogger Tutorials | Code by CBT | Images by by HQ Wallpapers