Marcos Torres's Q&A profile
.NET Development Writing dates to XML documents
How do you write a date value to an XMLElement in .NET 2.0 XMLDocument object. I am using the following: Dim deliveryDate As Date = CDate (txtDeliveryDate.Text) elem.InnerXml = XmlConvert.ToDateTime(deliveryDate.ToString( "yyyy-MM-dd" ), System.Xml.XmlDateTimeSerializationMode.Utc). But when I validate against a schema where this element is defined as date data type I get the following validation error: The 'http://www.jmacorp.com/TRW:DeliveryDate' element is invalid - The value '7/1/2006' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:date' - The string '7/1/2006' is not a valid XsdDateTi ...Show All
Visual C# opening a new browser window
OS: Windows XP Pro Languages: C#, SQL Server, ASP.NET Program: Visual Studio .NET 2003 Hi, thanks for reviewing this post. I'm trying to create a link inside a datagrid where when clicked, it will open a new browser window with the url I want. The pages on Google are either not clear or not very helpful. Can someone please give me a pointer or two on how to use C# to open up a new broswer window with my preferred URL Thanks yeah, the url should just be using javascript Window.Open(URL) http://msdn.microsoft.com/library/default.asp url=/workshop/author/dhtml/reference/methods/open_0.asp ht ...Show All
Windows Forms Retrieving rows from childtabel in ado.net 1.1 (net 2003)
Hi again I'm trying to retrieve the data from a childtable in a relationship like so For Each row As DataRow In DsSPAM1.Relations(0).ChildTable.Rows TmpStr += row.Item("NaamGebruiker").ToString.Trim & ": " & _ row.Item("StatusOmschrijving").ToString & vbCrLf Next But this gives me all th record and not the records related to the record in the parent table. tnx and regards Remco VKH txn got it working. pretty ugly but it works stapRow As DataRow stapRow = CType ( Me .BindingContext(DsS ...Show All
Windows Forms Determine who is calling the object (Remoting)
Hello everyone, Is there any way the server can know the client's IP address that calling it's object. The client server architecture is implemented using .NET remoting.... string MyIPAddy = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"].ToString() ...Show All
Visual Studio Team System WebTest playback where form enctype="multipart/form-data"
Hi. I've been having some issues with the replay of a webtests that submit a form having enctype="multipart/form-data". The web test recording tool seems to deal with it just fine, and all the expected actions are performed, however when played back in VS2k5 the scripts generated application errors (i.e not VS tool errors) In our case we removed the enctype attribute and all was fine except we couldn't upload attachments (we were lucky that this was not essential). Something I noticed was the lack of Content Type Header when there was no file attached. I'm no guru on the intricacies of form submission, but I was expecti ...Show All
Visual Studio Express Editions How do I host my VWD website? Do I have to use Micorsoft's server software like SQL Server 2005?
How do I host my VWD website Do I have to use Micorsoft's server software like SQL Server 2005 Are there any other options available to me Michael Non Microsoft in what way Why on earth do you need 1024 terabytes of traffic I doubt you'll find any cheap hosting at that sort of level, no matter what you write your app in. I'd imagine all major hosts would be offering ASP.NET 2.0 by now. I've just done the math - you want to serve 420,000 MB every second of every minute of every hour of every day in the month Assuming that your users all get 150 kb/s, that's 2.8 million users at the same time, all the time. Even if my maths is wr ...Show All
Visual C# How to sent a email?
How do i sent a email http://www.google.com.au/search hl=en&q=C%23+how+to+send+a+email&meta = ...Show All
Visual Studio Team System "Keep checked out" on check-in
With VSS, I have the option to retain a file checked out when I perform a check-in. Is there an equivalent in TFS I don't know of a key-combination to override it on checkin, but I'll double-check that with some of the other folks here. Cheers, Adam ...Show All
Visual Studio Team System Team Build variables changed in RC?
My team build is failing because our projects (.csproj) are not able to "see" some of the team build variables anymore. For example, I can get the value of the build number ($(BuildNumber)) variable from the projects when I run the team build, but $(DropLocation) is not available anymore. I've checked "Microsoft.TeamBuild.targets" and the name of the variables seems to be the same. Did the scope of some variables change Is this a bug Thanks. Pablo, This forum deals mainly with questions specific to the Developer Edition of Visual Studio Team System (Unit test tools, profiler ect). To get your Team Build question answer ...Show All
Visual Studio Team System Product License Key for VS Plugin
I have developed a plugin for VSTS, and would like to know the procedure for obtaining and signing my product with a Product Load Key (PLK). Any info is appreciated. Thanks, Nick You need to sign up for the Visual Studio Industry Partners (VSIP) program to get a PLK to redistribute your VSIP package. A complimentary affiliate membership level is available. ...Show All
Visual Basic Passing data from form to form in the same project
Hello, My project have multiple forms. How can I get a text entry from one form and have it display on another Is it also possible to do with Radio Buttons Thank you. There is two ways to get data between forms. 1. Pass the data in from a parent to a child using properties exposed on the child form, or via a constructor argument. 2. Use delegates to send a message to the form in question when the data changes The common problem people face here is that they create a modal form ( one that you need to click 'OK' or 'Cancel' before you can do anything on the parent form ), and then find they cannot access text fields, etc.  ...Show All
.NET Development Client Certificate
Hi Ravi thanks for your reply. if you take the server side certificate on web based scenario. we need to get certificate from any of the third parties. and install on the server and configure the IIS for "client side certificate required". and We need to configure the IE for sending client certificate on every request. Once its configure every HTTP request will be sent along with the Certificate and validated by the IIS. But in case of WinForms. how do I implement the same Thanks Sathiya Hi Ravi Still now i am confussion what u are teeling,Can u just guide me ho wi will install ...Show All
SQL Server Can SQL Server message other processes?
I'm a developer for a rich client application with a primary grid that should be refreshed when data is changed by other users. I loath to resort to some sort of polling. It would be really cool if there is a native way to raise an event on the client from a SQL Server trigger. RAISEERROR can send a message to the Connection's InfoMessage() event. But of course this will only send the message back to the user who made the change. Is there anyway in SQL Server to raise an error message on another process so that this ADO event can pick it up 1. Don't implement the sink in VBSUX ...Show All
Visual C++
. /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_VC80_UPGRADE=0x0710" /D "_MBCS" /FD /EHsc /RTC1 /MDd /GS- /Yu"stdafx.h" /Fp".\Debug/TestConsoleApp.pch" /Fo".\Debug/" /Fd".\Debug/" /W3 /c /ZI /TP .\TestConsoleApp.cpp I usually test the code first in VS.NET 2003 than I convert the project into VS.NET 2005. It was a normal Wizard Win32 Console application. ...Show All
.NET Development VB.NET Regular Expressions
What namespace or library must be referenced (imported ) to be able to use regular expressions in VB.NET I've seen references that they exist, but don't know how to reach out to use them. Class Regex doesn't have properties Pattern and IgnoreCase. You should use something like this regEx = New Regex( patrn , RegexOptions.IgnoreCase) retVal = regEx.Test(strng) ...Show All
