Dec
1

Adding Java Script to the SharePoint WebPart

There are two ways, you can place a javascript in your webpart.Scenario –1Let’s consider, you have a javascript file with some javascript functions. You want to call one of the client side functions inside the webpart code. Here goes the solutionJava script File----------------------------------------------------------------------function do_confirmService(ID){var textbox = document.GetElementByID(ID);alert(textbox.value);}------------------------------------------------------------------------------CodePlace ...
Nov
24

Communicate cross Page WebParts using Query Strings

If you want to communicate with a webpart which is not in the current page, then you got a problem. If you want to pass a set of rows to the webpart, then go for cross webpart connections. Details of cross webpart Page connection can be found in below linkhttp://msdn.microsoft.com/en-us/library/ms469765.aspxBut If you have less number of parameters to pass, then I suggest you go for Query strings. In this article, I am describing how to work with query strings.1.Redirecting the user from the donor webpart page to the Page having Acceptor webpartstring desiredURL = "http://www.moss2k:8080/ITServices";//Replace desired Url with your page url of the acceptor webpartstring business= “Health”;this.Page.Response.Redirect(WebUrl ...