Marius H's Q&A profile
Windows Forms Implementing roles in a client application
Hi, I am working on a client windows forms application. I would like to enable/ disable menu items according to roles of already logged in-users, and prevent certain actions from being performed. Is there a MSDN article that shows how to implement this security in a OO-way "best practice" way 1. http://www.c-sharpcorner.com/Tutorials/DotNetSecurityVP001.asp 2.&n ...Show All
Visual C# How to download an video and audio?
Good Day! Im a newbie in using c#. I have a problem regarding how to download an video or audio. can any body help me or give some ideas how to make it God Bless....and thanx Hello u can do this by using the WebRequest and WebResponse Classes. // Create a request for the URL. WebRequest request = WebRequest.Create (" any video/audio link"); ...Show All
Visual FoxPro How to use the tables of a Form
I am having problem using the tables listed in its data environment, I would like to zap the records, append some data and replace some records but when I used the zap command it says that the table should be used in exclusive mode, what should I do Hi, When you use a temporary cursor, it's created on each person's machine, for the life of the program or until it's closed. Since you were Zapping your table each time you use it I assumed you did not need the data beyond the life of your application. You will need to create this cursor in code each time you want to use it. You can do this in the Load() of your form. I'm not sure what ...Show All
Windows Live Developer Forums escaped XML string ---> XML?
Hi all, I've got some search query returning from an httprequest and when I parse out the responseXML, it seems to be a single <string> tag surrounding a bunch of escaped XML. I need well-formed XML tags. Does anyone know of a good method for doing this I was able to use RegEx to run through the content and parse back into well-formed xml... for those interested. ...Show All
.NET Development Erroneously empty DataReader
A method that has successfully returned a Datareader for many queries has started returning a DataReader with no rows. No error is generated as a true DataReader object is present, just empty (I can force an error by submitting an incorrect SQLquery). The same query run in Access works. It makes no difference whether I submit the query as SQL or call a stored procedure in Access with the same SQL. If I reduce the query to a simple SELECT (e.g. SELECT * FROM db_ac_ip) the datareader is filled correctly. Adding WHERE or GROUP BY clauses results (wrongly) in the empty DataReader. Using a Dataset in place of a DataReader also results in ...Show All
Visual C++ AFT_EXT_CLASS Query (Urgent!)
Hi, I am using a face tracking sdk which provides... libraryx.lib,libraryx.dll and libraryx.h in libraryx.h the contents include a c++ class defn which i need to instantiate to make use of the library. class AFT_EXT_CLASS libraryx{ // -- class defintion } Now how do I use it.... I have my main class (my_proj.cpp) which #includes the libraryx.h, I also have added stdafx.h and stdafx.cpp files in my project. (see end for both these definition) and included stdafx.h in my_proj.cpp. Also I have included libraryx.lib as an additional dependancy in the linker properties. And placed libraryx.dll in the same directory as the b ...Show All
SQL Server 100 SQL Databases
Hello, Can someone show me the TSQL I need to write in order to create 100 SQL databases in one go. I want them to be called DB1, DB2, DB3, DB4...etc etc I know how to create one database; --------------------------------------------------- USE MASTER GO CREATE DATABASE DB1 ON PRIMARY ( NAME = DB1_dat, FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\DB1.mdf', SIZE=4, MAXSIZE=10, FILEGROWTH=1 ) ------------------------- But I don't want to do this 100 times, Thanks in advance ICW You will have to use dynamic SQL to execute the parameterized CREATE DATABASE statement in a WHILE loop. Search in Bo ...Show All
Visual Studio Express Editions Public/Private Sub Issue
I am sure this question has alot to do with my inexperience with VB...so its probably something simple. I have a form with some text boxes on it. I have them set to be ReadOnly by default. I want to make it so they can be enabled by opening a dialog box and typing a password. So I created a public sub( ) that basically just enables the form fields when the correct password is typed. The problem is that the statement that makes ReadOnly=False seems to be ignored. In fact, even if I try to just show the value of one the textboxes in a messageBox it comes back blank. On the other hand if I make a private sub ( ) and put it on the same ...Show All
SQL Server Bulk Insert -- Access denied issues
Problem: Insert a network file in the DB using BULK Insert Works for a local sqlcmd connection. Does not work for a remote sqlcmd connection. SQL Server is running on Machine 'WalRepTest'. User account for SQL Server Service: 'Domain\vivek_uppal'. This has admin privilieges on SQL Server machine and the machine hosting the file. I have 2 scenarios. Scenario 1 behaves as expected, Scenario 2 causes error. Scenario 1. Connect using sqlcmd from local machine Machine: WalRepTest Windows user: &nb ...Show All
.NET Development What is the best n-tier solution?
In Visual Studio 2005 & ASP.NET 2.0 What is the best n-tier solution A Dataset.xsd through the designer or Hand written class's. Hi, Personally, I would prefer a hand written class. This is for the simple reason that I have full control over it. What I mean is that I could easily try different approach on my code when I create the class. Unlike the .xsd which is being generated by the system. But using code-generated classes could speed up your developement. So if your in a hurry the use the code-generated but if you have lots of time, then create the classes youself... cheers, Paul ...Show All
Visual Studio Express Editions alternative to VbCrLf
Hello!! Is there an alternative to the constant vbCrLf I want to show to the user an msgbox using several rows of information. I found the vbCrLf constant that is defined inside microsoft.visualbasic namespace. Thanks in advanced Jose Eloy Mexico I you insist on not using stuff in the Microsoft.VisualBasic namespace, you can try System.Environment.NewLine. Best regards, Johan Stenberg ...Show All
SQL Server Monitoring the running and execution of SSIS packages with MOM
Hi, Has anyone monitored the execution of SSIS packages with MOM Are there extreme benefits over just utilizing the built in execution and event logs, as well as the Windows Event Viewer What is the recommended way to monitor SSIS execution Thanks, - Joel They're not quite there yet with MOM integration. We had a similar project to integrate into Tivoli and the way I got around it was to use logging providers to output into the Windows Event Log. Tivoli had hooks into the Event Log for the events I gave it and whalla....pagers blaring. If your concern is more from the operations perpective, you ...Show All
SQL Server Microsoft’s SQL Server Version support
Does anybody no where Microsoft publishes a listing of supported SQL Server versions with final support dates Thanks, Dave Here you go: http://support.microsoft.com/lifecycle/search/ sort=PN&alpha=sql+server&x=8&y=10 Peter ...Show All
SQL Server Build Query dialog for OLEDB Source Editor
Can i extend the "Query Builder" dialog of OLEDB Source Editor for developing custom source component ...Show All
.NET Development bug in Int32.Parse
In Visual Studio 2005, the following throws a FormatException and it definitely shouldn't. The same code works fine in Visual Studio 2003. This is the version that I am seeing the problem, running on XP: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional int x = 0; x = Int32.Parse("0") // throws FormatException x = Int32.Parse("00") // works fine x = Int32.Parse("000") & ...Show All
