Search results for query: *

  • Users: GrexD
  • Order by date
  1. G

    Adding Soap Header

    I received a WSDL from a company so I can access their service. In testing with them they supplied me with a request which has <soap:Header><con:Context> (see below), which I copied and pasted in to soapUI for testing. Most of the elements must be populated or the request fails. After testing...
  2. G

    Not set to instance of object for Service Reference

    Thanks. That got it. I was treating those like properties. I'm now getting a reject message from the server, so the code seems to be working, but just not the way I want it. Do you know of any good posts or articles dealing with using certificates in vb.net and a service reference. I have the...
  3. G

    Not set to instance of object for Service Reference

    I've programmed to two other service references, but it is still a little new to me. I received the WDSL and loaded the reference and the objects were created. I can see everything in the object browser. This is in VS 2010. Before I tried this in 2010 I accessed the service with soupUI 3.5, so...
  4. G

    First ASP.Net Application

    Great! Thanks for the links. Greg
  5. G

    First ASP.Net Application

    I'm looking for advice on a new ASP application in Visual Studio 2010. I have done some ASP and PHP programming in the past, but it has been a while. The PHP programming has always been maintaining and modifying existing sites and never anything from scratch. The last ASP application I wrote was...
  6. G

    Formatting Time

    Thanks! This is one of those little things in .Net that can be frustrating. It seems like it should be so simple and should be done like other formatting of dates with the .ToString() method. I don't need to store it as an integer so, String.Format("{0:%h}", Date.Now) should do it.
  7. G

    Formatting Time

    Josh, Thanks, but that doesn't help at all. The "only problem" you point out is the whole point of this thread. Greg
  8. G

    Formatting Time

    Yes, that code does work. You essentially just wrote what I posted from the MS article. You're not doing anything different and so it really doesn't add to this thread. Try this, write a line of code that will store the single digit value for the hour in a variable?
  9. G

    Formatting Time

    What I ended up doing was.... Dim iHour As Integer = DatePart("H", Now) If iHour > 12 Then iHour -= 12 End If Which works, but seems verbose. Greg
  10. G

    Formatting Time

    Thanks for the link. I had seen that one, along with many others relating to formatting dates and time before posting. The trouble is, it doesn't really work when you are just trying to return the hour part in 12 hour format and store it in a variable. At least, I can't get it to work. It says...
  11. G

    Formatting Time

    If it is 2:00 PM I want to return the hour as a single digit. I'm in VB.net in visual studio 2010. I can not get the hour to return a single digit '2'. Error "Input string was not in the correct format" Now.ToString("h") Error "Input string was not in the...
  12. G

    Cross-thread operation not valid

    No I haven't. When the error happens I get a mostly white page added to the IDE with something about no stack trace available...or maybe it is telling me it is available. To be honest, I get lost when looking at it. I'll see what I can see next time, though.
  13. G

    Cross-thread operation not valid

    This happens once a week at most and I can spend as much as 30 hours a week working on this program. If I started putting break points in the code to that extent I would never get any work done. I have Try...Catch blocks in almost every procedure, but they don't catch it.
  14. G

    Cross-thread operation not valid

    I didn't know I was. I didn't know I was. I've written 4 complete applications over the last 18 months in VS 08 & 10. I'm not doing anything that I haven't done before. The only difference is that I am using a new collection of 3rd party controls developed by DevComponents. If the error...
  15. G

    Cross-thread operation not valid

    I get this error above at random times when developing in the IDE. This is a new project that I've been working on for about 2 months now and have not distributed it, so I can't say if it will happen once it has been compiled and distributed. There doesn't seem to be any rhyme or reason to it...
  16. G

    Data Repeater

    Thanks for the response. I won't reply directly to what you wrote, but iwill say that I figured it out. If anyone else out there is struggling with this like me the key is to use stored procedures to change the rows returned not views or tables. The Select method of the dataset is all but...
  17. G

    Data Repeater

    {I'm sure this is in the wrong section, but there are just too many forums here to chose from. Please move this is you want. Sorry} Normally, when populating controls with data from a database I create a connection and then pass a SQL statement to create a DataReader. I then loop through the...
  18. G

    What is the 'c' for in this Select Case block

    I get that, going back to my days of C programming. I'm missing something here, though. Is it because ArgChars() is a char array and not a string array?
  19. G

    What is the 'c' for in this Select Case block

    I thought it was something like that but it seems that is self evident because of the quotes.
  20. G

    What is the 'c' for in this Select Case block

    This is a chunk of code that came in an ftp sample I downloaded from Microsoft. I've never seem the lower case 'c' used after the case select string. What is it for? In VS2010 the "u"c all shows up in red as if it were a string literal, but the c is outside the quotes. Greg...
Back
Top