kevinho's Q&A profile
Visual Studio "Report is being generated"-- but no data
I have a web page that generates a report for everyone,I set up the web.config this way: < location path = " Reports/MyReport.rdlc " > < system.web > < authorization > < allow users = " * " /> </ authorization > </ system.web > </ location > < location path = " MyWebPage.aspx " > < system.web > < authorization > < allow users = " * " /> </ authorization > </ system.web > </ location > If I browse this page before signing in, I can see "Report is being generated", but this message will last forever, no data will be displayed. If I browse this page ...Show All
Visual C# Check if string contains valid year
How do I check if a string contains a valid year only... I've the classic way but it seems it works only with complete dates. Here's what I tried: string MyString = "2001"; DateTime MyDateTime = DateTime.Parse(MyString); Console.WriteLine(MyDateTime); This code snippet throws an exception ! Any help would be appreciated. My Version: string MyString=" 1776 "; Console.WriteLine(DateTime.ParseExact(MyString," yyyy ", CultureInfo.CurrentCulture)); ...Show All
SQL Server SQL Server 2005 Remote Connectivity
I am an application developer with an existing system developer in SQL Server 2005 Express and Visual Studio 2005. I have installed the system I wrote at a physician's office, and it is working fine on a local computer utilizing XP operating system. There is a requirement to allow other terminals to connect to this XP terminal to execute the application, so I am exploring possibilities for connecting remotely from the other computers in the physician's office. I am running Virtual Machine for my client computer. I modified SQL Server 2005 on my main computer. I enabled both TCP/IP and Named pipes in the SQL Server Surface Area Configuration utility. I also set SQL Server Browser to start automatically. The local application ...Show All
Visual Studio Express Editions Virtual Variable
Hi All, I have these two class class Base { public int number = 1; public override String ToString(){ return number.ToString(); } } class Derived : Base { public new int number = 2; } static void Main(){ Base base = new Base(); Derived derived = new Derived(); Console.WriteLine(base.ToString()); Consolt.WriteLine(derived.ToString()); } I was expecting to print out: 1 2 but I am getting: 1 1 Is there a work around to achieve what I was intended to do Thank you, Riady Hi, fields cannot behave like virtual functions. To get what you want you will need a virtual function GetNumber which you override in Derived. ToString must then use GetNumber and not the field number. -- SvenC ...Show All
Visual C# is MicroSoft.Net is plate form Independent
hello how are you i have the views 1). .NET Framework from Microsoft can only be used in Windows. If you want to used .NET Framework in Linux, then you must go to Mono Project. 2). It was designed to be platform independent, but Microsoft only provides a runtime for Windows. Look at Mono or Portable.NET for for alternative platforms. and one more question what is mono or protable.Net Also note that, while you are correct that Microsoft only provides an implementation of .NET for Windows, Microsoft has provided standards and specifications that make projects like mono possible. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. beginners tutorials
Hi Where is the best place to find beginners tutorials in xna. thank you Yes, don't forget George's xnadevelopment.com ... The Jellies alone are worth the visit! :) ...Show All
Visual Studio Prerequisists CD VS 2003 .NET Enterprise Architect
Ihave the .net 2003 enterprise edition but dont have a prerequisites cd, were can I get one If I cant can I install the components individually (like install .net 1.1 then some other common applications ) I figured out the solution. Install the .Net 1.1, .Net 1.1 SP1, J# redist. above then run the setup.exe with the command line "setup.exe /NO_BSLN_CHECK" ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA without game studio
Hello, I have visual studio 2005 installed and I was wondering if I can use XNA alone with Visual Studio 2005 without installing c# express. If I can, how do I do it. thanks. Just reference the XNA assemblies and use it like any other library. Thing is, you won't be able to use the content pipeline as it integrates with C# Express. However I saw someone on here that made a standalone app that processed content - you might look at that for use in your toolchain. Also, you cannot deploy to the xbox unless you use the game studio express stuff. For windows-only stuff you're not limited to C# and C# express, it's just that you get to use some of the more convenient tools that the XNA guys made. ...Show All
Visual Studio 2008 (Pre-release) PropertyGrid
I'm using a Windows Forms control in my WPF app and would like to get grid of it actually...is there a control replacement for the PropertyGrid :) Nicolas, You are right it's merely to have a pure WPF application because of all the differences between WPF and Winforms a Winforms PropertyGrid doesn't really make things easy to create a designer for a WPF application....actually I am finding that I have to do more work to adapt System.Drawing and System.Windows.Forms types over to their WPF counterparts and probably could have developed a rudimentary propertygrid in WPF. :) ...Show All
SQL Server Before Insert Trigger
Hi, I've a SMS gateway that inserts SMS message into a varchar column. However, when it receives a SMS with single quote, it fails to insert into the varchar column. E.g., It's a...How's life .... I need help to find a workaround. Is there a equivalent of Before Insert trigger Also realised that the locgical 'inserted' table cannot be updated. Advice pls. There is an instead of insert trigger, but I don't think that will help. The failure would happen before the trigger could help. For example: create table sms ( --should have a primary key msg varchar(250) ) go insert into sms select 'that's life' Msg 102, Level 15, State 1, Line 2 Incorrect syntax near 'life'. Msg 105, Level 15, State ...Show All
Silverlight (formerly WPF/E) how i used createFromXaml method parametre as xaml file
I know that we can create a xaml controls dynamically by using CreateFromXaml method. But The CreateFromXaml method takes a parameter as xaml control syntax but is it possible to send parameter as a xaml file name. or if any other way how i cretae dynamic controls by using xaml file . Here i will Explain my problem in detail: I have one Main.xaml file in this file i creted a one canvas in which i want to show different xaml files and two buttons say first and second . When i clicked on first button then my first.xaml file is loaded in canvas ,and when i clicked on second button then second.xaml is loaded in canvas If any solution for this please let me know. As Chad says, ...Show All
Software Development for Windows Vista DirectShow TV
I recently bought a USB stick to watch DVB-T television. Whilst the hardware is great, the software is appaling. the compnay have told me they use DirectShow. I have looked at the documentation etc. but it is really confusing. Can someone point me to a resource on how to build applications to interface with a BDA compatible DVB-T device, using DirectShow, for people who don't know anything about the subject Thanks. If you have the Platform SDK installed you should be able to use Graphedit to create a Filter Graph that will operate the USB device. Using Graphedit will give you an idea of how a DirectShow filter graph is constructed. Knowing how to interface with a specific device is not neccessarily required ...Show All
Visual Studio 2008 (Pre-release) Change rectangle property from code
Hi guys, i've got a rectangle i've drawn in a grid, how can i change its propertys from code, i think i need to build once or something, should i be using X:name or something...FindName, i'm a bit lost, thanks guys si < Page x:Class = " WPFpong.Page1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " Page1 " Width = " 800 " Height = " 600 " KeyDown = " OnKeyDownHandler " > < Grid Background = " Black " > < Rectangle Stroke = " White " Fill = " White " Margin = " 12, ...Show All
SQL Server SQL Server 2005 SP 2 December CTP authentication fails
Hi, if I try to install SP 2 using SQL Server authentification (sa) it fails. The following lines appear in the file "Hotfix.log": 01/03/2007 14:08:23.859 Authenticating user using SAPWD 01/03/2007 14:08:23.875 Validating database connections using Windows Authentication 01/03/2007 14:08:24.171 Pre-script database connection failed - continuing to wait for SQL service to become responsive to connection requests ... repeated 60 times ... 01/03/2007 14:13:33.625 The following exception occurred: SQL Server reagiert nicht vor der Skriptausfuhrung Date: 01/03/2007 14:13:33.609 File: \depot\sqlvault\stable\setupmainl1\setup\sqlse\sqlsedll\instance.cpp Line: 1411 Why does it try to use Windows Authentification although I have tol ...Show All
SQL Server Clone new database from existing
How do I go about creating a cloned copy of an existing database on the same server I basically want to set up a test copy of a production database, but let it reside on the same server with a slightly different name, prefixed with 'Testing_". I typically just use Studio Express Manager and not scripts to do admin tasks. Here's what I tried that didn't work so well: * Had full backups of production db * Detached production database I wanted to clone * From within Win Explorer, copy the .mdf and .ldf files within same data folder and gave them a new name, prefixing with "Testing_" * Re-attached prodution db * Attached "Testing_..." database Sql Express seems confused at this point with new database I attached. It re ...Show All
