G
gordonfmoore
Hi,
for some reason? I learnt it was sensible/useful to put any parameters
that I wanted users to be able to change in the global.asax file.
So my code would look like:
//in my page load
protected void Page_Load(object sender, System.EventArgs e)
{
myLabel.Text = (string) Application["PageHeading"];
string mydbfile = (string) Application["MDBDefault"];
string myLinkToUrl = (string) Application["DefaultWebpage"];
}
//in my global.asax file
<script language = "c#" runat="server">
protected void Application_OnStart()
{
Application["PageHeading"] = "Maths Production (2.0)";
Application["DefaultWebpage"] = "http://intranet";
Application["MDBDefault"] = "App_Data/YAS.mdb";
}
</script>
This worked well under .net 1.1 with precompiled aspx.cs files (as a
dll)
However, they've done it to me again and now I have to fix what wasn't
broken under 2.0
If I use the (afterthought) web deployment projects add in, I can
compile my codebehind, but it also compiles my global.asax and so my
customers can't set up the system parameters as they want to.
So how do I now do this? Please. (I'm not really hacked off - honest!
)
Regards
Gordon
for some reason? I learnt it was sensible/useful to put any parameters
that I wanted users to be able to change in the global.asax file.
So my code would look like:
//in my page load
protected void Page_Load(object sender, System.EventArgs e)
{
myLabel.Text = (string) Application["PageHeading"];
string mydbfile = (string) Application["MDBDefault"];
string myLinkToUrl = (string) Application["DefaultWebpage"];
}
//in my global.asax file
<script language = "c#" runat="server">
protected void Application_OnStart()
{
Application["PageHeading"] = "Maths Production (2.0)";
Application["DefaultWebpage"] = "http://intranet";
Application["MDBDefault"] = "App_Data/YAS.mdb";
}
</script>
This worked well under .net 1.1 with precompiled aspx.cs files (as a
dll)
However, they've done it to me again and now I have to fix what wasn't
broken under 2.0
If I use the (afterthought) web deployment projects add in, I can
compile my codebehind, but it also compiles my global.asax and so my
customers can't set up the system parameters as they want to.
So how do I now do this? Please. (I'm not really hacked off - honest!
)
Regards
Gordon