nube needs help on editing csharp codes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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.
 
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="FakeGroupWare.GroupWareBaseForm" %>
<%
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace FakeGroupWare
{
/// <summary>
/// WebForm5 ‚ÌŠT—v‚ÌÂà–¾‚Å‚·ÂB
/// </summary>
public class GroupWareBaseForm : System.Web.UI.Page
{
/// String hoge = "hi!";

private void Page_Load(object sender, System.EventArgs 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‚ð‚±‚±‚É‘}“ü‚µ‚Ü‚·Â
HttpContext.Current.Response.Write("<HTML><HEAD><TITLE>APEOS</TITLE></HEAD>");
HttpContext.Current.Response.Write("<frameset rows=165,* framewidth=0>");
if (lang.Equals("en"))
{
HttpContext.Current.Response.Write("<frame src=\"./banner_en.html\">");
}
else
{
HttpContext.Current.Response.Write("<frame src=\"./banner.html\">");
}
HttpContext.Current.Response.Write(" <frameset cols=260,*>");
HttpContext.Current.Response.Write(" <frame
src=\"./MenuForm.aspx?username="+user_id+"&address="+address+"&ko_name="+ko_name+"&passwd="+passwd+"&lang="+lang+"\">");
HttpContext.Current.Response.Write(" <frame src=\"./contents.html\">");
HttpContext.Current.Response.Write("</FRAMESET></FRAMESET>");
HttpContext.Current.Response.Flush();
}

#region Web Æ’tÆ’HÂ[ƒ€ Æ’fÆ’UÆ’CÆ’i‚Ŷ¬‚³‚ꂽƒRÂ[Æ’h
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: ‚±‚̌ĂÑÂo‚µ‚ÃÂAASP.NET Web Æ’tÆ’HÂ[ƒ€ Æ’fÆ’UÆ’CÆ’i‚Å•K—v‚Å‚·ÂB
//
InitializeComponent();
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 InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}
%>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top