Yesterday I tried to delete the SharePoint item in the loop by using item.delete()
Then, I got this error message,
"Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb."
So, I searched at Google and found many people've ever got this problem. I used the solution of Robin's Sharepoint Blog. And it's worked.
However, I got the second one,
"Collection was modified; enumeration operation may not execute."
Then, I searched again. I know from the MBR IT Soluctions web that because I used the foreach loop that is incremented by the SharePoint items which was deleted.
Wednesday, September 12, 2007
Thursday, August 30, 2007
Let's talk about .. MOSS2007-Enable Dubugging
I think you may feel upset when your Web Part got error message like "Unexpected error". I found some info about how to enable debugging. However I never tried it yet. Someone told me that it's theorically fine, but not many people do it. Normally, it's practically okay when try with the computer that set server and client in 1 machine.
This is the instruction to
These are where I got the info from..
http://msdn2.microsoft.com/en-us/library/e8z01xdh(VS.80).aspx
http://blogs.msdn.com/pranab/archive/2007/07/04/how-to-implement-debug-option-in-sharepoint-application-within-vs-2005-with-complete-call-stack-instead-of-custom-error-page.aspx
This is the instruction to
These are where I got the info from..
http://msdn2.microsoft.com/en-us/library/e8z01xdh(VS.80).aspx
http://blogs.msdn.com/pranab/archive/2007/07/04/how-to-implement-debug-option-in-sharepoint-application-within-vs-2005-with-complete-call-stack-instead-of-custom-error-page.aspx
Let's Talk about .. Excel 2007-Simple Drop Down List
This is the instruction to create the Simple Drop Down List.
- Go to Data -> Data Validation -> Data Validation.
- Inside the Data Validation, in Settings tab, set allow to List.
- Specify the source. For example, I have these list.
- Click OK.
- Then, I got the Drop Down List.

Friday, August 24, 2007
Let's talk about .. SharePoint Designer 2007-Body Area Style
The Styles in core.css that relate with the frame of Body Area are
- .ms-bodyareapagemargin
- .ms-bodyareaframe,.ms-viewareaframe
- .ms-bodyareaframe
Let's talk about MOSS2007-How to get GUID
If you want to know the Guid of your Document Library or List, you can try by this one.
// get current web(site)
SPWeb web = SPContext.Current.Web;
// get current list or library
SPList List = web.Lists[DocumentName];
// get all item in list or library
SPListItemCollection items = List.Items;
// NATT will store Guid.
Guid NATT;
NATT = new Guid();
NATT = List.ID.ToString();
NOTE: the definition of DocumentName is....
private string _documentName = "DocLib_or_List_Name";
[
Personalizable(PersonalizationScope.User),
WebBrowsable(),
WebDisplayName("Documents Library Name"),
WebDescription("Documents Library Name")
]
public string DocumentName
{
set { _documentName = value; }
get { return _documentName; }
}
// get current web(site)
SPWeb web = SPContext.Current.Web;
// get current list or library
SPList List = web.Lists[DocumentName];
// get all item in list or library
SPListItemCollection items = List.Items;
// NATT will store Guid.
Guid NATT;
NATT = new Guid();
NATT = List.ID.ToString();
NOTE: the definition of DocumentName is....
private string _documentName = "DocLib_or_List_Name";
[
Personalizable(PersonalizationScope.User),
WebBrowsable(),
WebDisplayName("Documents Library Name"),
WebDescription("Documents Library Name")
]
public string DocumentName
{
set { _documentName = value; }
get { return _documentName; }
}
Let's Talk about .. Outlook 2007-Language Encoding
When you got e-mail which was not written in English, you may got some problems since the message was shown in other language. Yeah, you'd select the suitable encoding for your message. And for the 2007 version of Outlook, you can set the encoding by going to Other Actions->Encoding->More->"Your_Message_Language".

Let's Talk about .. SharePoint Designer 2007-Breadcrumb
Breadcrumb or the navigation is used to make the users know the track they are. They can go back by clicking where they want to go.
It is also set the style by the StyleSheet. You can modify it via the following styles.
It is also set the style by the StyleSheet. You can modify it via the following styles.
- .ms-pagebreadcrumb
- .ms-pagebreadcrumb,.ms-pagebreadcrumb a
Then, you can modify the padding, border, font-size, background, and text-decoration.
Subscribe to:
Posts (Atom)