Archive for the ‘Web Hosting’ Category

How to call a PHP Script from ASP.NET C# and View Its response?

Hi guys,
I was wondering on net abt , how to call a PHP Script from ASP.NET C#, then found a simple solution.
Actually, Its nothing but calling any other ASP.NET C# file.
The script is as follow:
Basically I wanted to send User Id and Account ID and then process the table:

HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(“http://rover.geodesic.net/wcv1/php/ProcessTrans.php?userid=” + item.Value + “&accountid=” + item.Key + “&type=stock”);

// Set the ‘Timeout’ property in Milliseconds.
myRequest.Timeout = 600000;//10 mintutes
myRequest.Method = “GET”;
HttpWebResponse newStream = (HttpWebResponse)myRequest.GetResponse();

if ((newStream.ContentLength > 0))
{
System.IO.StreamReader str = new System.IO.StreamReader(newStream.GetResponseStream());
Response.Write(str.ReadToEnd());
if (str != null) str.Close();
}

The small changes I did was, I multi threaded the process, as i was taking more time to execute the PHP page “ProcessTrans.php”;
In above example, Data has been sent in “GET”
If you want to Post Data to remote Web Page using HttpWebRequest :

HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(“http://rover.geodesic.net/wcv1/php/ProcessTrans.php?userid=” + item.Value + “&accountid=” + item.Key + “&type=stock”);
request.Method = “POST”;
request.ContentLength = data.Length;
request.ContentType = “application/x-www-form-urlencoded”;
StreamWriter writer = new StreamWriter(request.GetRequestStream());
writer.Write(data);
writer.Close();
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream());
string tmp = reader.ReadToEnd();
response.Close();
Response.Write(tmp);
}

It might not work if the site you’re trying to stream is protected by authentication. If it’s Windows/NTLM Authentication and your account has privileges on the site, try using:
request.Credentials = CredentialCache.DefaultCredentials;
after the create request.

Ref: http://www.worldofasp.net/tut/WebRequest/Working_with_HttpWebRequest_and_HttpWebResponse_in_ASPNET_114.aspx

regards,

ASP.NET: Use VB.NET and C# within the App_Code folder

When I was creating my new blog site, I choose to write it in C#. I had a problem with the App_Code folder because I had some code in VB.NET code and some C# code I needed to put in there. I didn’t want to rewrite my VB.NET code in the App_Code folder just so I could write the rest of the code for the site in C#.
Luckily, the ASP.NET Team had already thought about just this kind of circumstance. They implemented a way to partition the App_Code folder into sub-folders, one for each set of code files written in the same programming language. Awesome, I didn’t have to spend a couple hours converting code from VB.NET to C#!
The below works with ASP.NET 2.0 and later.
Even if you don’t use multiple different programming languages for your code files in the App_Code folder, you could use this feature to organize your sets of related code files into sub-folders.
Step 1: Add the following Sample lines to the web.config in the form of tags.

configuration
    system.web
        compilation
            codeSubDirectories
                add directoryName="VB_Code"/
                add directoryName="CS_Code"/
            /codeSubDirectories
        /compilation
    /system.web
/configuration

Step 2: Create a sub-folder in the App_Code folder for each language you want to support.
For Example:

App_Code
/App_Code/VB_Code
/App_Code/CS_Code
App_Code

Step 3: Place your VB.NET code in the VB_Code folder and place C# code in the CS_Code folder.

Converting a Web Site Project to a Web Application Project

Differences between Web Site Projects (WSP) and Web Application Projects (WAP) are highlighted in blogs such as this one. Based on that, if you feel a WAP would be better for your particular needs than a WSP, but have already created a WSP, you may be asking yourself, “Can I convert my WSP into a WAP, without starting from scratch?”.

This posting explains how to convert an existing Web Site Project to a Web Application Project in Visual Studio 2010. The most striking differences to a Web Site Project are that WAPs have a project file to include and exclude files, and compile to a single assembly.

The guidelines below include several of the basic steps detailed in the Walkthrough: Converting a Web Site Project to a Web Application Project in Visual Studio. This is an excellent topic to review as it discusses some specific issues you may encounter which were discovered in previous versions of Visual Studio (VS). Please keep in mind while reading it that it is based on a WSP to WAP conversion using previous versions of Visual Studio.

Let’s get started.

Open and Verify your Visual Studio Web Site Project
Before converting your WSP to a WAP, you should open it in Visual Studio and verify that is it working correctly.  This will help prevent the need to research errors that have nothing to do with the conversion process.

  1. In the File menu, click Open Web Site.
  2. The Open Web Site dialog box is displayed.
  3. Select the project folder that you want to open, and then click Open.
  4. In the Build menu, click Build Web Site.
  5. In the Debug menu, click Start Debugging. Alternatively, you can press F5.
  6. Verify your project compiles and runs as expected

