JosephDev's Q&A profile
Visual Basic ASP / MS access - BEST Practices
PROCESS #1: I have IIS hosting an asp file that collects data (asp forms), then user clicks button and it gets sent to another ASP form that the user can verify all the data is correct and click another submit button. When you click teh submit button, the information is then added to a MS Access database. (access v11.6566) PROCESS #2: The information the user submitted to my access DB was a credit card and address information. My bank only excepts HttpsPost of an XML file and sends back an xml file of the credit cards processing details. I am able to do this with a seperate ASP form and read the xml file sent back and fill the ...Show All
Visual Studio Tools for Office The deployment doesn't work always...
As I finally succeeded to install the RC VSTO version on my machine, I decided to deploy and to make it available to all my users... However, I just received 3 messages: 2 have been finally able to install it...one not again :(... As I can read here , there are some cases where even VSTO may fail... Any news about it Any possible solution Thank you LastHope Yes, I did (however, somehow I'm not sure it works correctly, even if I followed that guide : I thought that the installer would have installed the prerequisites, but it didn't, as my users told me) All of them tried to install my plugin made without VSTO many times, and they alread ...Show All
SQL Server Database Mail does not work from SQL Agent Job
Receiving Message: [264] An attempt was made to send an email when no email session has been established Just installed Service pack 1 and that did not help. http://blogs.msdn.com/gopsdwarak/archive/2006/04/25/583434.aspx Take a look at the above blog and this should address the problem you are running into. Thanks, Gops Dwarak ...Show All
Visual Studio Team System Frequent incorrect build results - projects skipped that are out of date
I have a solution with 17 C# projects - two .EXEs and the rest DLLs, including a number of unit test projects. I can't begin to relate how often I run into problems due to incorrect build outcomes - one or more projects were not built even though clearly out of date. I see this sort of thing when running tests from the test manager (which sometimes completely refuses to even try to build anything and just complains that it can't find the output file of the build that it never initiated) as well as other scenarios that should cause a build. I've checked that all the appropriate dependencies between the projects are specified in the ...Show All
Visual C# How do I compare two TimeSpan objects to see if they overlap
Is there a way to compare two TimeSpans to see if they overlap For example: (1/1/2006 - 1/31/2006) overlaps (1/15/2006 - 2/14/2006) (1/1/2006 - 1/31/2006) does not overlap (3/1/2006 - 3/10/2006) . I want to do programatically determine whether two date ranges overlap. How can I accomplish this Unfortunately TimeSpans do not contain dates, instead they contain the span of time between two arbitrary points in time. In order to determine if one date range is within another, you would first have to construct DateTime objects that represent the actual boundaries of your ranges with something like this: private bool ...Show All
Visual C# How to check enum?
I have an enum public enum ReadMode { All, FromEnd, FromStart } In my code there is possible to call Read(..., ReadMode.FromEnd | ReadMode.FromStart) but inside the method, how can I check what read mode is really specified (multiple modes are accepted) now I use if ((mode & ReadMode.FromEnd) == ReadMode.FromEnd) { } if ((mode & ReadMode.FromStart) == ReadMode.FromStart) { } but result is not as expected. It just works not properly. There is a really great article from Edward Smoljanovic about masks and flags: Masks and flags using bit fields in .NET . Here is a little resour ...Show All
Software Development for Windows Vista Can't copy executables ?
I'm on 5219 (Beta2) as given out at the PDC. I'm a member of the local machine administrators group, but I can't copy executable programs to the program files directroy, or format discs All I get is access denied or permission denied. -- Dan It's not working terribly well in 5219. When I turn it on it only seems to show process which change state (so some CPU or memory usage change) it doesn't list everything, hence my not thinking it works .... ...Show All
Visual Basic How do I resize the image in the picturebox?
I'm using VB 2005. I know how to resize pictureboxes but is there an easy way to resize the actual image in the picturebox One of the easiest ways would be to simply resize the image itself (in memory) and then set the PictureBox's Image property to this in memory copy. In order to resize the actual image, take a look at this little code block . ...Show All
Visual FoxPro How to set automatically start project folder?
Hi! I add a picture, in my project, but, when I change my project directory, or when I rename my folder, fox, asked me if I want to change the home directory of my project! I choose yes, and my project run correctly, but, it can't find my picture! I must write getdir( ) at the beginning, to set my start folder, if I want that the project run correctly with my picture! I try the curdir( ) or the home( ) but, this don't recognize correctly my project directory...the take the default Visual Fox Directory! How can I set automatically my star project folder Hi there, I know this is a FoxPro thread, but I have a similar query about se ...Show All
.NET Development How to Develop-Basic Network Application?
Hello every one i need to develop a network monitoring system i dont have any experience in network programming but i m working on .NET framework from last 2 years using both c# & vb.net the basic requirements are 1.How many Host are connected 2.How long the Host Connected 3.Which site is viewing which host (traffic Analyzer) i m not asking right now how to develop these features what i wana know is should i have to develop 2 application 1 is for server & 1 is for client or only 1 app is enough... is there any open source network software based on .NET any one develop such a system i m just a starter any guidelines would ...Show All
Visual Basic Getting the directory "OpenFileDialog"
Hello I use "OpenFileDialog" and I chose a file. How can I get just the directory (file directory that I chose it) Thanks for assistance I want to use "OpenFileDialog" and get the directory of the file that I selected it. ...Show All
.NET Development (Yet Another) OleDB Database Update Problem
First of all, let me thank you for at least trying to help. I have to finish a simple program by friday and although the code works I have a few problems: I have a database with 2 tables "Table1" and "Table2" Each Table have 4 fields which are the tablenumber + F + column number So in table1 we have 1F1, 1F2, 1F3, 1F4 And in table 2 2F1, 2F2, 2F3, 2F4 The code uses an OleDbCommandBuilder to create the queries. With the names I mentioned before the code works perfectly. Adding spaces to the tablenames --> "Table 1" and "Table 2" I got errors. This was ofcourse rectified by using [ ] around the tablen ...Show All
.NET Development MXLHTTP 302 status
I am using Microsoft.XMLHTTP to make a request and the response to this request invloves a redirect, is there anyway to capture the header information on the original response before it's redirected I can see the first response's header information using fiddler which comes back with status of 302(redirection) but using the XMLHTTP I only see the header information for final response which is the result of a redirection. oHttp = new ActiveXObject("Microsoft.XMLHTTP"); .... .... oHttp.onreadystatuschange = handleResponse; function handleResponse(){ if (o.status == 302){ alert(''); } } but this creates ...Show All
SQL Server System.Web.Services.Protocols.SoapException: The item '/foldername' cannot be found
I am trying to figure out how to correctly reference the directory to my subscriptions: Dim subs As Subscription() = rs.ListSubscriptions( "/SSS" , Nothing ) System.Web.Services.Protocols.SoapException: The item '/Hedi' cannot be found. ---> FYI: I replaced sss for privacy purposes only here because the "/" character is being escaped. You don't need to do this when using the SOAP API. In your code, check "rs.Url", and confirm that is pointing the the server and instance that you have actually created the item on. If it is, then confirm that you have appropriate permissions to actually see the item ...Show All
Visual Studio Team System load testing query for 1.0 application
Hi, I would like to apply load testing in 1.0 .net application, for that i am thinking to convert the existing application into .net 2.0. So after converstion, i will do the load and web testing for checking the performance of the Application. but i have one doubt that in 2.0 framework i can't find out the exact performance of the Application.Is it so please suggest me how can i proceed for checking the performance of the 1.0 application. Regards, Amol Puri. Do you have VSTS for Developers If so, you can try to attach the new code profiling tools to your 1.0 application. I've never tried it, bu ...Show All
