473,394 Members | 1,715 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,394 software developers and data experts.

Code behind query

I have a solution developed in VS.net.

It has been pointed out to me that code behind pages cannot be altered on
the site as the solution would need recompiling to update the dll in the
/bin folder.

Unfortunatly there is 1 page on my site which I need to frequently change
slightly and I dont want to have to recompile every time.

If I excluded this page from my project but uploaded it to my site could I
then alter it and see the changes ?

Thanks in Advance
Nov 18 '05 #1
4 1017
What is it aht you need to change frequently in a page? If it's content, why
don't you put have the Page fetch the content dynamically, so that you can
simply change the content without recompiling?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Poppy" <pa**********@NOSPAMthemedialounge.com> wrote in message
news:Oq**************@TK2MSFTNGP11.phx.gbl...
I have a solution developed in VS.net.

It has been pointed out to me that code behind pages cannot be altered on
the site as the solution would need recompiling to update the dll in the
/bin folder.

Unfortunatly there is 1 page on my site which I need to frequently change
slightly and I dont want to have to recompile every time.

If I excluded this page from my project but uploaded it to my site could I
then alter it and see the changes ?

Thanks in Advance

Nov 18 '05 #2
It's much more complicated then that.

I can not do this dynamically.

All I want to know is :
If I exclude it from my project can I alter that page without having to
recompile ???

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:#e**************@TK2MSFTNGP11.phx.gbl...
What is it aht you need to change frequently in a page? If it's content, why don't you put have the Page fetch the content dynamically, so that you can simply change the content without recompiling?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Poppy" <pa**********@NOSPAMthemedialounge.com> wrote in message
news:Oq**************@TK2MSFTNGP11.phx.gbl...
I have a solution developed in VS.net.

It has been pointed out to me that code behind pages cannot be altered on the site as the solution would need recompiling to update the dll in the
/bin folder.

Unfortunatly there is 1 page on my site which I need to frequently change slightly and I dont want to have to recompile every time.

If I excluded this page from my project but uploaded it to my site could I then alter it and see the changes ?

Thanks in Advance


Nov 18 '05 #3
wh
I think this is possible providing you exclude the page from your project.

Assuming you have a page called "page.aspx", VS.Net will add a directive
similar to the following at the top of the file:

<%@ Page language="c#" Codebehind="page.aspx.cs" AutoEventWireup="false"
Inherits="YourNamespace.Page" %>

Assuming that you need to modify the code-behind file (in this case
page.aspx.cs), just specify one additional 'src' parameter to the @page
directive:

<%@ Page language="c#" Codebehind="page.aspx.cs" AutoEventWireup="false"
Inherits="YourNamespace.Page" src="page.aspx.cs" %>

This should instruct the .NET framework to compile page.aspx.cs the first
time the page is accessed (or the first time that the code-behind file has
been modified), ensuring that it uses the most up to date changes.

Wayne.
Nov 18 '05 #4
You do not need to compile your code behind files into the DLL in the
/bin. Not having VS.Net, I don't know what the behavior of it is. My
sites, I have the aspx/ascx page and then a corresponding code behind.
I simply tell the page where the code behind is in the Page/Control
directive, i.e.

<%@ Page Language="VB" Src="CodeBehind/Default.aspx.vb"
Inherits="DefaultClass" %>

When the page is changed, it gets recompiled it first referenced. I
would do this.

I do not know if this solution is faster than the compiled DLL.
Others would be able to answer that.

Neil

"Poppy" <pa**********@NOSPAMthemedialounge.com> wrote in message news:<Oq**************@TK2MSFTNGP11.phx.gbl>...
I have a solution developed in VS.net.

It has been pointed out to me that code behind pages cannot be altered on
the site as the solution would need recompiling to update the dll in the
/bin folder.

Unfortunatly there is 1 page on my site which I need to frequently change
slightly and I dont want to have to recompile every time.

If I excluded this page from my project but uploaded it to my site could I
then alter it and see the changes ?

Thanks in Advance

Nov 18 '05 #5

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

Similar topics

8
by: Tony Williams | last post by:
I have a message box which pops up a message after a check on a total. The code on the Before Update Event is: If ( + ) <> Then MsgBox "Row 1 does not add up" & vbCrLf & "It should be " & + ,...
8
by: Steph | last post by:
Hi. I'm very new to MS Access and have been presented with an Access database of contacts by my employer. I am trying to redesign the main form of the database so that a button entitled...
1
by: Pat | last post by:
All, What I want to do: ******************* Click on a hyperlink in the last column in a datagrid, have it grab a value in the fourth column in the same row and send it to the codehind into a...
5
by: Haydnw | last post by:
Hi, I have the code below as code-behind for a page which displays two images. My problem is with the second bit of code, commented as " 'Portfolio image section". Basically, the SQL query gets...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
1
by: Mia Williams via .NET 247 | last post by:
(Type your message here) I have user control (listpanel control) and I ahve to display the search results inside the list panel user control.. how can I do that? Can i access the list panel control...
9
by: Michael | last post by:
Hi, I am trying to create a CName record on my DNS server. Seems like it should be easy. I am using WMI. I have created a test asp.net page and put the code in the code behind. The DNS server...
3
by: Yourself | last post by:
Hi, I'm trying to post data to PayPal for a shopping cart, basically I want to replicate a form like the following, but create the variables dynamically from code behind: <form...
1
by: kellyj00 | last post by:
We have clients who have not been exposed to SQL and have built a few thousand queries using the iSeries Query tool via their 5250 sessions. Is there any way to gather the code behind these...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
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...

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.