Create a new, empty Visual Studio WAP
A good strategy for converting a WSP to a WAP is to create a new, blank Visual Studio Web Application Project in a separate directory, but in the same solution. This avoids changing any part of the existing Web site files. It also allows you to copy existing functionality and files into the new WAP easily, within the same Visual Studio instance.

  1. In the File menu, click Add, and then click New Project.
  2. The Add New Project dialog box is displayed.
  3. In the Installed Templates section of the Add New Project dialog box, expand the language that you want to use, and then select Web to display the Web-related templates.
  4. Select Empty ASP.NET Web Application.
  5. Type values for NameLocation, and then click OK to create the Web Application Project.
  6. After the project has been created, delete the Web.config file that is created automatically.

WSPandWAP

Set Project / Assembly References
If the WSP required additional project or assembly references, you need to add them to the WAP. You can see the list of default references associated with the new (empty) Visual Studio Web Application Project under the References node in Solution Explorer.

  1. In the Solution Explorer, make sure Show All Files is turned on.
  2. In the Solution Explorer, right-click References, and then click Add Reference.
  3. The Add Reference dialog box is displayed.
  4. Select the reference that you have already added in the Web Site Project and then click OK.
  5. Note: To help prevent errors, add references to the Web Application Project for assemblies that existed in the \bin folder of the WSP.

AddRef

Copy and Convert the App_Code folder from the Web Site Project to the Web Application Project
In WSPs, the files in the App_Code folder are all compiled together and then referenced (automatically) as a “dll” by all other files in the WSP. In WAPs, this is not the case. All code is compiled together as one .dll. I’ve found that copying the App_Code folder over first and converting it to the WAP model helps to head off some dependency issues which could arise if one copied the entire site, converted, and then tried to compile.

  1. In the Solution Explorer, copy the entire App_Code folder from the WSP to the WAP
  2. In the Solution Explorerselect the WAP’s root node; right-click, select Convert to Web Application
  3. You will see our standard Convert to Web Application confirmation dialog.  Select “Yes” to this dialog.
  4. The App_Code folder should now be renamed to Old_App_Code folder
  5. Note: Do NOT name it back. As mentioned above, in the WAP model all code will be compiled into one assembly. At runtime, ASP.NET doesn’t know what type of project model you have created and will take anything in the “App_Code” folder and create a dynamic assembly for it, thereby causing “could not load type” exceptions as there would be duplicate types exists in two assemblies (the one for the VS web application and the one for App_Code).  Learn more about why App_Code folder does not work well with WAPs.
  6. Compile the WAP
  7. If you see an error, the most likely causes are:
    1. Missing assembly reference. See the section above to add missing references to your project.
    2. Files marked with Build Action = Content instead of Build Action = Compile. Any file you want compiled should be marked as such.
    3. To set the Build Action property:
      1. Select the file in the Solution Explorer
      2. Press F4 (Brings up the File’s Property Grid)
      3. Look at the Build Action property. Change as necessary.

converttowap

Copy and Convert the remaining Files and Folders from the WSP to the WAP
Once your Old_App_Code folder is compiled (by compiling your WAP in the step above), your WAP will have an assembly in the \bin directory. This will make it easier for the remaining files you are copying over to successfully compile, especially if they reference or use code in the files contained within that folder.

  1. Select the remaining files / folders from the WSP project and copy them into the WAP.
  2. Make sure not to copy the App_Code folder again.
  3. In the Solution Explorer, right click the root node of the WAP and select Convert to Web Application.
    1. Don’t worry, this won’t affect (or try to reconvert) any files or the Old_App_Code folder you have already converted.
  4. Note: This will cause VS to automatically generate a .designer.cs (or .vb) file for each page, user-control, and master page in the project. Additionally, each .aspx/.ascx will be modified to use the ‘Codebehind’ instead of the ‘CodeFile’ attribute in the Page directive.
    1. Example of the ‘CodeFile’ to ‘Codebehind’ change
      1. WSP file:  <%@ Page Title=”Home Page” Language=”C#” CodeFile=”Default.aspx.cs” Inherits=”_Default” %>
      2. Converted WAP file:  <%@ Page Title=”Home Page” Language=”C#” Inherits=”_Default” Codebehind=”Default.aspx.cs” %>

convertedfiles

