S
Sanjay Pais
We are using ASP.2.0 and I was wondering if any one knew how I could modify
the default.aspx.
What I want to do is add some new HTML to the aspx page as well as either
change the code behind or use some new code beside on the page itself.
For example, I want to change this
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>
To
<%@ Page Language="C#" AutoEventWireup="true" UICulture="auto"
Culture="auto" CodeFile="Default.aspx.cs" Inherits="_Default" %>
I also was hoping to add some custom code to the page by default ie:
protected override void InitializeCulture(){
string CurrentCulture ="";
try{
CurrentCulture = Session["Culture"].ToString();
if (CurrentCulture.Length > 0){
Thread.CurrentThread.CurrentUICulture = new
CultureInfo(CurrentCulture);
Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(CurrentCulture);
ErrorMessage = "Language: " + CurrentCulture;
}
}
catch (Exception ex) {
ErrorMessage = ex.Message.ToString();
}
}
I am not interested in the master page solution as it is not a viable
approach for our solution.
Thanks in advance
Sanjay
the default.aspx.
What I want to do is add some new HTML to the aspx page as well as either
change the code behind or use some new code beside on the page itself.
For example, I want to change this
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>
To
<%@ Page Language="C#" AutoEventWireup="true" UICulture="auto"
Culture="auto" CodeFile="Default.aspx.cs" Inherits="_Default" %>
I also was hoping to add some custom code to the page by default ie:
protected override void InitializeCulture(){
string CurrentCulture ="";
try{
CurrentCulture = Session["Culture"].ToString();
if (CurrentCulture.Length > 0){
Thread.CurrentThread.CurrentUICulture = new
CultureInfo(CurrentCulture);
Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(CurrentCulture);
ErrorMessage = "Language: " + CurrentCulture;
}
}
catch (Exception ex) {
ErrorMessage = ex.Message.ToString();
}
}
I am not interested in the master page solution as it is not a viable
approach for our solution.
Thanks in advance
Sanjay