Hey...
Can across this online tool to convert VB code to C# code & vice versa.
this is useful because at times we use to get codes in VB that needs to be converted to C#.
Now both of us (VB Guys & C# Guys) can save lot of time :)
http://www.developerfusion.com/tools/convert/vb-to-csharp/
Hope it helps
Regards
4Z
Blog from a software professional, Passionate to work in latest cutting edge technologies in order to get better results in business.
Showing posts with label code behind. Show all posts
Showing posts with label code behind. Show all posts
Sunday, August 2, 2009
Monday, June 8, 2009
MOSS: Code blocks are not allowed in this file
Hey...
When you try to add a server side code for an aspx page in your document library with the help of share point designer. you might get the following error when you try to view the page.
An error occurred during the processing of /Pages/Yourfile.aspx. Code blocks are not allowed in this file.
The reason is that Sharepoint by default disables server side code (code behind) for an aspx page. The Solution is we need to add the path of the page as exception in web.config.
Solution:
Regards
Fauzi
When you try to add a server side code for an aspx page in your document library with the help of share point designer. you might get the following error when you try to view the page.
An error occurred during the processing of /Pages/Yourfile.aspx. Code blocks are not allowed in this file.
The reason is that Sharepoint by default disables server side code (code behind) for an aspx page. The Solution is we need to add the path of the page as exception in web.config.
Solution:
<PageParserPaths>
<PageParserPath VirtualPath="/pages/YourFile.aspx" CompilationMode="Always" AllowServerSideScript="true" />
</PageParserPaths>
Regards
Fauzi
Subscribe to:
Posts (Atom)