473,725 Members | 2,238 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 1417
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
2961
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
1437
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
1302
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
11360
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
1089
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
2996
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
2020
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
5362
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
1169
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
8882
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
8749
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,...
1
9165
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
9098
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...
1
6699
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6007
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
4507
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...
2
2627
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2153
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.