471,627 Members | 1,670 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

nube needs help on editing csharp codes

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
2 1342
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
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.

Similar topics

1 post views Thread by sam.collett | last post: by
3 posts views Thread by SuperFrog | last post: by
8 posts views Thread by Sam Collett | last post: by
1 post views Thread by Thoraxx | last post: by
22 posts views Thread by Michael Gorbach | last post: by
3 posts views Thread by Ben | last post: by
2 posts views Thread by blackdog | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.