473,782 Members | 2,507 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1425
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

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="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


Feb 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2963
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 that is after the newly added row without getting bizarre results. I have added the full code for the test below. Create a project drop in the code and run. There is nothing crazy about the code. I used the designer to add the dataset and to...
1
1687
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" standalone="yes"?> <Files> <File> <Text>Test</Text> <Name>Test.html</Name> </File>
3
1443
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 easier to read and understand. =) Any resources on this?
1
1305
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
11361
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" standalone="yes"?> <Files> <File> <Text>Test</Text> <Name>Test.html</Name> </File>
1
1092
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 getting an errors when I build the web page, I need to build dynamic array base off a connection to an orcale db. How do I make a connection to orcale, and how do I make a dynamic arra based on the sql results? "Please help OB1 your our last...
22
3005
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 each pair in an array of 500 or so particles, in order to calculate interaction potential. I wrote what i have so far in csharp because i wanted to learn it and though it would give me some good experience. I am now beginning to understand that .net...
3
2022
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
5363
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. thanks a lot.
2
1171
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 certain other columns that need to be populated. What would be the fastest way in doing this? I'll also need to add these database to another large database (a "total" database) that contains all of the data. Should I do the edits beforehand on the...
0
9641
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10313
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9944
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.