To prepare the Web Form in Visual Studio 2005 or newer

Parent Previous Next

 

Report Application Server .NET SDK Developer Guide

To prepare the Web Form in Visual Studio 2005 or newer


 







  1. Open the Web form, Default.aspx, in Design view.
  2. From the View menu, click Code.

The code-beside class opens. The class is named Default_aspx class. The class file is named Default.aspx.cs or vb.

NoteNote

If your Default.aspx page was created with inline code, it did not place its code into a separate file. In that case, delete the ASPX page and recreate it. When creating the ASPX page, select the "Place code in separate file" checkbox.

  1. At the top of the Default_aspx class, if you are writing this class in Visual Basic, type "Option Strict On".

NoteNote

As a best practice, it is recommended that you set Option Strict On at the start of every Visual Basic class in your Web Site. When you write code, it forces the use of best practices with strongly typed variable declarations and valid casting, both of which are checked at compile time. Compile-time checks that are strictly enforced can reduce run-time exceptions.

Next, you add a private helper method that is used as the designated location for all code that configures RAS for the class.

Continue to To add a private helper method for RAS configuration code.

© 2021 SAP AG. All rights reserved.

http://www.sap.com/sapbusinessobjects/

Support services

http://service.sap.com/bosap-support/

Created with the Personal Edition of HelpNDoc: Easy CHM and documentation editor