473,793 Members | 2,865 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

App works locally but not on the website

I created a simple calendar test app (webform1.aspx) using Visual Studios,
which works perfectly in local debug mode, but has no functionality when
posted to the website. I.e. the label fills with date information on
calendar1_selct ionchanged only when run locally, but not when posted to the
website. I must be missing something very simple here. In the past I have
hand coded all my asp.net code. Page code snippet below.

Thank you in advance for your help.

Public Class WebForm1

Inherits System.Web.UI.P age

Protected WithEvents lResults As System.Web.UI.W ebControls.Labe l

Protected WithEvents Calendar1 As System.Web.UI.W ebControls.Cale ndar

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.

<System.Diagnos tics.DebuggerSt epThrough()Priv ate Sub InitializeCompo nent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Init

'CODEGEN: This method call is required by the Web Form Designer

'Do not modify it using the code editor.

InitializeCompo nent()

End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load

'Put user code to initialize the page here

End Sub

Private Sub Calendar1_Selec tionChanged(ByV al sender As System.Object, ByVal
e As System.EventArg s) Handles Calendar1.Selec tionChanged

If Calendar1.Selec tedDates.Count = 1 Then

lResults.Text = Calendar1.Selec tedDate

ElseIf Calendar1.Selec tedDates.Count = 7 Then

lResults.Text = "Week of " & Calendar1.Selec tedDate & " - " &
DateAdd(DateInt erval.Day, 6, Calendar1.Selec tedDate)

Else

lResults.Text = Format(Calendar 1.SelectedDate, "MMMM") & " has " &
Calendar1.Selec tedDates.Count. ToString & " days."

End If

End Sub

End Class

Feb 6 '07 #1
3 1209
On Feb 6, 6:37 pm, "Mark Sandfox" <NoS...@NoSpam. comwrote:
I created a simple calendar test app (webform1.aspx) using Visual Studios,
which works perfectly in local debug mode, but has no functionality when
posted to the website. I.e. the label fills with date information on
calendar1_selct ionchanged only when run locally, but not when posted to the
website. I must be missing something very simple here. In the past I have
hand coded all my asp.net code. Page code snippet below.

Thank you in advance for your help.

Public Class WebForm1

Inherits System.Web.UI.P age

Protected WithEvents lResults As System.Web.UI.W ebControls.Labe l

Protected WithEvents Calendar1 As System.Web.UI.W ebControls.Cale ndar

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.

<System.Diagnos tics.DebuggerSt epThrough()Priv ate Sub InitializeCompo nent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Init

'CODEGEN: This method call is required by the Web Form Designer

'Do not modify it using the code editor.

InitializeCompo nent()

End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load

'Put user code to initialize the page here

End Sub

Private Sub Calendar1_Selec tionChanged(ByV al sender As System.Object, ByVal
e As System.EventArg s) Handles Calendar1.Selec tionChanged

If Calendar1.Selec tedDates.Count = 1 Then

lResults.Text = Calendar1.Selec tedDate

ElseIf Calendar1.Selec tedDates.Count = 7 Then

lResults.Text = "Week of " & Calendar1.Selec tedDate & " - " &
DateAdd(DateInt erval.Day, 6, Calendar1.Selec tedDate)

Else

lResults.Text = Format(Calendar 1.SelectedDate, "MMMM") & " has " &
Calendar1.Selec tedDates.Count. ToString & " days."

End If

End Sub

End Class
You do ASP.NET Code Behind Page. Did you build your application and
copied \bin to the server?

Feb 6 '07 #2
Yes all the generated pages are on the server.

"Alexey Smirnov" <al************ @gmail.comwrote in message
news:11******** *************@a 34g2000cwb.goog legroups.com...
On Feb 6, 6:37 pm, "Mark Sandfox" <NoS...@NoSpam. comwrote:
>I created a simple calendar test app (webform1.aspx) using Visual
Studios,
which works perfectly in local debug mode, but has no functionality when
posted to the website. I.e. the label fills with date information on
calendar1_selc tionchanged only when run locally, but not when posted to
the
website. I must be missing something very simple here. In the past I
have
hand coded all my asp.net code. Page code snippet below.

Thank you in advance for your help.

Public Class WebForm1

Inherits System.Web.UI.P age

Protected WithEvents lResults As System.Web.UI.W ebControls.Labe l

Protected WithEvents Calendar1 As System.Web.UI.W ebControls.Cale ndar

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.

<System.Diagno stics.DebuggerS tepThrough()Pri vate Sub
InitializeComp onent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventAr gs) Handles MyBase.Init

'CODEGEN: This method call is required by the Web Form Designer

'Do not modify it using the code editor.

InitializeComp onent()

End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventAr gs) Handles MyBase.Load

'Put user code to initialize the page here

End Sub

Private Sub Calendar1_Selec tionChanged(ByV al sender As System.Object,
ByVal
e As System.EventArg s) Handles Calendar1.Selec tionChanged

If Calendar1.Selec tedDates.Count = 1 Then

lResults.Tex t = Calendar1.Selec tedDate

ElseIf Calendar1.Selec tedDates.Count = 7 Then

lResults.Tex t = "Week of " & Calendar1.Selec tedDate & " - " &
DateAdd(DateIn terval.Day, 6, Calendar1.Selec tedDate)

Else

lResults.Tex t = Format(Calendar 1.SelectedDate, "MMMM") & " has " &
Calendar1.Sele ctedDates.Count .ToString & " days."

End If

End Sub

End Class

You do ASP.NET Code Behind Page. Did you build your application and
copied \bin to the server?

Feb 6 '07 #3
On Feb 6, 11:29 pm, "Mark Sandfox" <NoS...@NoSpam. comwrote:
Yes all the generated pages are on the server.
You should copy all DLLs and references from the /bin folder and all
content files (*.aspx, *.ascx).

Do you have .NET Framework intstalled on your server?
Do you have Application created on IIS?

What error do you have when you call http://.../webform1.aspx?

It can be that you don't see complete error in your browser because of
"friendly HTTP error messages".
More information how to disable: http://support.microsoft.com/kb/294807/

Feb 7 '07 #4

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

Similar topics

4
5385
by: ConTactMe | last post by:
I got this code off of javascriptsource.com, and it works like a charm locally. I can't get it to work on the server. I need some coffee. I don't _DRINK_ *coffee*! Can anyone check out the following link, and tell me why it doesn't work? Thanks. http://www.spvision.com/pubimages/DisneySnowGlobe/index.html
9
2004
by: schmeckel | last post by:
I am trying to use some very basic AJAX functionality (update panel for partial page update) on my website. When I run my webpage in VS 2005, the partial page update works fine. However, when I upload the page to my website and try running it, the page updates as a full page update rather than a partial page update. I believe the web.config I'm using is correct and I have also put the System.Web.Extensions dll in my BIN folder. Can...
2
1684
by: dogged | last post by:
Website works locally but not when deployed ================================== Can someone please help with what I hope is a common problem (I’m new to .net). I have a simple website generated by Visual studio 2005 .NET It has a custom handler because I need to poll my website and update the browser page every few seconds. I have developed the project locally and everything is working FINE!
0
9671
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9518
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
10433
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...
1
10161
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
10000
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
9035
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 project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6777
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();...
1
4112
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.