Hi guys, recently i started to write on sharepoint at following platform
http://sharepointboy.wordpress.com
Pingback from My Sharepoint Blogs - Muhammad Adnan Amanullah
Al salm 3alykom ya Mohamed ,
my name is Mohamed Qassem , beginner in SharePoint and need your help in two issue
First :
I face problem with SharePoint and WSS I think it’s a common issue it’s :
I added a code in SharePoint vs project to handle Custom List item adding and my code work well when I let the default web part in new form page and press ok, my event handler running which I show message error in specific case but if I hide the default web part and insert custom new web part for the same list my code running also but I got this message error “The data source control failed to execute the insert command.” Instead of my message error Although I catch my break point and no error in my code cuz I check the message error before finish the code I found it as I write it before ,
briefly in the sample blah.winsmarts.com/Post.aspx if you customize the default web part to change word “Yes” or word “NO” the error ”The only valid response is YES you nitwit!!” not appear after customization , and if it will appear tell me please why doesn’t appear with me and SharePoint message appear “The data source control failed to execute the insert command.”
Second :
I need to check for the contentType Type in item Adding in the event reciver but when I call properties.AfterpProperties[“ContentType”] I got null in my Quickwatch window
Your reply will be appreciated
Thanks in advance