Search

You searched for the word(s): userid:637497

Matching Posts

  • Testing the Type of an Object in VB

    This isn't exactly an ASP.NET question, but it came up during ASP.NET development, and I know many people know the answer. It's actually a C# vs. VB Question, and here it is: What is the VB equivalent of the following? ParentObject myParentObject = new ParentObject(); DerivedObject myDerivedObject = new DerivedObject(); if (myDerivedObject is DerivedObject) // do something Basically, I need to test if a certain object is of a particular type or not. In C# it's really easy, but I can't
    Posted to Web Forms (Forum) by Aaron Edwards on 11/10/2009
  • Handling Adapter.FillError

    I'm trying to handle the DataAdapter.FillError event, so I can see what values are coming in from the database are causing the error I keep getting. I add a handler as follows: AddHandler Adapter.FillError, New FillErrorEventHandler(AddressOf myFillError) Me.Adapter.Fill(dataTable) And here is the myFillError method. Private Shared Sub myFillError(ByVal sender As Object, ByVal e As FillErrorEventArgs) Handles _adapter.FillError Dim i As Integer = 0 End Sub So I'm just trying to get the dbugger
  • Re: Ajax Error since Upgrading to 3.5

    Problem solved. It was simply that I had a class named location, lower case, which was being returned by my web service. It was colliding with the window.location class in JavaScript. Of course the error message didn't provide any clue, and the fact that it worked perfectly in Firefox, and had worked perfectly under .NET 2.0 didn't help either. Aaron
  • Re: Ajax Error since Upgrading to 3.5

    Here is a little more information. After looking closely at the stack trace, it turns out that the error is happenning during the application initialization, specifically the Sys$_Application$_doInitialize method. All of this happens before the pageLoad event is even raised. Also, I am using a couple of controls from the Ajax Toolkit, and the Ajax Data Controls Gridview. Thanks.
  • Re: Ajax Error since Upgrading to 3.5

    It's not the AjaxControlToolkit, and it's not the Ajax Data Controls. I took them both out of the page and I still get this error. Aaron
  • Re: Ajax Error since Upgrading to 3.5

    I'm just going to keep adding additional information as I get it, even though it feels a bit like casting messages-in-a-bottle out to see. Hmm... perhaps there's a song in there. The problem is something to do with the script manager, and more specifically the serviceReferebce attribute. How do I know? Glad you asked. I created a new, blank page that uses the same MasterPage as my offending page. When I ran it I got an error, saying that a ScriptManager is required to be above any code that
  • Re: Issue with Update Panel when using Session or Viewstate

    It sounds like an exception is being thrown that Ajax is "eating", meaning you're not getting notified. Does the little yellow exclamation point appear in the bottom left corner of your screen when you make your selection in the first radiobutton list? I'd step through it in the debugger. If all else fails, post your code. Aaron
  • Re: Ajax Error since Upgrading to 3.5

    Here is my web config... <?xml version="1.0"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --> <configuration> <configSections> <sectionGroup name="system.web.extensions"
  • Ajax Error since Upgrading to 3.5

    Ever since upgrading my site to .NET 3.5 (I needed LINQ), I've been getting this annoying error on one of my pages: 'length' is null or not an object. The line of code that is throwing the error is auto-generated by ASP.NET Ajax, and it looks like this: if ((hash.length > 0) && (hash.charAt(0) === '#')) And it lives in the JavaScript function called Sys$_Application$get_stateString(). Any ideas? Aaron
Page 1 of 23 (228 items) 1 2 3 4 5 Next > ... Last »