473,406 Members | 2,378 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,406 software developers and data experts.

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_selctionchanged 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.Page

Protected WithEvents lResults As System.Web.UI.WebControls.Label

Protected WithEvents Calendar1 As System.Web.UI.WebControls.Calendar

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.

<System.Diagnostics.DebuggerStepThrough()Private Sub InitializeComponent()

End Sub

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

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

'Do not modify it using the code editor.

InitializeComponent()

End Sub

#End Region

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

'Put user code to initialize the page here

End Sub

Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles Calendar1.SelectionChanged

If Calendar1.SelectedDates.Count = 1 Then

lResults.Text = Calendar1.SelectedDate

ElseIf Calendar1.SelectedDates.Count = 7 Then

lResults.Text = "Week of " & Calendar1.SelectedDate & " - " &
DateAdd(DateInterval.Day, 6, Calendar1.SelectedDate)

Else

lResults.Text = Format(Calendar1.SelectedDate, "MMMM") & " has " &
Calendar1.SelectedDates.Count.ToString & " days."

End If

End Sub

End Class

Feb 6 '07 #1
3 1193
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_selctionchanged 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.Page

Protected WithEvents lResults As System.Web.UI.WebControls.Label

Protected WithEvents Calendar1 As System.Web.UI.WebControls.Calendar

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.

<System.Diagnostics.DebuggerStepThrough()Private Sub InitializeComponent()

End Sub

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

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

'Do not modify it using the code editor.

InitializeComponent()

End Sub

#End Region

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

'Put user code to initialize the page here

End Sub

Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles Calendar1.SelectionChanged

If Calendar1.SelectedDates.Count = 1 Then

lResults.Text = Calendar1.SelectedDate

ElseIf Calendar1.SelectedDates.Count = 7 Then

lResults.Text = "Week of " & Calendar1.SelectedDate & " - " &
DateAdd(DateInterval.Day, 6, Calendar1.SelectedDate)

Else

lResults.Text = Format(Calendar1.SelectedDate, "MMMM") & " has " &
Calendar1.SelectedDates.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*********************@a34g2000cwb.googlegro ups.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_selctionchanged 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.Page

Protected WithEvents lResults As System.Web.UI.WebControls.Label

Protected WithEvents Calendar1 As System.Web.UI.WebControls.Calendar

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.

<System.Diagnostics.DebuggerStepThrough()Privat e Sub
InitializeComponent()

End Sub

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

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

'Do not modify it using the code editor.

InitializeComponent()

End Sub

#End Region

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

'Put user code to initialize the page here

End Sub

Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object,
ByVal
e As System.EventArgs) Handles Calendar1.SelectionChanged

If Calendar1.SelectedDates.Count = 1 Then

lResults.Text = Calendar1.SelectedDate

ElseIf Calendar1.SelectedDates.Count = 7 Then

lResults.Text = "Week of " & Calendar1.SelectedDate & " - " &
DateAdd(DateInterval.Day, 6, Calendar1.SelectedDate)

Else

lResults.Text = Format(Calendar1.SelectedDate, "MMMM") & " has " &
Calendar1.SelectedDates.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
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...
9
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...
2
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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
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 project—planning, coding, testing,...

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.