Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. upworth

    Date format

    Here's two other options... MessageBox.Show(Now.TimeOfDay.ToString.Substring(0, _ Now.TimeOfDay.ToString.LastIndexOf(":"))) OR MessageBox.Show(Now.Hour & ":" & Now.Minute)
  2. upworth

    populate a label from sql

    Could you post some the code that is accessing the sql so we can take a look at it? Have you tried this? [assume vDate is the date field in question] myLabel.Text = vDate.ToShortDateString upworth
  3. upworth

    populate a label from sql

    a couple of questions to clarify your problem... (1) What version is your database? (ex. SQL Server 2000) (2) Are you trying to use a stored procedure? (3) Is your problem getting the right data out of SQL or knowing what to do with it once you have it?
  4. upworth

    Path of Windows Service

    I haven't tried it with a service, so I can't be too sure, but I would suspect that it's the same. Basically, by creating a variable, MyReq, that is a web.Request type, then you are saying that you are going to manually populate all the properties. By dynamically accessing web.Request you get...
  5. upworth

    Path of Windows Service

    Try this... ****************************************** dim filename as string ' PhysicalPath includes the current file so I need to _ ' remove the filename so I'm left with only the _ ' directory structure. Ths IIF is there to make sure _ ' no error is produced if it doesn't find a...
  6. upworth

    Path of Windows Service

    Try the above without the "()" at the end. Then when you type in "MyReq." in the code, IntelliSense should show you the list of available methods, properties, etc.
  7. upworth

    Path of Windows Service

    The name "request" is part of the system.web namespace. Try putting "imports system.web" at the top of your code or making sure that there is a reference pointing to system.web in your project. This "Request" name is also called "HttpRequest". Hope this...
  8. upworth

    Path of Windows Service

    I forgot to mention that there are other *path* properties of request (i.e. request.physicalpath) that might be useful as well. upworth
  9. upworth

    Path of Windows Service

    have you tried using request.applicationpath.tostring? upworth

Part and Inventory Search

Back
Top