473,405 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 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 1402
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dave | last post by:
I tried posting this in the WinForm forum and got no hits so I am trying it here. After inserting a new data row to a DataTable that is bound to a datagrid, I am unable to change data in a row...
1
by: sam.collett | last post by:
Is there a basic guide on Xml document creation and editing (simpler than the MSDN docs). Say I want to create a file containing the following: <?xml version="1.0" encoding="utf-8"...
3
by: SuperFrog | last post by:
HI there, Is there is any resources on the Conventions for Csharp? I tried to do a search but did not find any. I would prefer to use a convention that is consistant thus making my codes...
1
by: ari | last post by:
hi all, How to translate such struct to csharp codes? typedef struct{ char *FileName; HANDLE gHandle; char cbDir; WORD wAddress; DWORD* FileCount; int FileFlag;
8
by: Sam Collett | last post by:
Is there a basic guide on Xml document creation and editing (simpler than the MSDN docs). Say I want to create a file containing the following: <?xml version="1.0" encoding="utf-8"...
1
by: Thoraxx | last post by:
I have been thrown in the the cSharp grinder and I'm lost, I have t connect to a web service and sent is some data, well I can connect jus fine thanks to some very busy friends. Now that I'm not...
22
by: Michael Gorbach | last post by:
I was asked this summer to write a monte carlo code to simulation magnetic nanoparticles. For the nonphysicists, basicly it is a simulation where most of the time is taken up by looping through...
3
by: Ben | last post by:
anyone know if there is a way to get VS to enable editing codes in debug mode? 6.0 supported this feature and it's the best key selling point. I just don't know why it's not avaliable. Thanks.
2
by: blackdog | last post by:
I have Oracle client in my system, like to use csharp to communicate with Oracle server to retrieve data. I am very new in csharp, would anyone please give me an example codes or web pointer....
2
by: MGM | last post by:
I have a bunch of fairly large databases, each going anywhere from 1,000 rows to 50,000 rows. These databases, however, need some editing. They have extra columns that need to be removed and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.