Error in page redirect
-
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
-
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
Inherits ="MasterPage"
should point to your class in codefile. Say<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="myMasterPage"%>
should point toPublic 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> -
Inherits ="MasterPage"
should point to your class in codefile. Say<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="myMasterPage"%>
should point toPublic 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>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