%@ Import namespace="MyNamespace" %>
Snippet Compiler Help
Please contact me at jeff.key@sliver.com
if you have any suggestions. Thanks!
How to
Options
Samples
-
ASPX page with CodeBehind
How to
Create a C#/VB snippet
-
Create a snippet (blank or existing).
-
Press F5 (or select Build|Start)
Run more than one snippet
-
Follow steps above, or Open existing snippets.
-
Press CTRL+F5 to build and run all of the snippets. Note that all non-ASPX
snippets must be of the same type (ie. C# or VB)
Create an ASP.NET snippet
-
Ensure the Web Root and Web URL options are set properly. (Note that all files
in the Web Root are deleted every time the snippet is run.)
-
Select File|New|Default.<LANGUAGE>.aspx
-
Press F5 (or select Build|Start)
Create an
ASP.NET snippet with code-behind
-
Create new ASPX snippet or open existing one.
-
Create or open a C# or VB snippet.
-
Ensure the following:
-
The C#/VB snippet code must be in a namespace.
-
The ASPX snippet "imports" the namespace. (<%@ Import
namespace="MyNamespace" %>)
-
The ASPX snippet's Page directive has the proper Inerits attribute
(Inherits="MyNamespace.MyCodeBehind")
-
Press CTRL+F5 (or select Build|Start All)
Debug using a debugger
If you place a call to System.Diagnostics.Debugger.Break() into your code, you
will be prompted at runtime to select a debugger. I usually pick the CLR
debugger since it seems to be quickest. If you compiled with debug symbols, you
can then step through your code as you would in VS.NET. See the "Break Info
Debugger" samples in the samples folder.
Outline code
Automatic outlining isn't supported in the Syncfusion control yet, but you can
enable outlining on code blocks manually by selecting a block, right-clicking
on it and choosing "Outlining|Hide Selection".
Use Projects
Projects are simply collections of files that can be saved and loaded. To
save all loaded snippets a project, select Save Project. To open a
project, choose Open Project, select the project and open. (You can also
open more than one file at once in the standard File|Open menu.)
Options
IntelliSense