Thursday, 27 February 2014

Nettier Codesmith v6.5 update enterprise library from 414 to 505

Get all files in

C:\Users\.......\Documents\CodeSmith Generator\Samples\v6.5\Templates\Frameworks\NetTiers\References\EntLibv5_0

With the updated version

 

Update file CommonSqlCode.cs found in

\Documents\CodeSmith Generator\Samples\v6.5\Templates\Frameworks\NetTiers\TemplateLib

Replace 414 by 505

 

Wednesday, 5 February 2014

chrome doesn't support MaintainScrollPositionOnPostBack Solution

To support the scroll position capability in Chrome, you need to follow the steps given below:

1.     Add the following line of code in the Page_Load of the page for which you want to maintain the scroll position.

 Collapse | Copy Code

this.MaintainScrollPositionOnPostBack = true;

2.     Right click on the project.

3.     Click on “Add” -> “Add New Item”.

4.     In the “Add New Item” window, select “Browser File” and click “Add”.

5.     Application will ask you to place this file in “App_Browsers” folder, click “Yes”

6.     Now add the capability of maintaining the scroll position as follows:

 Collapse | Copy Code

<browsers>
  <browser refID="Safari1Plus">
    <capabilities>
      <capability name="supportsMaintainScrollPositionOnPostback" 
          value="true" />
    </capabilities>
  </browser>
</browsers>