Results 1 to 2 of 2

Thread: ASP to ASP.NET Migration Problems

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    Tokyo, Japan
    Posts
    72

    Question ASP to ASP.NET Migration Problems

    Hello

    I am trying to migrate one page from ASP to ASP.NET.

    I have downloaded .net sdk, webmatrix. but instead of using webmatrix, I started with changing extension from asp to aspx.
    And offcourse made some changes to syntax. but it is giving error as follows

    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: BC30188: Declaration expected.

    Source Error:

    Line 14:
    Line 15: Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1))
    Line 16: Response.Buffer = True

    Please kindly suggest quick steps / check list for migrating page from asp to asp.net

    1. What kind of special changes should be done ?
    2. Is it ok to include some asp/html files in an aspx file.
    3. What is .cs file ? Is it necessary to create .cs file ?
    4. What changes should be done in IIS server setting ?
    5. Is there any really good web site, where all migration related practical points are given (not only theory).

    Thanks and Regards
    Mahesh
    Everybody is always learning something new !

  2. #2
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602
    Well... Some quick hints...


    1)Verfy that the @Page directives are correct. They are not the same as in asp

    2)An aspx file is made of html code and some script language of your choice, as well as code declaration blocks...

    3)It is a c sharp code behind file and is linked with the page directive "codebehind"... it's compiled and linked at first runtime of the page... kinda like the old .inc files but a bit different...

    4)Just make sure the virtual directory setup is ok and that you have installed the .net framework...

    5)I would suggest www.asp.net as well as www.w3schools.com
    for tutorials.. as well as a good book!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width