Compile your WAP
After all the files have been added and converted, you should build your project again to see if there are any compilation errors. At this point, some of the most likely causes of errors are:

  1. Code files set with Build Action = Content. These should be changed to Compile. Refer to the above section.
  2. Missing project or assembly references. See above for steps for adding project or assembly references.
  3. Class name collisions. In the WSP model, each .aspx and associated codefile was compiled together as a separate, individual unit. Therefore, one could have files such as foo\widget.ascx.cs and bar\widget.ascx.cs where the classes were the same. Once these files are moved to a WAP and all compiled together, class name collisions occur with errors something like, “has multiple definitions with identical signatures”. If this occurs, unique class names should be created.

Run your WAP
After completing the above steps and you have a WAP which successfully compiles, you are ready to try running your application. One of the most common problems I’ve seen encountered is the “Unknown server tag ‘SomeTag: Control’ (as it applies to user controls and such)”. This can be corrected in one of two ways.

  1. Add or modify the register directive on the page that is using the control. This will only register it for this specific page.
    1. <%@ Register Namespace”namespace the control is in” TagPrefix=”SomeTag” Assembly=”Name of dll compiled into the \bin folder” %>
  2. Register the control in the Web.config, making it available to all pages in the project
    1. In the <pages><controls> section add the following:
    2. <add tagPrefix=”SomeTag” namespace=”namespace the control is in” assembly=” Name of dll compiled into the \bin folder” />


Hope this helps!

Convert “App_Code” to DLL

Question :

I have inherited a .NET 2.0 web project. It consists of a root site,
and 3 sub directories. Ideally these are seperate projects/websites. The root is a customer-
facing one, and the other 3 are for admin, and supervisor use. I want to break the existing project (all websites treated as one) into 4 separate websites. Unfortunately they all share the “App_code” directory, which contains
common classes to all 4 sites. Can anyone advise on how I can make the App_code a shared component in
4 websites, so that I can rebuild the entire app as 4 projects, which
will speed up development, and make it more robust (90% of development
and fixes go into the public site, why rebuild the other 3 every
time ?

Answer :

Create a new class library project (in the appropriate language) and copy
the App_Code files into that project. Run it until you can compile, as there
may be some web libs you need to reference, esp. if there is not a good
separation of concerns (likely considering you have library material in
App_Code).

After it compiles, take one of the websites and exclude everything in the
App_Code folder that you have moved. Make a reference to the new library.

Now go through and correct the using (C#) or Imports (vb) statements for
your project. Once you have a compile, consider it a test build and have
someone from QA (if you have QA) test that build thoroughly. Consider it
suspect, because someone may have tied in some config elements that are not
pulling properly into the lib, etc.

As it is being tested, go to another site and do the same. Rinse and repeat
until all sites are thoroughly clean and tested. Then, go back and delete
the excluded files.

NOTE: If you are using source control (you are, right), you can branch the
build before doing the switcheroo and delete instead of exclude at the first
step. It is unlikely you are going back. But, if you are, you still have the
old branch to go back to.

Documentation : How To Host a Website #2

Website hosting is what’s needed once you’ve built your site. Free web space is provided by many Internet Service Providers, but you’ll be better off with professional services.
Get Your Own Domain

Website hosting is now inexpensive, less than a dollar/month if you share a multiple domain hosting package among friends. Don’t use the free hosting provided by your ISP. It looks cheap and unprofessional. Traffic will be poor as the natural search engines won’t rank you well. And you’ll have difficulty in covering costs by placing Google AdSense ads on the site, by selling e-books of your poetry and/or by charging for access to pay-to-view sections.
Website Hosting: Steps

Website hosting begins with purchasing your own URL (uniform resource locator), and to do that you visit an online company offering domains for sale. Current charges are around $17 for two years.

Next you have to upload the site to a web-hosting company that will display it on the Internet, 24 hours a day, seven days a week. Thousands of such web-hosting companies exist, and there are now web-hosting directories that enable you to select by cost, platform type, facilities, etc. — all of which are explained by on-site notes.

You make your choice of hosting company, click through to their site, pay their hosting fee, and can then upload your site to that company’s server. The hosting company will provide instructions. It’s very simple, but you’ll need a cheap or free piece of software called an ftp program. This you can obtain from any software supplier, and use it to maintain your site thereafter. Once uploaded, your site goes ‘live’. You’re on the Internet.
Making the Site Pay

You may simply want to display your work, perhaps providing an email link so that visitors can send you feedback. Or you may want to produce an anthology of work by your poetry group, changing content every month so that visitors regularly come back for more. No money changes hands, but you have absolute control over what appears. The better hosting companies also throw in chat-rooms and bulletin boards for free, though you’ll need a little programming skill to install them.

But if you want your site to pay its way, there are three things you can do.

One is to place Google AdSense adverts on the site. Just visit Google to see how. The conditions are not onerous, but you must have 20+ site pages and some 50-100 visitors/day.

Second is to sell collections of your poetry on the site, either in conventional book or electronic form. Payment is easiest arranged through PayPal or one of the many PSPs (Payment Service Providers). Either do an Internet search to locate these providers, or consider Ecommerce Digest’s Guide, which goes into this in some detail.

Third is to charge for content. You can either create a member’s only area (password-protected directory) and take payment as before, or find an PSP that will do the whole job for you at an 15-20% commission. Again Ecommerce Digest’s Guide provides the details.

Internet users are still loathe to pay for content, but $10 a year is cheaper than the average poetry magazine subscription when postage is included, and opinions are changing. US subscribers in fact paid $853 million for online content in the first half of 2004, and spent more time viewing that content than dealing with emails and instant messaging.

Website hosting is not difficult or expensive, and a popular site can earn sufficient to cover operating costs, and more.

Documentation : How To Host a Website #1

How To Host a Website

Learning how to host a website, can seem a daunting task at first, but if you take the right approach it is actually a simple process.
Choose How To Host a Website- 4 Ways To Approach It

1) BEST OPTION FOR MOST*- Use An Online Web Hosting Service and Host Your Own Website- For people who want to host one or more simple websites, there is no better option than to just simply purchase a cheap plan online. We’ll discuss this method in detail.

2) Host it Yourself from Your Home- This is a highly technical process that involves a lot of inherent and learned knowledge about web hosting. We aren’t talking about how to create a server on this web page, but rather how to host your website online using the expertise of professionals.

