Thanks again, Chip. We're under a tight deadline right now, so we're going with the manual serialization method for the initial rollout. Once we get through the go-live, we will revisit and hopefully get it working with the method described. I will keep this flagged so I remember to come back...
Thanks Chip, I will give this a shot. I guess I figured that since it wouldn't work with object that it wouldn't work with some other base type. I'll try it and post back what I find out.
We have a WCF messaging hub. A publisher sends a message object to a method on the service, and the service distributes the message to subscribed recipients. The message object includes a MessageData property of type object.
We have defined an class to which the publisher and subscribers...
Omega, I thought having all of the panels on the same page in the designer was somewhat hard to deal with, so I placed several IFRAME objects on the form (all on top of each other) that act as my panels. The src of the IFRAME is actually a separate aspx page, so I can easily go to that page and...
I found this in an article at http://www.devarticles.com/art/1/249/4
This will convert a string to a byte array. I'm not sure what your structure is, but maybe this will help get you on your way.
' Declare a UTF8Encoding object so we may use the GetByte
' method to transform...
I have some required field validators as well as Range Validators on a page. The validation doesn't fire on the buttons that have the CausesValidation = False. The postback happens, and everything works fine.
I don't believe your test for read only will return correct results since the FileAttributes property is a summation of all attributes. I think your condition will always return true. Anyhow, this should do the trick
Dim objFileinfo As System.IO.FileInfo
Dim strFilePath As...
Try the System.Net Namespace
This should get you started:
Private Sub GetWebPage
Dim objResponse As Net.WebResponse
Dim objRequest As Net.WebRequest
Dim objStreamReader As System.IO.StreamReader
Dim strResult As String
objRequest =...
I think I have it worked out. Basically, you have create the GenericPrincipal Object and assign it to the context.user in the Application_AuthenticateRequest of the global.asax. This pulls the role information out of a cookie and assigns it for the current web request only. I had it in my...
I am trying to limit access to certain areas of my site based on roles. I am not using Windows Authentication (not practical in this situation), and I'm running into some problems. I authenticate the login info against a database, retrieving associated roles for that user, and then creating a...
You can also use the System.Net namespace.
This guy has done a fairly elaborate ftp client with VB.Net, so you may get some ideas here.
http://www.freevbcode.com/ShowCode.Asp?ID=4655
Craig,
Actually your statement isn't completely accurate. While it is true that the config file is associate with the calling exe, the data can be accessed directly from a called dll. I have several instances where I have used...
The App.config information can be accessed from the DLL, but they access the information associated with the calling executable. The best the to do would be to set these variables via properties or function parameters. This allows the same dll to be called from different applications that may...
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.