Category Archives: Javascript

Embedding a JavaScript File as a Resource

Last few days I was on vacation, last day I joined back in my company @ Kerala, and now I am assigned to a ASP.Net application. In the current application, I have to create a web custom control, and in … Continue reading

Posted in .Net, .Net 3.0 / 3.5, ASP.Net, Javascript, Visual Studio | Leave a comment

Google chart API – Introduction

Google.com introduced a new API for charting purposes. You can get more information about the Google Chart API on this site. It is very simple and powerful charting api. And you can pass the parameters as query strings and the … Continue reading

Posted in .Net, Javascript | Leave a comment

Display Please Wait While the Page Refreshes

While uploading large files, it is nice to have a “Please wait…” text displaying on the button. You can simple achive this using ClientScript.GetPostBackEventReference method. this.uxUpload.Attributes.Add(“onclick”, “this.value=’Uploading… please wait’; this.disabled=true;” + ClientScript.GetPostBackEventReference(this.uxUpload,”")); The GetPostBackEventReference injects the __doPostBack method and also … Continue reading

Posted in .Net, Javascript | Leave a comment

WebForm_DoPostBackWithOptions

Signature for WebForm_DoPostBackWithOptions with descriptive parameter names. WebForm_DoPostBackWithOptions(WebForm_PostBackOptions(eventTarget, eventArgument, validation, validationGroup, actionUrl, trackFocus, clientSubmit))  Thanks to http://technomonk.spaces.live.com/

Posted in .Net, Javascript | 5 Comments

Error : WPSC is undefined

While playing with custom master page file in WSS 3.0, suddenly my Picture Library’s was stopped working.  Getting some javascript error like “WPSC is undefined”. I am getting this error only in the picture librarys. Suddenly I found I have … Continue reading

Posted in .Net, Javascript, sharepoint | Leave a comment