hey dmytro,
Thanks so much for the tip, kinda thought about that but what is the right
way to inlude the code? Below is the sample of the code in the webform. Is
this correct? Can't seem to compile. It's returning errors on the referencing
portion.
<%@ Page language="c#" AutoEventWireup ="false"
Inherits="FakeG roupWare.GroupW areBaseForm" %>
<%
using System;
using System.Collecti ons;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.Sess ionState;
using System.Web.UI;
using System.Web.UI.W ebControls;
using System.Web.UI.H tmlControls;
namespace FakeGroupWare
{
/// <summary>
/// WebForm5 ‚Ì*T—v‚ Ì*–¾‚ ‚·B
/// </summary>
public class GroupWareBaseFo rm : System.Web.UI.P age
{
/// String hoge = "hi!";
private void Page_Load(objec t sender, System.EventArg s e)
{
String user_id = Request.Params. Get("username") ;
String address = Request.Params. Get("address");
String ko_name = Request.Params. Get("ko_name");
String passwd = Request.Params. Get("passwd");
String lang = Request.Params. Get("lang");
// ƒy[ƒW‚ð‰* ú‰»‚·‚ éƒ*[ƒU[ ƒR[ƒh‚ð‚± ±‚É‘}“ ü‚µ‚Ü‚ ·B
HttpContext.Cur rent.Response.W rite("<HTML><HE AD><TITLE>APEOS </TITLE></HEAD>");
HttpContext.Cur rent.Response.W rite("<frameset rows=165,* framewidth=0>") ;
if (lang.Equals("e n"))
{
HttpContext.Cur rent.Response.W rite("<frame src=\"./banner_en.html\ ">");
}
else
{
HttpContext.Cur rent.Response.W rite("<frame src=\"./banner.html\">" );
}
HttpContext.Cur rent.Response.W rite(" <frameset cols=260,*>");
HttpContext.Cur rent.Response.W rite(" <frame
src=\"./MenuForm.aspx?u sername="+user_ id+"&address="+ address+"&ko_na me="+ko_name+"& passwd="+passwd +"&lang="+lang+ "\">");
HttpContext.Cur rent.Response.W rite(" <frame src=\"./contents.html\" >");
HttpContext.Cur rent.Response.W rite("</FRAMESET></FRAMESET>");
HttpContext.Cur rent.Response.F lush();
}
#region Web ƒtƒH[ƒ€ ƒfƒUƒCƒi‚ Ŷ¬‚³ ‚ꂽƒR[ƒh
override protected void OnInit(EventArg s e)
{
//
// CODEGEN: ‚±‚ÌŒÄ Ño‚µ‚ ÍAASP.NET Web ƒtƒH[ƒ€ ƒfƒUƒCƒi‚ Å•K—v‚Å ‚·B
//
InitializeCompo nent();
base.OnInit(e);
}
/// <summary>
/// ƒfƒUƒCƒi ƒTƒ|[ƒg‚É•K— v‚ȃƒ\ƒ bƒh‚Å‚· B‚±‚̃ ƒ\ƒbƒh‚Ì “*—e‚ð
/// ƒR[ƒh ƒGƒfƒBƒ^‚ Å•ÏX‚µ ‚È‚¢‚Å ‚*‚¾‚³ ‚¢B
/// </summary>
private void InitializeCompo nent()
{
this.Load += new System.EventHan dler(this.Page_ Load);
}
#endregion
}
}
%>
--
//joshua
"Dmytro Lapshyn [MVP]" wrote:
Hey Joshua,
As long as you are making changes to the code-behind file, you unfortunately
have to recompile the Web application's assembly. If this is not acceptable,
move this piece of code to the .aspx file itself.
"Joshua Tan" <Jo*******@disc ussions.microso ft.com> wrote in message
news:45******** *************** ***********@mic rosoft.com... hey there,
I really need some help with this. I have a web application running on
Windows 2000 Server , IIS5.0 , .Net Framework 1.1
I have a file.aspx, file.aspx.cs and file.aspx.resx
I tried changing some simple code in the .cs but the changes do not
reflect
on the webpage. Someone told me I need to recompile. Is there anywork
around?
All help is appreciated.
--
//joshua