Hi all.
I just moved to ASP.NET 2.0 and some things confuse me. Like where is the dll that used to get dropped in my bin folder? I guess it's because ASP.NET compiles at runtime..
Another thing is where is the server-side controls defined? Usually there is a protected definition of each control at the top of my .cs file, now there's none - but it still works. What is going on behind the scenes and how can I be sure that no old controls lives somewhere in my page class?
Also, I got a problem with Server.UrlEncode/Decode. In ASP.NET 1.x I could type in characters like æ, ø and å as querystring values and (I guess because ASP.NET is in Unicode-16) ASP.NET converted it automatically between pages. Now it just remove characters that's not ASCII (or so it seems)! What should I do?
I tried this approach:
sender page
Code:
string s = String.Format("infopage.aspx?Headline={0}&Infotext={1}&Buttontext={2}&Uri={3}",
Server.UrlEncode("Booking udført"), // Headline
Server.UrlEncode("Din booking er nu registreret hos Prime."), // Infotext
Server.UrlEncode("Fortsæt..."), // Buttontext
Server.UrlEncode("bookings.aspx")); // URI
Response.Redirect(s);
receiver page
Code:
lblHeadline.Text = Server.UrlDecode(Request.Params["Headline"]);
lblInfotext.Text = Server.UrlDecode(Request.Params["Infotext"]);
btnForward.Text = Server.UrlDecode(Request.Params["Buttontext"]);
Thanks in advance.
- mega
Moving to C# .NET