visual-studio-2010

How to show asp.net chart grouped by 2 parameters

主宰稳场 提交于 2020-01-06 08:46:08
问题 I want to present some condensed data to the user using the Chart component. SQL (C# / Oracle): SELECT c.date, c.approved, count(distinct c.f1) amt_c, count(b.f1) amt_b, sum(b.value) sum_values FROM contracts c JOIN bens b ON c.ben_id = b.id WHERE :YearMonth = to_char(c.date,'YYYYMM') AND NOT c.approved = 'REJECTED' GROUP BY c.date, c.approved ORDER BY c.date I have this SQL in a method that passes a DataSet to the ObjectDataSource in the .aspx page (The approved field can have 3 values:

detect conflict time using query in vb.net?

馋奶兔 提交于 2020-01-06 08:38:13
问题 This is my query. ("Select Count(*) From table1 where [t1] <= @TimeIn And [t2] >= @TimeOut;", cn) My problem here is I can't compare other times. For example, if I input 7:00-9:00 then it will be saved as a new time and if I then input 8:00-10:00 it also save in my database how can I solve this I want to prevent the second input time from conflicting with the first? 回答1: There are three combinations of checks you need to perform when looking for conflicting Time Windows. Is the TimeIn within

VS2010 reference dll is missing from the list

天涯浪子 提交于 2020-01-06 08:29:07
问题 I'm trying to add System.Web.Extensions.dll to my C# console application so I can parse JSON. I'm using VS2010. When I right click -> Add reference though it does not list the dll. However when I search for the file on my computer it does exist. Please advise on the proper way to add this dll. 回答1: Right click on your project and go to properties. In the Target framework drop down ensure that you have ".NET Framework 4" selected and not ".NET Framework 4 Client Profile". When you have Client

vb.net IsDBNull if statement not displaying msgbox

末鹿安然 提交于 2020-01-06 08:20:28
问题 I am trying to check for empty records in an access db and thought that the code I am using would work. What is supposed to happen, is if there are no records for that table in the db, then the msgbox is displayed. However, nothing is displaying when I run the code. Am I using IsDBNull the correct way or is there a better way to do it. I am getting to grips with using params instead of & references and this shall be changed after testing. Many thanks. Dim con1 As New OleDbConnection("Provider

Missing cursor in Visual Studio editor after doing a search or using a clipboard manager. Works in safe mode

人走茶凉 提交于 2020-01-06 08:17:34
问题 I have an odd behavior with Visual Studio 2010 editor. Whenever I do a search (ctrl-F) or do a paste using a clipboard manager like ClipX or Ditto, the cursor is missing. I have to click with the mouse inside the editor to get the cursor. When I do these actions with Visual Studio running in safe mode, they work fine. So I thought it might be an extension or add-on causing this. I disabled all the add-ons and extensions and ran VS with /resetsettings and /setup but I still get the issue. Any

Grid View Error Visual Studio 2010 asp.NET Framework 4. Unable to find .NET Framework Provider

一世执手 提交于 2020-01-06 08:16:13
问题 I have an SQL Compact edition database as a local file. I'm using Visual Studio 2010 to access the database and make my asp.NET website. In my aspx page design view, the data displays fine, and when I configure it and run a test query, it works fine... However When I run my page I get this strange Error. Unable to find the requested .Net Framework Data Provider. It may not be installed. Description: An unhandled exception occurred during the execution of the current web request. Please review

Visual Studio 2010 program closes immediately after running

本小妞迷上赌 提交于 2020-01-06 08:00:35
问题 The following program closes up after it opens. Unlike using DirectX, there's no game loop of any sort that waits to see when the user decides to close the program when using OpenGL. Mind anyone informing me on what is going on? #include <stdlib.h> #include <stdio.h> #include <string.h> #include <GL/glew.h> #include <GL/freeglut.h> #define WINDOW_TITLE_PREFIX "Chapter 2" int CurrentWidth = 800, CurrentHeight = 600, WindowHandle = 0; unsigned FrameCount = 0; GLuint VertexShaderId,

Getting Unknown errors in DirectShow Project

让人想犯罪 __ 提交于 2020-01-06 07:38:42
问题 i downloaded an direct show project from the link GMFBridge - Multiple Graphs in DirectShow I added the following libraries C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\Debug\strmbasd.lib C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\winmm.lib C:\ProgramFiles (x86)\Microsoft Visual Studio 10.0\VC\lib\comsuppw.lib When i build the project i am getting the errors:- error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter:

Getting Unknown errors in DirectShow Project

大兔子大兔子 提交于 2020-01-06 07:38:27
问题 i downloaded an direct show project from the link GMFBridge - Multiple Graphs in DirectShow I added the following libraries C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\Debug\strmbasd.lib C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\winmm.lib C:\ProgramFiles (x86)\Microsoft Visual Studio 10.0\VC\lib\comsuppw.lib When i build the project i am getting the errors:- error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter:

ResourceReferenceKeyNotFoundException declared on Dictionary.xaml

陌路散爱 提交于 2020-01-06 07:00:47
问题 I have an ObjectDataProvider declared on a dictionary: <ObjectDataProvider x:Key="Resources" ObjectType="{x:Type const:CultureResources}" MethodName="GetResourceInstance"/> And I have a class that wants to find it like this: m_provider = (ObjectDataProvider) App.Current.FindResource("Resources"); But when it tries to find the Resource, it launches the error ResourceReferenceKeyNotFoundException And can't find my resource... Here you have an image on how my project is divided: The Default.xaml