70195f545730c39d01d077c7ff9a3df30f581f96
Guides/MVC-Integration.md
| ... | ... | @@ -403,37 +403,9 @@ public class MvcApplication : System.Web.HttpApplication |
| 403 | 403 | } |
| 404 | 404 | |
| 405 | 405 | ``` |
| 406 | -###Step 11. Change the Logo |
|
| 407 | - |
|
| 408 | -**a.** Open _SiteLayout.cshtml in Views\Shared\ in Solution Explorer |
|
| 409 | - |
|
| 410 | -**b.** Find the below two lines in the body of html |
|
| 411 | -```html |
|
| 412 | -<div class="left-logo"> |
|
| 413 | -<img src="~/Resources/FromDLL/Resources/ModernImages/bi-logo.png" alt="Business intelligence" /> //top-left logo |
|
| 414 | -</div> |
|
| 415 | -<div class="right-logo"> |
|
| 416 | -@if (!String.IsNullOrEmpty(Izenda.AdHoc.AdHocSettings.ApplicationHeaderImageUrl)) { |
|
| 417 | -<text> |
|
| 418 | - |
|
| 419 | -<a href="http://izenda.com" style="position: relative; top: 4px;"><img class="right-logo" src="@Html.Raw(Izenda.AdHoc.AdHocSettings.ApplicationHeaderImageUrl)" alt="Izenda Reports" /></a>> |
|
| 420 | -</text> |
|
| 421 | - }else { |
|
| 422 | - |
|
| 423 | -<text> |
|
| 424 | - |
|
| 425 | -<a href="http://izenda.com" style="position: relative; top: 4px;"><img class="right-logo" src="~/Resources/FromDLL/Resources/ModernImages/IzendaNewLogoBlue.png" alt="Izenda Reports" /></a> |
|
| 426 | - |
|
| 427 | -</text> |
|
| 428 | - } |
|
| 429 | - |
|
| 430 | -``` |
|
| 431 | - |
|
| 432 | -**c .** Each line corresponds to top-left and top-right logos respectively. |
|
| 433 | - |
|
| 434 | 406 | |
| 435 | 407 | |
| 436 | -###Step 12. Change the LicenseKey and ConnnectionString in Global.asax of project |
|
| 408 | +###Step 11. Change the LicenseKey and ConnnectionString in Global.asax of project |
|
| 437 | 409 | |
| 438 | 410 | To get a new trial key, you may contact [sales@izenda.com](mailto:sales@izenda.com). |
| 439 | 411 | |
| ... | ... | @@ -443,9 +415,10 @@ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"; |
| 443 | 415 | AdHocSettings.SqlServerConnectionString = @"INSERT_CONNECTION_STRING_HERE"; |
| 444 | 416 | |
| 445 | 417 | ``` |
| 446 | -###Step 13. Run it! |
|
| 447 | 418 | |
| 448 | -After Step 11, the Sample_MVCApp should build and work without a problem. To see if Izenda is integrated with this web application, |
|
| 419 | +###Step 12. Run it! |
|
| 420 | + |
|
| 421 | +After Step#11, the Sample_MVCApp should build and work without a problem. To see if Izenda is integrated with this web application, |
|
| 449 | 422 | |
| 450 | 423 | **a.** Open _Layout.cshtml in Views\Shared\ in Solution Explorer |
| 451 | 424 | |
| ... | ... | @@ -461,3 +434,34 @@ After Step 11, the Sample_MVCApp should build and work without a problem. To see |
| 461 | 434 | **c.** Notice 'Izenda' item added to the menu as below. Click it and see if it leads to Izenda ReportList page. |
| 462 | 435 | |
| 463 | 436 |  |
| 437 | + |
|
| 438 | + |
|
| 439 | +###Step 13. Change the Logo |
|
| 440 | + |
|
| 441 | +**a.** Open _SiteLayout.cshtml in Views\Shared\ in Solution Explorer |
|
| 442 | + |
|
| 443 | +**b.** Find below two lines in the body of the html and edit the source image directory, alt, and the link address for top-right image |
|
| 444 | + |
|
| 445 | +```html |
|
| 446 | + |
|
| 447 | +<img src="~/Resources/FromDLL/Resources/ModernImages/bi-logo.png" alt="Business intelligence" /> //top-left image |
|
| 448 | + |
|
| 449 | +<a href="http://izenda.com" style="position: relative; top: 4px;"><img class="right-logo" src="~/Resources/FromDLL/Resources/ModernImages/IzendaNewLogoBlue.png" alt="Izenda Reports" /></a> //top-right image |
|
| 450 | + |
|
| 451 | +``` |
|
| 452 | +**c.** Run the application and check if the images appear as edited. |
|
| 453 | + |
|
| 454 | +In this guide, two images, Logo.png and batman.png, were put in the project folder, /Sample_MVCApp, and the above two lines were edited as below |
|
| 455 | + |
|
| 456 | +```html |
|
| 457 | + |
|
| 458 | +<img src="~/Logo.png" alt="Batmans intelligence" /> //top-left image |
|
| 459 | + |
|
| 460 | +<a href="http://batman.com" style="position: relative; top: 4px;"><img class="right-logo" src="~/batman.png" alt="Batman.Com" /></a> //top-right image |
|
| 461 | + |
|
| 462 | +``` |
|
| 463 | + |
|
| 464 | + |
|
| 465 | + |
|
| 466 | + |
|
| 467 | + |