By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,584 Members | 1,774 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,584 IT Pros & Developers. It's quick & easy.

nube needs help on editing csharp codes

P: n/a
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
Feb 8 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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*******@discussions.microsoft.com> wrote in message
news:45**********************************@microsof t.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

Feb 8 '06 #2

P: n/a
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‚ð‚±‚±‚É‘}“ü‚µ‚Ü‚·B
HttpContext.Current.Response.Write("<HTML><HEAD><T ITLE>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="+addre ss+"&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
}
}
%>
--
//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*******@discussions.microsoft.com> wrote in message
news:45**********************************@microsof t.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


Feb 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.