Security slide. It clearly says that "Inline script in the page will not
execute [but] code behind in pages can be made to work".
I'm not a definitive expert on SharePoint, but I did some research a
while ago and creating a Web Part is the solution I found.
This doesn't mean creating a Web part through FrontPage or through the
SharePoint Web interface; it means creating a special kind of custom
control in Visual Studio, compiling it, digitally signing it, and then
registering it to the SharePoint server.
The way you'd do form field validation is to design the form and write
the code in Visual Studio, just as you'd do for a native ASP.NET
application, except that you'd be creating a Web Part rather than a
Web Form.
The "Code Behind" approach,in case you don't know, means that:
o The HTML resides in an .aspx file and the program code resides in a
separate .vb or .cs file (.vb for Visual basic, .cs for C#).
o When Visual Studio compiles the project (which is roughly
analogous to a FrontPage Web), it compiles all the .vb or .cs
files into one .dll.
o When you publish the site, you only publish the .aspx and .dll
files. (The .vb and .cs files server no purpose at run time,
so why put them on your public site where intruders might
steal them?)
o When a visitor requests a page, the .aspx file inherits
properties, methods, and events from an object in the compiled
.dll file. This is how the HTML and the code behind it come
together.
o For security and reliability reasons, SharePoint won't run
code from just any DLL. It only accepts code that's been
digitally signed and registered.
o FrontPage can't compile .vb and .cs files into a DLL. I think
there are command-line tools that can do such compilations,
but who needs that? For $100 or so you can get Visual Basic
.NET Standard or C# Standard and get a much better toolset.
For mode detail, and a more reliable answer, you should probably take
this question onto one of the SharePoint newsgroups.
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------