3) Have Someone Else Host Your Website For You- You could allow a local company in your area to take care of the hosting. This is usually for a drastically inflated price and comes with frustration. Why? Because people who use them don’t take the few minutes to figure out there is often a much better solution (Not you of course! You are here!). It creates a situation where one’s online presence is completely controlled by another person or company, at a price, on their schedule.

4) Free Web Hosting- This sounds like an attractive offer for some at first, but if you want to create a professional website, then it is out of the question. Free hosting is free in exchange for a company placing free advertising on your website…ugly intrusive advertising in the form of flashing ads and pop-ups.

Basically in order for you to host your website, you’ll need somewhere to put the site. This space to put your site on the internet is found on a “server”. So in order to get your site on the web, you need to put it on the server. People buy these servers and rent space out for a fee. This is the fee you will be paying when you get a simple hosting plan from a hosting service.

If you are wondering how to host a website on your home computer, then that is a much more complicated procedure and is not recommended unless you know what you are doing. There are many security issues that one needs to take into account.
How To Host A Website The Simple Way- Host Your Own Website With A Web Hosting Service Online

There are many reputable hosting companies online that will offer the service of hosting a website. But a really good hosting company will offer so much more actually- Things you won’t have thought of at the beginning of your search. Let’s take a look at some of the most beneficial features one needs to look for in a good hosting plan.
What Comes With the Best Hosting Plans?

1) Multiple Domain Hosting- You can host as many domains as you want for no extra charge.

2) Unlimited Memory- You can put as much information (use as much memory as you want) on your sites for no extra charge. This used to cost a lot more money if you wanted to host a lot of information, such as movies, music and pictures. Not anymore!

3) Unlimited Bandwidth- You can have as many visitors (bandwidth usage) as you could possibly want and there is no crashing of your site, or extra usage charges.

4) Statistics Tracking- You can track your visitors with statistics provided by the hosting company. You’ll be able to see who visited, when, from where, and how long they stayed, among other things. This comes standard with most top hosting services.

5) Unlimited Email Accounts- A good hosting plan will make it extremely simple to set up and manage new mail boxes.

6) Website Creation Tools- A good company will give you numerous tools to help you create a basic website.

7) Easy WordPress Installation- If you don’t know what WordPress is, it is a powerful free blogging software that allows you to create search engine optimized blogs or websites with push button ease. The website you are looking at right now was created in WordPress, and countless professionals use it world-wide. You can read more about this on our tutorial page about how to create a website.

8) Control Panel- All quality hosting companies will make it easy for you to navigate and control your hosting through a “Control Panel”. One of the most popular type of control panels is called a “CPanel”. Other companies, such as FatCow.com, use a proprietary design that is no less helpful by any means.

…and more.
How To Host A Website With No Prior Knowledge Or Skill

The beauty is, you really don’t have to learn anything except that it’s possible to take hosting into your own hands and host your own website. If you pick the right hosting company, then you’ll only need to buy the plan and watch some simple step-by-step videos to get you through any technical steps.

