Guides/Webform-Integration-Sub-Folder.md
... ...
@@ -145,12 +145,30 @@ Also, add Izenda.Adhoc namespace. now global.asax of website should look like as
145 145
```
146 146
147 147
148
-###Step 4. Change Namespaces of Controllers
148
+###Step 4. Copy OnInit method from Default.master.cs from starerkit to corresponding file/method of website master page
149
+
150
+Copy the below
151
+
152
+```csharp
153
+
154
+protected override void OnInit(EventArgs e) {
155
+
156
+ if (!String.IsNullOrEmpty(AdHocSettings.ApplicationHeaderImageUrl)) {
157
+ rightLogo.Src = AdHocSettings.ApplicationHeaderImageUrl;
158
+ }
159
+ if (!AdHocSettings.ShowDesignLinks) {
160
+ string script = "<script type=\"text/javascript\" language=\"javascript\">";
161
+ script += "try { $(document).ready(function() {$('.designer-only').hide(); });}catch(e){}";
162
+ script += " try{ jq$(document).ready(function() {jq$('.designer-only').hide(); });}catch(e){} ";
163
+ script += "</script>";
164
+ Page.Header.Controls.Add(new LiteralControl(script));
165
+ }
166
+ AdHocSettings.ShowSettingsButtonForNonAdmins = false;
167
+ }
168
+
169
+```
149 170
150
-Change namespaces of IzendaStaticResourcesController.cs and IzendaReportingController.cs to match all other controllers in the application.
151
-Ex) if the namespace is in other controller file is ABC.Controllers, then MVC3SK.Controllers -> ABC.Controllers
152 171
153
-![Controllers](/Guides/MVC-Integration/Namespace.png)
154 172
155 173
###Step 5. Add Reporting and Resources folders to the project
156 174