Above code is completely inline, how can we implement behind code in SharePoint?
Some couple of points we need to take care regarding implementing behind code in ASP.NET are the following:- • The first and foremost requirement is that behind code should be registered in to the GAC assembly. In other words we need to code the behind code in a separate assembly / namespace and then compile the same in a DLL. Later we need to register the DLL in GAC. • Second we need to use the assembly directive to refer the behind code. Step 1:- So the first step is to make two solution files one is the behind code which goes in separate assembly ‘ClassLibrary1’ namespace and the other is the ASP.NET web project which has the ‘SimplePageCodeBehind.aspx’. We also need to register this DLL in a GAC. So you need to generate a strong name give to the assembly and register the same using the ‘GACUTIL’ provided by the .NET framework. Step 2:- The behind code is in a separate assembly as need to register the same in the GAC. We have kept the behind code simple. We have create two label obj
Related Questions
- Can I use my own private label hang tags and still implement bar code technology without distracting from the beauty of the product?
- When using inline assembly instructions on the TI C compiler, why does the code break at run-time?
- Does Capital Safety implement the Code in its own manufacturing processes?