.NET Answers

ASP.NET, HTML, CSS, Visual Studio, CSharp, VB.NET and other programming items of interest.
Subscribe

Archive for August, 2008

DotNetNuke Skins - ASCX vs HTML mode

August 27, 2008 By: Dave Category: DotNetNuke - Skinning

IMG_1408 I got a question yesterday from a designer who is unfamiliar with ASP.NET asking what the difference is between ASCX mode and HTML mode when developing skins and containers for DotNetNuke.

I thought it might be useful to the community if I answered this for everyone.

(more…)

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Bypass VPN for regular traffic

August 26, 2008 By: Dave Category: none

IMG_1380 For as many places as I’ve been where they use VPNs, I’ve yet to find one that is set up correctly.  I suppose there is a good reason for this, but I consider the problem to be mostly Microsoft’s fault.

I mean, wouldn’t you assume that if it were possible to use your regular connection for all of the network traffic EXCEPT for the traffic that needs to go through the VPN, that is what you would want?  But no.  Microsoft sets it up so that ALL of your traffic goes through the VPN connection.

What this means is that getting a connection to a search engine in order to look for a solution to a problem will take about twice as long as it should since your traffic first has to go to the VPN server and then out to the search engine.

Here’s how you fix it:

(more…)

Tags: , ,

DotNetNuke Modules - Making Content Portable

August 25, 2008 By: Dave Category: DotNetNuke - Module Development

office-02 The last main feature of module development that we need to discuss is the implementation of IPortable.

If you’ve ever worked with other content management systems in a corporate environment, you’ll appreciate the implementation of this interface since the number one issue most organizations have is getting data from a staging area to a production area.  Occasionally we’d like to get the content from production back to test or even into development.  Many times we deal with this issue by just copying the database and the web application files from one area to another.

That works.  But what if you want to move your content from one module on a page to another installation rather than the entire application?

That’s what IPortable does for us, as well as allowing us to move the entire site from one installation to another without having to move any files or the database.

(more…)

SQL For Programmers - CREATE TABLE

August 22, 2008 By: Dave Category: SQL For Programmers

ka_vol1_120 Once you have your database created, you’ll want to get some tables set up into it.  To do this, you’ll need the CREATE TABLE statement that can be issued from the connection object once you’ve established the connection.

(more…)

Tags: , ,

Did you know - Zip is built into .NET?

August 21, 2008 By: Dave Category: Did you know

food-cof-01 A couple of weeks ago, I was working on a project that required me to unzip a file.  There is only one text file in the zip, so using a full-blown library like SharpZipLib (OpenSource) or some commercial product just didn’t seem right.  From my experience with Java, I knew zip routines were available as part of the Java libraries in .NET (JSharp).  It seemed like my best bet would be to use what was already available rather than having yet another DLL on my system.

(more…)