Good 24/7 customer service will help you with anything you need also. The first time I bought hosting from http://www.FatCow.com, I was on the phone with them for quite a while as they helped me get started from scratch. I’ve had a site that was having problems at 10pm and the person at customer service walked me through exactly how to fix it. It wasn’t even their fault, but they still helped me. It’s like you have a “hosting person” on call 24/7.

So you can see it’s actually very simple to learn how to host a website if you just approach it from the right perspective. You don’t want to outsource the process so much that it costs an arm and a leg, and valuable time, every time you want to make a change. Then there is the other extreme of hosting the website at home on your own computer, which is very difficult and can be dangerous security wise. Why not take the third approach and purchase a simple hosting plan that gives you all the power with none of the cost or hassle?

Tags: hosting, how to host a web site, how to host a website, how to host your own web site, how to host your own website, web hosting, website.

Filed under Host Your Own Website, How to Host a Website by admin on Dec 16th, 2009. #
Top Web Host Companies For 2012

Learning how to host a website becomes a simple process when you use a really good hosting company. The best web host companies will give you step by step videos, excellent customer service where they DO things for you (not just tell you what you need to do) and much more. Here’s our top picks for web host companies for 2012.

You want a great set of hosting “employees” on your side, as if you have your very own “hosting person” at your beck and call whenever you want.
Our Top 3 picks for Top Web Host Companies 2012.

These companies represent the absolute most user-friendly companies that give you every thing you need to learn how to host a website, host the website effectively, and create your own websites at will. You can visit each website by clicking the small flashing banner or click on the blue coupon links at the bottom of each review.
#1 Fat Cow (5/5)
FatCow $4.67/mo.Plan
Features/Benefits-

Unlimited Bandwidth- No worries about how many visitors are rushing to your site, it won’t crash.

Unlimited Domains- Host as many domains as you like.

Excellent Tutorial Videos- Watch detailed videos how to set up emails (unlimited), WordPress blogs/sites, pointing domains, using free FTP software, analyzing visitor statistics, SSL, etc…

Site Analytics- Fat Cow gives multiple tools to help you maximize the effectiveness of your website.

Website Builder- This is a great tool to help you build your website from scratch.

NEW Integrated Webmaster Tools- This means your site will get indexed faster and recognized by the search engines.

Conclusion- Fat Cow is a great and reliable hosting company. It’s refreshing to see their uncomplicated pricing structure. At $3.67 a month the pricing is extremely competitive. We personally would have liked to see them use cPanel for their control panel. However, Fat Cow has designed it’s own control panel that offers everything the cPanel offers, complete with site analytics, WordPress, Joomla, etc… Fat Cow is atop the ranks of most reliable web hosting companies. You can feel safe knowing you’re using the best hosting a small amount of money can buy with Fat Cow.
A Special 40% OFF “moo”pon — Just for you!

#2 Host Gator (4.8/5)

Host Gator is another very popular web hosting company with reliable server up-times and excellent customer service. What sets Host Gator apart is the ability to sign up for “Re-Seller” accounts. This allows you to create your own hosting company and sell hosting to others. Host Gator also offers cheap “Dedicated Hosting” accounts. Dedicated hosting may be good for larger companies who want more speed and security with their servers. And of course they offer “Shared” hosting for those who just want to set up hosting for their website or websites. Overall, Host Gator offers great solutions for the small guy to the massive company.

Features/Benefits-

Unlimited Bandwidth- No worries about how many visitors are rushing to your site, it won’t crash.

Unlimited Domains- Host as many domains as you like.

Cheap Reseller Accounts- Sell your own hosting and create a nice passive income.
Excellent Tutorial Videos- Watch detailed videos how to set up emails (unlimited), WordPress blogs/sites, pointing domains, using free FTP software, analyzing visitor statistics, SSL, etc…

cPanel- Host Gator uses the #1 control panel, “cPanel”. This allows for easy navigation and manipulation of your hosting account, script installations, stats tracking, email management, etc…
Dedicated Server Solutions- Need extra security and more speed for your business? Host Gator offers solutions for everyone.

Conclusion- Host Gator offers numerous solutions for every level of hosting. Host Gator uses the latest version of cPanel, complete with aw-stats so you can check your sites analytics, WordPress hosting, e-commerce site hosting and virtually any other cutting edge feature you could ask for. The majority of users on the web rate Host Gator’s customer service responsive and courteous. Overall, Host Gator is an excellent choice for easy web hosting, no matter what your needs.

#3 Host Monster (4.75/5)

“Host Monster” is a well trusted hosting company that does exactly what they promise. They deliver excellent reliable hosting with courteous and extremely responsive customer service. That’s why they have earned one of the top spots with users across the internet world-wide.

