So you have abound control, and want to only display the time portion? Or just the Date? Well, to start, that bound control must have HtmlEncode="false". Now, the only warning that I've seen on it, is that it maybe subject to an injection attack. And if you're worried about that, then you should probably use a templateitem instead.
Once you have the HtmlEncode="false" assigned to the bound item, use the DataFormatString="{0:t}" to get just the short time, and DataFormatString="{0:d}" to get a short date. You should be able to use any number of the formats in here to format it anyway you like. It took me some time to find these seemingly steps to get just the time on a datagrid column.
Mike
Friday, October 12, 2007
Friday, July 6, 2007
VMWare, Vista and VPNs part 2 (over wireless)
Note: This is over a wireless connection, over a wired connection, things work just fine.
I did it! I finally got settings worked out to be able to VPN into work from home with my Virtual Machine (running XP) on my Vista system.
First, I had to set the Virtual Machine to use NAT connections, not Bridged.
Second, I had to go into the Network Connections, and make sure that the VMWare Network Adapters to a Private Network, NOT Public.
Third, I had to connect to the VPN via Vista, NOT inside of the VM (as I previously had to do when I was hard wired in)
Fourth, I had to use Microsoft's Firewall Client for ISA server in Vista (the host machine) in order to get Internet access (though, this step will depend on your network).
Fifth, I also had to set the proxy server directly in IE inside the VM so that I can get internet access via the VM.
Enjoy!
Mike
I did it! I finally got settings worked out to be able to VPN into work from home with my Virtual Machine (running XP) on my Vista system.
First, I had to set the Virtual Machine to use NAT connections, not Bridged.
Second, I had to go into the Network Connections, and make sure that the VMWare Network Adapters to a Private Network, NOT Public.
Third, I had to connect to the VPN via Vista, NOT inside of the VM (as I previously had to do when I was hard wired in)
Fourth, I had to use Microsoft's Firewall Client for ISA server in Vista (the host machine) in order to get Internet access (though, this step will depend on your network).
Fifth, I also had to set the proxy server directly in IE inside the VM so that I can get internet access via the VM.
Enjoy!
Mike
Tuesday, June 12, 2007
VMWare, Vista and VPNs are vividly vulgar
Well, I just upgraded to a new work laptop. It came with vista business and so far I'm duly impressed with Vista. All development at work is done inside virtual machines, using VMWare workstation 6. So far so good. I connected vista to our domain, loaded workstation 6, and connected my external drive.
No probs so far. I load up my VMs, and I'm back in business! I spend the rest of the day working, and head home.
And home is where the troubles began. I have a wireless network at home. No prob. I get vista connected, and can surf like normal. However, when I go to start up my VMs to check on work stuff, I can't connect to the VPN inside the VM (which is Windows XP). Hmmm. So I connect to the VPN through Vista. No problem. So I startup the VM again, and try to connect to the network. No can do. It will get an IP from my dhcp server, but not make it anywhere over the VPN.
So I turn on the Microsoft Firewall client in Vista. Still can't get anywhere in the Virtual Machine.
I eventually was able to have the VPN connected in Vista, and the vpn connecting in the Virtual machine, but it wouldn't authenticate that "nested" vpn connection.
Trying just about every combination, I finally gave up and went upstairs. It was there I happened to notice my lone network port in the wall of my bedroom. Hmmmm. It couldn't be that simple. I grabbed a network cable, plugged it in the laptop, and now I'm connected to the VPN, inside the Virtual Machine, working once again.
Bummer that I can't use wireless for it, but someone else may have the answer to that.
Mike
No probs so far. I load up my VMs, and I'm back in business! I spend the rest of the day working, and head home.
And home is where the troubles began. I have a wireless network at home. No prob. I get vista connected, and can surf like normal. However, when I go to start up my VMs to check on work stuff, I can't connect to the VPN inside the VM (which is Windows XP). Hmmm. So I connect to the VPN through Vista. No problem. So I startup the VM again, and try to connect to the network. No can do. It will get an IP from my dhcp server, but not make it anywhere over the VPN.
So I turn on the Microsoft Firewall client in Vista. Still can't get anywhere in the Virtual Machine.
I eventually was able to have the VPN connected in Vista, and the vpn connecting in the Virtual machine, but it wouldn't authenticate that "nested" vpn connection.
Trying just about every combination, I finally gave up and went upstairs. It was there I happened to notice my lone network port in the wall of my bedroom. Hmmmm. It couldn't be that simple. I grabbed a network cable, plugged it in the laptop, and now I'm connected to the VPN, inside the Virtual Machine, working once again.
Bummer that I can't use wireless for it, but someone else may have the answer to that.
Mike
Monday, June 4, 2007
Could not find resource assembly
I'm currently working on PDA app for our inventory program. I'm tweaking the program to point to a different webservice.
After deploying the app to the PDA, it started the connection to the webservice, when the following error popped up:
Hmmm. . . After some researching I found an msdn blog that mentioned that this error isn't an error that occurs in the apps resource assembly, but because the PDA does't have the resource assembly that contains the error codes that are used for display.
The blog contained a link to msdn to read through the issue, but alas, that pointed to a File Not Found error on the msdn. Oh well.
After searching, you need to copy the System_SR_enu.cab file to your PDA and install it.
Once I did that, the correct error message appeared and I moved on to debugging it. yeah!
After deploying the app to the PDA, it started the connection to the webservice, when the following error popped up:
Could not find resource assemblyHmmm. . . After some researching I found an msdn blog that mentioned that this error isn't an error that occurs in the apps resource assembly, but because the PDA does't have the resource assembly that contains the error codes that are used for display.
The blog contained a link to msdn to read through the issue, but alas, that pointed to a File Not Found error on the msdn. Oh well.
After searching, you need to copy the System_SR_enu.cab file to your PDA and install it.
Once I did that, the correct error message appeared and I moved on to debugging it. yeah!
Labels:
.NET,
.NET Compact Framework,
Microsoft,
PDA,
Programming
Wednesday, May 30, 2007
Microsoft "Surface"
http://today.msnbc.msn.com/id/18928656
MSNBC is reporting today the latest and sounds like last major project for Bill Gates. Think of a touch screen that is super-sized combined with a watcom tablet. At least that's what I think of it. It looks pretty cool!
Hmmm, of course, as a coffee table you'd have to be careful when you put your feet up, or put a cup of hot coffee on it... then again, maybe it'll tell you the temperature of the coffee or when it is low (by weight maybe) and trigger the pot to start brewing some more hot coffee... oh the possibilities.
MSNBC is reporting today the latest and sounds like last major project for Bill Gates. Think of a touch screen that is super-sized combined with a watcom tablet. At least that's what I think of it. It looks pretty cool!
Hmmm, of course, as a coffee table you'd have to be careful when you put your feet up, or put a cup of hot coffee on it... then again, maybe it'll tell you the temperature of the coffee or when it is low (by weight maybe) and trigger the pot to start brewing some more hot coffee... oh the possibilities.
Thursday, May 24, 2007
Open Source Softdrinks
Now food is getting into the open source arena:
How to make Open Cola
Yes, now you too can expand and improve upon the Open Source Cola. Hmmm.... I just hope I don't find any bugs in it.
How to make Open Cola
Yes, now you too can expand and improve upon the Open Source Cola. Hmmm.... I just hope I don't find any bugs in it.
Tuesday, May 22, 2007
Don't forget about User encryption with SSIS
So when you finally get your package done, and you want to run it scheduled, be sure to read over this http://support.microsoft.com/kb/918760 to make sure everything is hooked up. I hit this issue a couple weeks ago and forgot about it again today. At least now it's in my blog, so I can find it without having to google it.
Here is another good link regarding importing a package and getting the permissions right: http://www.cubido.at/Blog/tabid/176/EntryID/71/Default.aspx
Here is another good link regarding importing a package and getting the permissions right: http://www.cubido.at/Blog/tabid/176/EntryID/71/Default.aspx
Subscribe to:
Posts (Atom)


