我有.aspx和.vb文件。它的名称是:SA_Setup.aspx和SA_Setup.vb。
SA_Setup.aspx文件中代码的前10行是:
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false"
CodeFile="SA_Setup.aspx.vb" Inherits="SA_Setup" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ MasterType VirtualPath="~/MasterPage.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<link id="Link2" rel="Stylesheet" href="~/Common/OrgSelfAssessment.css" type="text/css"
media="screen" runat="server" />
</asp:Content>
SA_Setup.aspx.vb文件中的前10行代码是:
Imports System.Data
Imports GlobalModule
Partial Class SA_Setup
Inherits System.Web.UI.Page
Dim dalGM As GlobalModule
Dim dalSelfAssessment As New SelfAssessmentSetUp
Dim dalSurveyAdmin As New SurveyAdmin
Dim dalClientAdmin As New ClientAdmin
Protected Overrides Sub InitializeCulture()
Try
Dim strCul As String : strCul = Session("Culture")
System.Threading.Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo(strCul)
System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo(strCul)
Catch ex As Exception
Response.Redirect("~/Error/ErrorPage.aspx?type=SessionTimedOut&ui=" & Request.QueryString("ui"), True) : Exit Sub
End Try
End Sub
现在,我已将文件名更改为SA_Setup_MPHLB.aspx
和SA_Setup_MPHLB.aspx.vb
。我想知道在更改文件名后我需要在上面的代码中做些什么更改。据我了解,我做了以下更改:
在.aspx文件中(SA_Setup_MPHLB.aspx):
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false"
CodeFile="SA_Setup_MPHLB.aspx.vb" Inherits="SA_Setup_MPHLB" %>
在.aspx.vb文件中(SA_Setup_MPHLB.aspx.vb):
Partial Class SA_Setup_MPHLB
只是检查我所做的更改是否正确,或者我是否有任何地方需要进行更改?
答案 0 :(得分:0)
如果您能够在名称更改后成功重建项目,则可能不需要执行任何其他操作。如果您收到任何错误,肯定会建议您下一步该做什么。