Jump to content
Xtreme .Net Talk

itagraham

Members
  • Posts

    12
  • Joined

  • Last visited

About itagraham

  • Birthday 05/17/1984

itagraham's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Background: Ok, Ten minumtes before the problem occurred of the web page not accessing the VB code-behind I included this code: <body onbeforeunload="DoPostBack()"> <script language="javascript"> function DoPostBack() { __doPostBack('Logout','TEST'); } </script> Placed in Page_Load If Page.IsPostBack Then If Request.Form("__EVENTTARGET") = "Logout" Then 'Code End If End If Then the probem occured. When it came to executing the gridview's 'Select' hyperlink a simple executed post back was caused and no code within was ran. I put in the the code some breaks, then it steps through and worked fine! The next step is obvious, I removed the break points and the problem happened again, grrh! Next I removed the Java code and all related code as see above, still the problem happens. Finially it came to running a trace on the code, while the trace ran so did the code and good too. After the trace was took off the program the problem returned. Any ideas?
  2. This is one which I have been scratching my head over for some time now. On an ordering page is a gridview, that grid view displays all unprocessed orders. Here the problem is; I need the orders to be up-to-date. Is there a solution that I may display up-to-date orders every five minutes with asp.net 2.0? Any help would be much appreciated! Thanks,
  3. When an event is executed (e.g. command button) and the code behind begins to be carried out; how can I stop the user from clicking a second time cancelling the process? Is there code to say, if in midst of an event and a new event is triggered either, put it into a queue or ignore it? Another answer I was toying with was to immediately disable the buttons and on page load executing the specific module relating to the original intended event. Would this be advisable or am I running into problems? If anyone could add comment I would be greatful. Many thanks
  4. Hello, Here is the problem; I have built a website that makes and receives orders with management facilities on it (Bit of background). The sessions were working fine doing what they are meant to be doing until lately when they just stopped working, every one of them. Sometimes they will work for a process and then refuse to work again for long periods of testing time. Roughly I would use about 10 sessions over 6 WebPages. Has anyone ever encountered such a problem? Is there such a thing as a limited number of sessions? Might there be a problem with the web config or the IIS? Any thoughts on the matter would be of great help as this is an urgent matter.
  5. Does anyone have any tips for web applications that are 24/7/365 left on and running? Anything to watch out for, Any relevant web sites!?! Much thanks,
  6. My web application running on an intranet 99% of the time runs fine, however, on rare occasions the system will not start and requires a total IIS restart. Has anyone ever heard of or experienced this problem and is it fixable? All settings on the IIS are correctly set to the applications requirements, below is a copy of the error: Server Error in '/DgsProcessOrder' Application. -------------------------------------------------------------------------------- Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] System.Data.DataTable.Clear() +324 System.Data.DataSet.Clear() +145 DGSReqDGSApp.OrderSummary.Page_Load(Object sender, EventArgs e) System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +720 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
  7. I am programming my web page to accept a range of crystal reports and display them. My problem is it simply is not working and i have been wrecking my brain about it for the past two days. Below is a copy of my cope and error displayed, it is also worth knowing that that the login details are correct not matter what the error page says! lol Before i let you at i believe the problem may be with the way i set up my login, is there some code i have to enter between the .reportsource and the .bind? Thanks in advance Dim strGenericAddress As String = ConfigurationSettings.AppSettings("ReportsLocation") Report.Load(strGenericAddress & ddlDepartment.SelectedValue & "\" & ddlReport.SelectedValue, OpenReportMethod.OpenReportByTempCopy) If Report.IsLoaded Then Dim i As Integer For i = 0 To (myParmNameList.Count - 1) Step 1 Report.SetParameterValue(CStr(myParmNameList.Item(i)), myParmValueList.Item(i)) Next Dim strLoginDetails() As String = Split(ConfigurationSettings.AppSettings("CRLogin"), ",") Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo myConnectionInfo.ServerName = strLoginDetails(0) myConnectionInfo.DatabaseName = strLoginDetails(1) myConnectionInfo.UserID = strLoginDetails(2) myConnectionInfo.Password = strLoginDetails(3) SetDBLogonForReport(myConnectionInfo, Report) crv.ReportSource = Report crv.DataBind() crv.Visible = True Session("Report") = Report End If Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo, ByRef myReport As ReportDocument) Dim myTables As Tables = myReport.Database.Tables For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In myTables Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo myTableLogonInfo.ConnectionInfo = myConnectionInfo myTable.ApplyLogOnInfo(myTableLogonInfo) Next End Sub Server Error in '/DGSFactoryV2' Application. -------------------------------------------------------------------------------- Error in File C:\Test Environments\DGS Reports\Factory\mp_whsCycleCountFound.rpt: Unable to connect: incorrect log on parameters. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Error in File C:\Test Environments\DGS Reports\Factory\mp_whsCycleCountFound.rpt: Unable to connect: incorrect log on parameters. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [LogOnException: Error in File C:\Test Environments\DGS Reports\Factory\mp_whsCycleCountFound.rpt: Unable to connect: incorrect log on parameters.] �.�L(String ��, EngineExceptionErrorID ��) �.�G(Int16 � , Int32 ��) �.�F(Int16 ��) CrystalDecisions.CrystalReports.Engine.FormatEngine.GetPage(PageRequestContext reqContext) CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext) CrystalDecisions.Web.ReportAgent.{(Boolean �C) CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e) System.Web.UI.Control.PreRenderRecursiveInternal() System.Web.UI.Control.PreRenderRecursiveInternal() System.Web.UI.Control.PreRenderRecursiveInternal() System.Web.UI.Page.ProcessRequestMain() -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
  8. Is it possible to see a slice of you code to analysis it?
  9. PS. If you went down this route i would start to thing about creating a simple engine that recieved SQL statents and execute them in Access. Like what you have down in you code only pulled out and out in a public sub!
  10. From my experience of working with asp.net and SQL I personally close the connection immediately after and then execute the next SQL transaction if i have one to execute. In and out in a flash, session per statement.
  11. I have a web application that is hosted by a server using the IIS to manage it. The program at the moment has about 10 users and is run over an intranet. There is a data grid with holds orders specific to an order id. Here lies the problem. Each application is picking up other users order lines over the network and displaying them. I have exhausted all my solutions and was wondering if anyone could help or give any experience if they have dealt with something similar? Thanks
  12. Hello, I am relevantly new to asp.net by 5 - 6 months. I have successfully created an intranet program and now am looking to add security to it. Down to the question; is it possibly that anyone could give me a clear definition or example on how to use the active directory on a server to validate inputted username and password. I have looked over the asp forum and more and can�t seem to grasp it, maybe due to too much stress! lol! Any help would be gratefully appreciated. Thanks
×
×
  • Create New...