I have a simple .aspx page. I wish I could attach the picture here.
I want to show the data either in Chart control or Gridview control. When the user selects an option to see the data either in chart control or grid view control, that specific control has to show up and other control has to become invisible.
So far, I am able to populate data succcessfully in the chart control. If the user chooses "Grid view" option, how can I show the data in grid view control in the same location. I don't want the gridview control to be shown in a pop up window or any other window.
I have a list box with multiple values. I need a functionality to move items up/down using Ctrl+uparrow/Ctrl+downarrow. I am here by stuck with a issue when the selected item in the listbox is out of focus the scrollbars do not move correspondingly and the selected item is out of visibility.Any help is greatly appreciated.Thanks in advance.
This is a well-known issue with WebParts. It was fixed in the "ASP.NET Futures CTP (July 2007 release)", but for some reason the fix was never added to the framework. The CTP is no longer available, and you wouldn't want to use it in a .NET 4 project anyway.
The problem was reported to Microsoft[^], but they closed it as "won't fix" because it was too complicated to implement.
Application_Error exists in Global.asax. Most of the unhandled exception are caught here.
While testing, I changed the name of a stored procedure to something that doesn't exist in the database. Now the control does not come to Application_Error. When I debug the app, the debugger shows exception when ExecuteReader is called. I do not have any try...catch
I believe all exceptions must be caught by Application_Error. But it does not behave so.
«_Superman_» I love work. It gives me something to do between weekends.
Can you share few information? 1. What code is present in your Application_Error? If you remove everything in it and place debugger, does it hit the method? 2. IIS7? CustomError mode in Web.config? 3. Are other methods of Global.asax getting triggered, like Session_start? 4. Is there any other .config file in your application?
My Application_Error contains 3 lines - Server.GetLastError, Server.Transfer and Server.ClearError. I tried removing all these lines and simply put a return statement on a breakpoint, but it did not hit.
My development environment is IIS 5.1, Windows XP, Visual Studio 2010. I tried both with customError mode="Off" and customError mode="On" with the same results.
Session_Start is being called in Global.asax and I checked it by placing a breakpoint.