I was actually thinking more along the lines of
If (((Not(Now.AddYears(-personAge)<=Now.AddYears(-18)))) And (Not False)) = True Then ...
I suppose we could also start using reflection to complicate this further, but I suspect this will do!
Try this...
Dim sounddir As String = IO.Path.Combine(Application.StartupPath,"sounds")
Dim soundpath as String = IO.Path.Combine(sounddir,"open_creaky_door.wav")
Then pass soundpath in.
If you want to do it all in one, you can do...
In my experience, "show desktop"/Windows+D tends to muck up the window order with dialogs in all programs - I think it is more of an O/S bug than something to worry about when coding.
Sorry - I just re-read what you wrote. Services don't have standard output and input as far as I know - you only really get that with Console apps. You could use Remoting or something to control the service to get it to pass in the parameters you need.
Not sure off the top of my head, but maybe it has something to do with user rights - what user is the service running under and do they have permission to access what they need?
If you want to maintain session variables, take a look at my blog (link below) - I've done a whole series of posts about sessions - you can basically just use them and they work, but you might want to read some of the other stuff.
The Chilkat components are available for .NET as well - there isn't much point in using the COM version in .NET
I think you can add a reference to the old COM Microsoft Script Control and do it via that, but I haven't used it for years and I don't recall the precise name.
I think you meant
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Request.QueryString("sessionvalue") Is Not Nothing then
Session("mysession") = Request.QueryString("sessionvalue").ToString()
End If
End Sub
Actually, if you know there is only going to be one, you could do
Dim s = (From p in points Order by p.pn Asc).First
and if you particularly need it to be as an IEnumerable...
Dim s = New WhateverTheClassIs(){(From p in points Order by p.pn Asc).First}
messy again, but all ideas that might...
I think you just use the usual class with a different connection string - see if SQL Server Compact Edition Connection String Samples - ConnectionStrings.com helps
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.