Host Unlimited Domains on 1 Account

Features/Benefits-

Unlimited Bandwidth- You don’t have to worry about how many visitors are rushing to your site, it won’t crash.

Unlimited Domains- Host as many domains as you like.

Excellent Tutorial Videos- Watch detailed videos how to set up emails (unlimited), WordPress blogs/sites, pointing domains, using free FTP software, analyzing visitor statistics, SSL, etc…

cPanel- Host Monster uses the #1 control panel, “cPanel”. This allows for easy navigation and manipulation of your hosting account, script installations, stats tracking, email management, etc…

Conclusion- ‘Host Monster’ is rated the Top Web Host Company because of it’s great customer service and super low pricing. There are no stupid questions asked when dealing with Host Monster’s patient and extremely competent customer service team, which is available 24/7. Host Monster’s basic monthly plan can be as cheap as $6.95 per month at times.

Click Here For the Host Monster Special! Free Domain, Free Setup, Host Unlimited Domains $6.95
Just Host- Best Deal Award*

At $3.45 a month Just Host gets our Best Deal Award. That’s extremely cheap for hosting companies. What’s the catch? Nothing. Just Host offers the same features as the other top web host companies above, with…

Professional Hosting from Just Host

Features/Benefits-

Unlimited Bandwidth- No worries about how many visitors are rushing to your site, it won’t crash.

Unlimited Domains- Host as many domains as you like.

Excellent Tutorial Videos- Watch detailed videos how to set up emails (unlimited), WordPress blogs/sites, pointing domains, using free FTP software, analyzing visitor statistics, SSL, etc…

cPanel- Host Monster uses the #1 control panel, “cPanel”. This allows for easy navigation and manipulation of your hosting account, script installations, stats tracking, email management, etc…

So you can see the features and benefits of Just Host are very similar to Host Monster. The 2 days we tested our hosting account with Just Host, however, revealed a rather sluggish control panel. It just took more time! We switched back and forth between Host Monster control panels, Host Gator’s, Fat Cow’s, and Just Host’s just seemed to be a lot slower.

Just Host gives you everything you need to create websites, host as many websites as you want, and much more. The price is unbeatable for a top quality hosting company. Fat Cow is recommended first, but if you are looking for the absolute best bargain, then go with Just Host.Click HERE To Visit Just Host’s Website Now.

There is our choices for top web host companies for 2012. No matter which you choose, you will get a quality hosting plan with a customer service oriented company backing that plan.

Tags: top hosting companies, top web host companies, top web host companies 2010, top web hosting companies.

Filed under How to Host a Website, top web hosting companies by admin on Dec 16th, 2009. #
Host Multiple Websites- How To Keep It Cheap and Easy

It doesn’t have to be complicated at all to host multiple websites. In fact, you can use a single account in many instances. Let’s go over exactly how you can host multiple websites for very cheap, with little hassle.

For people or companies who are just looking to make 1 to, say, 30 or 40 websites (those aspiring internet marketers out there!), a simple solution is to get a shared web hosting plan. This means you share space on servers with others. The hosting company puts your files where they have space at that time.

Most quality hosting plans will allow you to host as many websites as you wish on one cheap hosting plan. If you were to actually make 300 websites and put them all on your one shared hosting plan, then perhaps the hosting company would politely ask you to upgrade your account. But they are betting on you only making a few, and it’s a safe bet for them.
Add-On Domains and Hosting Multiple Websites

When you purchase a shared hosting plan, you designate a primary domain name. Often times people will have this domain name be their company name, but you can make it your first website you are going to build. It doesn’t matter either way.

When you move on to your second website, you will purchase a second domain name and “assign” it to your hosting account. You will assign it as an “add-on” domain. You can assign as many add-on domains to your primary account from then on. This allows you to host as many domains as you like on your one account. You can click to learn more about how to host a website.
Other Solutions For Hosting Multiple Websites- Reseller Plans

There are numerous other solutions for hosting multiple websites.

“What if I want to host websites that are owned by other people?”

If you were in a position where you wanted to offer hosting to other people for a fee, perhaps you are a web designer, you could use a Reseller plan. A “Reseller” plan allows you to take a chunk of bandwidth and memory and partition it out into separate accounts, and then sell it.

Sometimes people that own a lot of sites will use a Reseller account also. Perhaps they have a lot of sites and want to keep the sites in a more organized fashion. This is a good option for internet marketers as well to use a Reseller account.
Managing Control Panels With Multiple Websites and Accounts

If someone has a shared hosting plan with multiple websites, one can access each website through the one control panel, or CPanel.

