Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Error in page redirect

Error in page redirect

Scheduled Pinned Locked Moved ASP.NET
helpquestionhtmlsysadminlearning
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lavankumar
    wrote on last edited by
    #1

    hi in a webapplication to redirect a page to another page i am using the following code Response.Redirect(dl.url + "LoginPage1.aspx", True) where dl.url is my wesite url it worked fine for few months back but now it showing a error i found that it is response.statuscode=200 now what is this Response.Statuscode=200 error how can i solve this earlier it worked fine ,i didnt touch the code in this page and it is also giving the error like this Server Error in '/' Application. -------------------------------------------------------------------------------- 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: BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.masterpage_master'. Source Error: Line 1: <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> Line 2: Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Source File: C:\Inetpub\vhosts\shieldpro.in\httpdocs\MasterPage.master Line: 1 please help me

    A 1 Reply Last reply
    0
    • L lavankumar

      hi in a webapplication to redirect a page to another page i am using the following code Response.Redirect(dl.url + "LoginPage1.aspx", True) where dl.url is my wesite url it worked fine for few months back but now it showing a error i found that it is response.statuscode=200 now what is this Response.Statuscode=200 error how can i solve this earlier it worked fine ,i didnt touch the code in this page and it is also giving the error like this Server Error in '/' Application. -------------------------------------------------------------------------------- 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: BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.masterpage_master'. Source Error: Line 1: <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> Line 2: Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Source File: C:\Inetpub\vhosts\shieldpro.in\httpdocs\MasterPage.master Line: 1 please help me

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Inherits ="MasterPage" should point to your class in codefile. Say <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="myMasterPage"%> should point to Public Class myMasterPage Inherits MasterPage :)

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Microsoft Bing MAP using Javascript
      CLR objects in SQL Server 2005
      Uncommon C# Keywords
      /xml>

      V 1 Reply Last reply
      0
      • A Abhishek Sur

        Inherits ="MasterPage" should point to your class in codefile. Say <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="myMasterPage"%> should point to Public Class myMasterPage Inherits MasterPage :)

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        My Latest Articles-->** Microsoft Bing MAP using Javascript
        CLR objects in SQL Server 2005
        Uncommon C# Keywords
        /xml>

        V Offline
        V Offline
        vijaylumar
        wrote on last edited by
        #3

        hi abhishek i too got the same problem and struggling hard to solve it as u said i checked with my webapplication i changed like this in code file //MasterPage.master.vb Partial Class MasterPage Inherits System.Web.UI.MasterPage End Class in MasterPage source file <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> both are same now but y it is showing the same error

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups