Ok, so this page and the others that are complaining are reports in the form of a gauge. All they really do is go to the database pull a number and create the guage image with the appropriate number.
Imports System
Imports System.Collections
Imports System.ComponentModel
Imports System.Data
Imports System.Data.OleDb
Imports System.Drawing
Imports System.Web
Imports System.Web.SessionState
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Imports Dundas.Gauges.WebControl
Namespace WebApplication7
Partial Class WebForm1
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
Private Sub InitializeComponent()
End Sub
' Protected WithEvents SqlConnection1 As System.Data.SqlClient.SqlC
' Protected WithEvents SqlCommand1 As System.Data.SqlClient.SqlC
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
Dim MyConn As SqlConnection = New SqlConnection(System.Confi
Dim strSQL As String
Dim objCommand As SqlCommand
Dim objDatareader As SqlDataReader
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim todays_goal
Dim goal_desc As String
Dim max_scale
Dim suite_str As String
'Dim metric_str As String
Dim report_type_str As String
GaugeContainer1.Labels("Tt
suite_str = "Shopping"
report_type_str = "Frequency"
goal_desc = ""
db_Open_CONN()
strSQL = "sp_omn_goals_Freq_Depth '" & suite_str & "','" & report_type_str & "'"
run_sql()
objDatareader.Read()
todays_goal = IIf(IsDBNull(objDatareader
max_scale = (Math.Ceiling((todays_goal
goal_desc = IIf(IsDBNull(objDatareader
objDatareader.Close()
strSQL = "sp_omn_metrics_Freq_Depth
GaugeContainer1.Labels("Tt
GaugeContainer1.CircularGa
GaugeContainer1.CircularGa
GaugeContainer1.CircularGa
GaugeContainer1.CircularGa
GaugeContainer1.CircularGa
GaugeContainer1.CircularGa
GaugeContainer1.CircularGa
' Connect the pointer to the value source.
GaugeContainer1.CircularGa
' GaugeContainer1.StateIndic
' Render the gauge as an image.
GaugeContainer1.RenderType
Dim actualval As Double
run_sql()
objDatareader.Read()
actualval = IIf(IsDBNull(objDatareader
GaugeContainer1.StateIndic
GaugeContainer1.NumericInd
GaugeContainer1.CircularGa
db_Close_CONN()
End Sub
Private Sub db_Open_CONN()
MyConn.Open()
End Sub
Private Sub db_Close_CONN()
MyConn.Close()
MyConn = Nothing
End Sub
Private Sub run_sql()
objCommand = New SqlCommand(strSQL, MyConn)
objDatareader = objCommand.ExecuteReader()
End Sub
End Class
End Namespace
Main Topics
Browse All Topics





by: carl_tawnPosted on 2008-03-07 at 07:06:37ID: 21070757
What does the page "SHOPPING_frequency2.aspx" actually do? Some sort of database work judging from the error, perhaps something to do with the change in date at midnight.
Theres not really much more help we can give without having an idea what the page triggering the error is actually doing.