| Maryann's profileItems in a sandboxPhotosBlogLists | Help |
|
October 09 Getting started with SharePoint Object ModelIf you are working on the SharePoint Object model, look through this msdn link which explains the architecture of the object model.
For those who are familiar with the sharepoint blocks, the images below give an overview of the architecture.
Windows SharePoint Services server architecture
In the above diagram, in point 8, each SPSite site collection has an architecture as shown below:
Using Workflow Info in Custom ActivityHey folks,
Found this really good link that shows how to get useful information such as the workflow which is executing now, the list on which the workflow is attached, its history list, the item on which this workflow was triggered, etc.
The table below was taken from Phil Allen's article.
You can get the workflow details from the SPWorkflowActivationProperties object.
SPWorkflow currentWorkflow = __ActivationProperties.Workflow;
SPWorkflow exposed the following members: http://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.workflow.spworkflow_members.aspx
October 01 En Garde!Found these links on script exploits that can be made in webpages.
Quoting from the 1st link:
"The primary defense against scripting exploits is to never trust information coming from a user. Assume that any data posted to your application from a browser can contain malicious script.
Similarly, any time that you write a string into a page, you should assume that the string could contain malicious script (unless you programmatically created the string yourself)." Basic Security Practices For Web Applications http://msdn2.microsoft.com/en-us/library/zdh19h94(VS.80).aspx August 13 Me Simpsonized!Have you ever wondered what I would look like as a character on The Simpsons? Never? Not even once?
D'oh! Well, anyway, I would look like this:
You can get yourself sympsonized at http://simpsonizeme.com/ April 30 Debugging custom workflows in Sharepoint 2007To debug a workflow in Visual Studio .Net 2007, you have to attach the debugger to the w3wp.exe process. However, when there has been workflow activity in this process before attaching the debugger to it, the Visual Studio IDE crashes and closes.
One way to get this working without Visual Studio IDE crashing is:
1. Reset IIS
2. Navigate to a SharePoint site (refresh the page so that w3wp process is initiated again)
3. Attach the debugger
4. Start the workflow.
April 13 Spin your screen in Windows XPDid you know? Some graphic card adapters let you spin your screen in Windows XP. PCs with NVIDIA graphic adapters have hotkeys assigned to rotate your screen.
Ctrl + Alt + Left Arrow Key --> Rotate 90 degrees
Ctrl + Alt + Down Arrow Key --> Rotate 180 degrees Ctrl + Alt + Right Arrow Key --> Rotate 270 degreesCtrl + Alt + Up Arrow Key --> Brings the screen back to normal
You can enable/disable/add/remove the hotkeys from your computer's 'Display Properties'.
1. Right click your desktop and select 'Properties'. The 'Display Properties' window opens up.
2. Navigate to the settings tab.
3. Click the 'Advanced' button. A window with your graphics and monitor settings comes up.
4. Navigate to your media acceleration driver tab.
5. Click 'Graphic Properties'.
6. Navigate to 'Hot Keys' tab.
Some graphic card softwares provide an icon in your System Tray for easy navigation.
Not many folks know about this functionality. I myself got to know by chance while trying out Winamp hotkeys.
Its a nice prank to play on unsuspecting folks... Rotate their screens and watch their expressions...
Enjoy! April 03 Using an Infopath 2007 form in Document Information Panel of Word 2007I wanted to add some extra metadata to my Word document and found that Office 2007 supports such an addition. All you need to do is create an Infopath form with the controls that you require and add the form to the Document Information Panel of Word. Usually the methods on the internet tell you how to use forms published in a shared folder or a sharepoint library. I couldn't find any sites that told me how to use my form without requiring a server or the intranet to host my form. I knew it was possible but did not find much on it. I finally got it working and thought of penning it down. So here it is... You can use the form by registering the form on the target machine. The following steps should be taken: InfoPath 2007
Word 2007
Some links I found on this topic: http://office.microsoft.com/en-us/infopath/HA102019671033.aspx http://office.microsoft.com/en-us/infopath/HA101488191033.aspx#4 http://msdn2.microsoft.com/en-us/library/bb251025.aspx February 20 Adding Javascript Events to MenuItem in ASP.NET 2.0In one of my projects, I needed to create a menu with some special visual effects.
I created a Menu menu control and bound it to a sitemap containing a list of the menu items I wanted to display. I created the visual effects using Javascript. Next I needed to add some code to the onmouseover event of each menu item so that they would use the visual effects I had created. I looked in all the places I thought it would be but could not find any ways to do so.
I couldn't add it to the sitemap nor could I add it to the menu item on the MenuItemDataBound event of the Menu control.
After some googling, I found a fix to the issue. I created a StaticItemTemplate for the Menu control and added a label with the onmouseover event in it.
Something like this:
< asp:Menu ID="menuNavigation" runat="server" DataSourceID="SiteMapDataSource1" Width="100%">
<StaticItemTemplate>
<div onmouseover="ShowPreview('<%# Eval( "Text" ) %>')" onmouseout="ShowDefaultPreview()">
<% # Eval( "Text" ) %>
</div>
</StaticItemTemplate>
</asp:Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
Voila! Problem solved!
I got the idea from the following site: http://forums.asp.net/thread/1283910.aspx
Another fix that I found:
The ASP.NET Quickstart Tutorials are a great place for examples on using ASP.NET 2.0. Check it out if you are interested.
February 16 Scripting for Full Text SearchA nice link I found for scripting the Full Text Search of Sql Server 2005.
January 19 Job bluesI want to break free I want to break free I want to break free from your lies Youre so self satisfied I dont need you Ive got to break free God knows God knows I want to break free January 04 Ajax - (Asynchronous JavaScript and XML)Ajax (Asynchronous Javascript and XML) is a wonderful new technology that lets a developer create interactive web pages. Remember how irritating it was when a webpage kept reloading each time you select an option from a dropdown! Well this problem can be solved using AJAX. AJAX lets you refresh only the section of the page that needs to be changed, leaving the rest of the page undisturbed. The intent is to make web pages feel more responsive by exchanging small amounts of data with the server behind the scenes, so that the entire web page does not have to be reloaded each time the user requests a change. December 27 Tis the season to be jolly... Christmas timeIt's the most wonderful time of the year
With the kids jingle belling And everyone telling you "Be of good cheer" It's the most wonderful time of the year It's the hap-happiest season of all With those holiday greetings and gay happy meetings When friends come to call It's the hap- happiest season of all..... Christmas time always makes me sing..... Its the spirit that accompanies this season....
Putting up the star, decorating the house, making sweets, going for midnight mass, singing carols.... its so much fun!!
Makes me wanna sing...
Have yourself a merry little Christmas,
Let your heart be light From now on, our troubles will be out of sight.... So
Deck the halls with boughs of holly Fa la la, la la la Tis the season to be jolly Fa la la, la la la.... October 26 Just a thought in an idle mind! (Holidays)Well... As the title of this blog entry says, what you are going to read now is just a thought in an idle mind... It was Diwali time... I had got 2 days off from work... Monday and Tuesday... So that makes a nice 4-day long weekend... It was during one of the "lazing around sessions" on this weekend that it struck me that I needed to apply for leave for Christmas in advance... That led to a chain of thoughts... "Why isn't Xmas day a holiday at work? What about Good Friday and Easter time? I have to take leave during that time too... And how come we never have a holiday for Eid? (It was Eid on Wednesday) Come to think of it, we never have a holiday for minority festivals... And now, I have so many holidays for Diwali when I could do without them... Not that i don't like holidays... I love them... it would be great if we had holidays like that at Christmas and Easter time too!!! Then I could save my leaves for a vacation... But unfortunately its not in my hands..." So I shrugged and went to see if my mom had made anything interesting to eat! October 16 Moosik in my life (cont.)All you music lovers... check out this site... http://www.radioblogclub.com Streams songs really fast... Quality is quite good too... August 30 Moosik in my Life!Music!!! What would I do without music! I just can't imagine! I spend almost 10 hours a day listening to music and the rest of the time listening to the music in my head. Its such a big influence that every situation I am in brings the lyrics of some song to my head. There's a song to reflect your every mood. You get songs that make you wanna dance, some that make you happy, some that express hope, some that express love, some that express sadness, some that cheer you up when your down. This list could go on and on. You get them in all genres - pop, rock, blues, jazz, country.
These days I'm hung up on 3 doors down, maroon 5 and flipsyde. Some days I like listening to Linkin Park and Limp Bizkit. Some days just feel like listening to oldies. Lobo, Harry Belafonte, Billy Joel.
Its amazing how sound can be so appealing to the senses!
Moral of the story - I love music! August 29 Trips n TreksI love outings. They are so much fun. Give you a real break. I was bitten by the vacation bug when I was a baby |
|
|