With a Reseller account, there is a main Control Panel that the owner accesses, where he creates and allocates other accounts. He creates other CPanels for his/her clients, setting passwords, memory, and bandwidth parameters. It’s also easy to increase the memory and bandwidth as necessary if it’s proving too little.

It’s easy as ever to host multiple websites with the top hosting companies. It’s in each web hosting provider’s best interest to make it as simple as possible or else they’ll lose out to the next company! In this day and age, more and more people are creating more than one website.

How to Hidd/disable ‘View Source’ in browser

Question :
Is there any web-application in dotnet or in html5 which can hidd the source code in our web pages.

Answer :
There are a lot alternate solutions for this kind of query i have some
1.

document.oncontextmenu=new Function("return false");

2.

var isnn,isie
if(navigator.appName=='Microsoft Internet Explorer') //check the browser
{ isie=true }

if(navigator.appName=='Netscape')
{ isnn=true }

function key(k)
{
if(isie) {
if(event.keyCode==17 || event.keyCode==18 || event.keyCode==93) {
return false;
}
}

if(isnn){
return false; }
}

if (document.layers) window.captureEvents(Event.KEYPRESS);
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
document.onkeydown=key;
document.onmousedown=right;
document.onmouseup=right;
window.document.layers=right;

these are two types of codes in javascript use them where you want in your code but these scripts should be in between head tags.

How to put your site into maintainance mode

First of all, create an instance of Uri object, then check if the URL provided matches with the URL you are having, then redirect it to the new URL.


Uri uri = new Uri("http://www.google.co.uk/index.html");
if(uri.Host.ToLower().EndsWith("google.co.uk"))
{
//Do something
response.redirect("www.newsite.com/maintainance.html");
}

Enjoy programming…

How to open and run a non-profit forum community without paying

How to open and run a non-profit forum community without paying for a thing

Copyrights ->  TheAdminZone.com

Introduction
Browsing around The Admin Zone you will see a mix of forums. Some are huge, attached to profitable sites and some are just run as a hobby to bring friends together or to discuss certain themes and topics.
This article is aimed at the novice, the first time forum admin that knows little to nothing about html or managing a community. I aim to help the novice begin his/her own free forum by starting at the very beginning. You will notice there is no mention of html, scripting and the like, this, imo, is the next stage and it’s absence is to ensure that new forum administrators won’t be put off by technical issues.
Running a forum is extremly rewarding and us ‘old hats’ sometimes forget our roots when offering advice around the Admin Zone. Everyone has to start somewhere.
I hope this article will help the novice begin to understand what it takes to run a community and that it will give him/her that all important lift up the first rung of the ladder.

Getting started.
The first thing to do when thinking about opening a forum community is to decide upon a theme and content.

Some examples:
General community
community for film lovers
pet lovers
music lovers
reality tv
graphic design
extension of a blog
debate forum
humour forum
supernatural forum
anime
role play
and so on.

It should be something you enjoy as you will need to put alot of time and effort into it to make it work. There’s way too many ‘dead’ message boards around where people have lost interest after a few days. You need to know from the start that you will only recieve what you have put in. Devotion and commitment are necessities.

Making a free non-profit community work is a struggle, because you have to strive at promoting it instead of paying for advertisments etc but with a good foundation such as, a theme, good design and layout, interesting content, imagination and commitment you are off to a good start.

You have the ideas, what next?

Now you have your ideas you need to decide upon the forum software that suits your tastes and requirements. There are lots of free message boards up for grabs, my advise is to have a play around, see which ones you prefer.

Things to look out for are:

*what type of ads does the software have (nobody likes pop ups)
*how much bandwidth does it have
*how much control you, as an admin, have you over the design
*what is the support like from the company that runs the software
*the features
*reliabilty (nobody likes a slow server)
*how easy are the functions for the members

Tip
Always check out the companies support forums, see what other people are saying. Discover what kind of problems are frequent etc

Options for free forum software
These are only a few, if you want to try more google ‘free forums’

http://www.phpbb.com/
http://www.ikonboard.com/
http://www.excoboard.com/
http://www.runboard.com
http://www.phpbb88.com
http://www.takeforum.com
http://www.topfreeforum.com
http://www.armleg.com
http://invisionfree.com/
http://www.proboards.com/
http://www.ezforum.org/

You have your forum, what now?

Now you have your forum get used to the controls. Once members come you need to be able to answer any queries.
Once you are comfortable with the controls you need to turn your attention to the design. A good look and layout is what first attracts members.

Tip
For tips on design check out the boards support forums, there you will be able to see what other admins have done with their boards.
You may also find people willing to create a new skin/template for you or they might be some already made that you can customize etc

