Here's two other options...
MessageBox.Show(Now.TimeOfDay.ToString.Substring(0, _ Now.TimeOfDay.ToString.LastIndexOf(":")))
OR
MessageBox.Show(Now.Hour & ":" & Now.Minute)
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
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?
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...
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...
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.
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.