77a799909516ad838d0bf6af992596a869a072f4
Guides/Webform-Integration-Sub-Folder.md
| ... | ... | @@ -174,7 +174,7 @@ protected override void OnInit(EventArgs e) { |
| 174 | 174 | |
| 175 | 175 | |
| 176 | 176 | |
| 177 | -###Step 6. Copy the below code from < Head > section from Default.master from webform kit to the < Head > section of website masterpage |
|
| 177 | +###Step 6. Copy < Head > Section from Default.master |
|
| 178 | 178 | |
| 179 | 179 | **a.** Copy the below code from < Head > section from Default.master of webform kit to the < Head > section of Site.master |
| 180 | 180 | |
| ... | ... | @@ -216,7 +216,7 @@ protected override void OnInit(EventArgs e) { |
| 216 | 216 | |
| 217 | 217 | **b.** In contents copied at previous step, locate five < link > tags which have following href attribute |
| 218 | 218 | |
| 219 | -href="Resources/...." and change them to href="RRR/Resources/...." |
|
| 219 | +href="Resources/...." and change them to href="Izenda/Resources/...." |
|
| 220 | 220 | |
| 221 | 221 | |
| 222 | 222 | **c.** At the end < Head > section, insert the below code snippet. If sub folder has different name, replace the index of 'Izenda' below with that name. |
| ... | ... | @@ -231,25 +231,74 @@ href="Resources/...." and change them to href="RRR/Resources/...." |
| 231 | 231 | |
| 232 | 232 | ``` |
| 233 | 233 | |
| 234 | -**a.** Add 'Reporting'and 'Resources'from \mvc5r3 to project by dragging and dropping them in Solution Explorer as below |
|
| 234 | +**d.** Now < Head > section of Site.master should look like as below |
|
| 235 | +```html |
|
| 236 | + |
|
| 237 | +<head runat="server"> |
|
| 238 | + <meta charset="utf-8" /> |
|
| 239 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
|
| 240 | + <title><%: Page.Title %> - My ASP.NET Application</title> |
|
| 241 | + |
|
| 242 | + <asp:PlaceHolder runat="server"> |
|
| 243 | + <%: Scripts.Render("~/bundles/modernizr") %> |
|
| 244 | + </asp:PlaceHolder> |
|
| 245 | + <webopt:bundlereference runat="server" path="~/Content/css" /> |
|
| 246 | + <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" /> |
|
| 235 | 247 | |
| 236 | - |
|
| 237 | 248 | |
| 238 | -**b.** In Solution Explorer, exclude Dashboards-Body.ascx and Dashboards-Head.ascx from \Resources\html by right click on them and click 'Exclude From Project' |
|
| 239 | 249 | |
| 240 | - |
|
| 241 | 250 | |
| 242 | -**c.** Copy /Resources folder from the root of the application into the /Reporting folder |
|
| 243 | 251 | |
| 244 | -**d.** Copy rs.aspx from /Reporting and paste it in /Resources/html as below |
|
| 252 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
| 253 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
|
| 254 | + <meta http-equiv="Expires" content="0" /> |
|
| 255 | + <meta http-equiv="Pragma" content="no-cache" /> |
|
| 256 | + <meta name="robots" content="noindex, follow" /> |
|
| 257 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
| 258 | + <link rel="alternate" href="" title="Team Blog - RSS" type="application/rss+xml" /> |
|
| 259 | + <link rel="shortcut icon" href="Izenda/Resources/FromDLL/Resources/ModernImages/report-icon.png" type='image/png' /> |
|
| 260 | + <link rel="stylesheet" href="Izenda/Resources/css/reset2.css" type="text/css" /> |
|
| 261 | + <link rel="stylesheet" href="Izenda/Resources/css/print.css" type="text/css" media="print" /> |
|
| 262 | + <link rel="stylesheet" href="Izenda/Resources/css/fun.css" type="text/css" /> |
|
| 263 | + |
|
| 264 | + <asp:ContentPlaceHolder ID="ChangeableHeader" runat="server"> |
|
| 265 | + <link href="./rs.aspx?css=ModernStyles.bootstrap-responsive" rel="stylesheet" /> |
|
| 266 | + <link href="./rs.aspx?css=ModernStyles.bootstrap" rel="stylesheet" /> |
|
| 267 | + <link href="./rs.aspx?css=ModernStyles.bootstrap-modals" rel="stylesheet" /> |
|
| 268 | + <link href="./rs.aspx?css=ModernStyles.bootstrap-override" rel="stylesheet" /> |
|
| 269 | + <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> |
|
| 270 | + <script type="text/javascript" src="./rs.aspx?js=ModernScripts.jquery-1.7.2.min"></script> |
|
| 271 | + </asp:ContentPlaceHolder> |
|
| 272 | + |
|
| 273 | + <link rel="stylesheet" href="Izenda/Resources/css/main.css" type="text/css" /> |
|
| 274 | + <script type="text/javascript" src="./rs.aspx?js=ModernScripts.bootstrap-dropdown"></script> |
|
| 275 | + <script type="text/javascript" src="./rs.aspx?js=ModernScripts.bootstrap-tab"></script> |
|
| 276 | + <script type="text/javascript" src="./rs.aspx?js=ModernScripts.bootstrap-transition"></script> |
|
| 277 | + <script type="text/javascript" src="./rs.aspx?js=ModernScripts.bootstrap-modal"></script> |
|
| 278 | + <script type="text/javascript" src="Resources/js/main.js"></script> |
|
| 279 | + <script type="text/javascript"> |
|
| 280 | + //htmlChartColors = ['#ff0000', '#00ff00', '#0000ff', '#910000', '#1aadce', '#492970', '#f28f43', '#77a1e5', '#c42525', '#a6c96a']; |
|
| 281 | + </script> |
|
| 282 | + <!-- Page header injection --> |
|
| 283 | + <asp:ContentPlaceHolder ID="HeadPlaceHolder" runat="server"></asp:ContentPlaceHolder> |
|
| 284 | + |
|
| 285 | + |
|
| 286 | + <script type="text/javascript"> |
|
| 287 | + $(document).ready(function HideHeader() { |
|
| 288 | + if (window.location.href.indexOf('Izenda') === -1) { |
|
| 289 | + document.getElementById('blueHeader').style.display = 'none'; |
|
| 290 | + } |
|
| 291 | + }); |
|
| 292 | + </script> |
|
| 293 | + |
|
| 245 | 294 | |
| 246 | - |
|
| 295 | +</head> |
|
| 247 | 296 | |
| 297 | +``` |
|
| 248 | 298 | |
| 249 | -**** If Izenda toolbar icons don't appear, check if Reporting folder contains rs.aspx and Resources folder **** |
|
| 250 | 299 | |
| 251 | 300 | |
| 252 | -###Step 6. Add mvc5r3\Views\Reporting folder |
|
| 301 | +###Step 7. Copy < Body > Section from Default.master |
|
| 253 | 302 | |
| 254 | 303 | Add the Reporting folder in mvc5r3\Views to the project's Views |
| 255 | 304 |