*Remember*
Be original! The last thing you want is another boards admin breathing down your neck because you have stolen their banners/graphics or ideas. There is simply no excuse for this as you can easily create your own or ask someone else to design you something (many graphic designers will make you a banner etc and it is common courtesy to add a link or a mention to the designer on your forum)

Some useful links for webmasters/tools are:
http://highpowergraphics.com/bannerbuilder/ simply banner tool
http://gifworks.com good tool for customizing graphics
http://www.coolarchive.com/logogen.cfm logo generator
http://buttongenerator.com online button generator
http://www.3dtextmaker.com/ text maker
http://wizard.bannerforge.com/ make ad banners here for promotion
http://www.freebackgrounds.com/plaza.htm free backgrounds
http://www3.flamingtext.com/ more text, banners etc
http://www.clicksmilies.com/ smilies
http://starlightmks.com/music/midi/midimenu.html music for your board

These are just a few examples of free tools avaliable on the net. Google and other search engines are your way to discovering more when you need something.

Tip
Check the forums support forums for scripts and hacks to enhance your board. There’s usually ready made ones avaliable for you to customize or copy and paste into your control panel.

Layout
You now have the look, now you need to focus on the layout. Start small as there’s nothing worse than a new community with tons of empty forums sat idle.
Main ones to include at first.
rules
‘about us’
introductions
general chat
admin room

Pay special attention to the layout. Make it easy for new members to find their way around, eg, place the introduction forum near the top.

Add things to each forum such as articles & games. Give your members something to do, see and discuss to keep their attention and to generate conversation.

Tip
Once you are happy with the layout open a few accounts in various names, post in the names making it ‘appear’ that people are talking to each other (nobody likes an empty looking board, it’s very off putting) Ask all your im buddies and friends to register or find a launch team that is willing to help you, these can be found at the Admin zone or your support forums.
This is also an ideal opportunity to set the tone of the board, ie, if you curse, your members will, if you argue, so shall your members. Set the desired tone from the offset!

Promotion
Now your community is up and running you need to begin promoting it. For free this is done in various ways:

*Join topsites
*affiliate with other forums
*add the link to your sig in other forums you contribute to, do not spam! Check each boards rules on advertising and respect those rules.
*word of mouth
*ask friends to add it to their blog, website, sig etc…
*Join web rings etc
*submit url to as many search engines as possible
*submit link to as many directories as possible
*make business cards and drop them in internet cafes, university computer lounges, colleges, doctors surgeries etc
Be inventive and imaginative with promotion.
To find topsites, web rings, search engines and affiliates check other forums, google and the boards support forums.
You have to strive to get traffic to your board, it will not just appear like magic, hard work and determination is vital.

A few good topsites to get you going:
http://www.top100forums.com/index.php
http://punka111.com//index.php
http://evolutiond.freelinuxhost.com/in.php?id=14

Tip for Topsites
At first add yourself to topsites that count hits in rather than pageviews giving you the chance to be near the top of the list where you will be noticed more.
Create a banner for the topsites that is eye catching, professional looking and reflects your board. Host this on imageshack or photobucket so you can access the url easily.

A few directories and search engines to add your link to:
http://www.linkreach.com/
http://www.foruma-z.com/directory.php

Running a community

How you decide to run your community is very subjective but there are some key points to remember:

*chose your moderators with care. A power mad mod or admin is off putting. They need to be fair, loyal and impartial at all times.
*keep the board active and fresh.
*be welcoming, mingle and be around to answer queries (why should members return if the admin never bothers to visit?)
*decide upon rules and stick to them, the same rules need to apply to all members.
*discuss moderation issues in private
*deal with arising situations quickly and stick to your decisions.

Tip
Seek your peers advice. Many board owners are more than willing to offer help and advice. Listen and learn.
Read the articles and threads around the Admin Zone, it’s remarkable what you can learn.

And finally
Enjoy your community. It’s success depends entirely on you and your commitment. Work for what you want. Be proud of your achievments.
You have created a place where people love to visit, and all for free. It is a reflection on your dedication and hard work. The sky is the limit, have goals and keep working towards them, once achieved, set yourself some more.

Something to think about:
Stage 2: Running and managing a forum for free

*learn html
*learn how to add your url successfully to top search engines such as google and yahoo

Useful links for the future

http://www.newbie.org/html/index.html html newbie tutorials
http://www.make-a-web-site.com/making1.html html commands made easy
http://dir.yahoo.com/Business_and_Ec…net/Promotion/ Guide to submitting urls to top search engines
http://www.insiderreports.com/storyp…yID_E_20000728 A guide to successful submissions of links.

%d bloggers like this: