Windows 2012 Hosting - MVC 6 and SQL 2014 BLOG

Tutorial and Articles about Windows Hosting, SQL Hosting, MVC Hosting, and Silverlight Hosting

Joomla Hosting - ASPHostPortal :: Understanding Output Overrides in Joomla! 1.5

clock June 4, 2010 05:16 by author Jervis

Introduction

There are many competing requirements for web designers ranging from accessibility to legislative to personal preferences.  Rather than trying to over-parameterise views, or trying to aim for some sort of line of best fit, or worse, sticking its head in the sand, Joomla! has added the potential for the designer to take over control of virtually all of the output that is generated.

Joomla! has generally been labeled by some for not giving due attention to accessibility or being archaic in their approach to web standards.  However with 1.5, the responsibility, but more importantly the power is back in the designer's hands.

In addition, except for files that are provided in the Joomla! distribution itself, these methods for customisation eliminate the need for designers and developers to "hack" core files that could change when the site is updated to a new version.  Because they are contained within the template, they can be deployed to the Web site without having to worry about changes being accidentally overwritten when your System Administrator upgrades the site.

The aim of this tutorial is to introduce the how four areas of the output of Joomla! are able to be customised by the template designer.

Not interested in all the theory? Visit http://www.asphostportal.com. You can get proffessional Joomla website.

MVC 101

MVC can be a scary acronym.  It stands for Model-View-Controller and the concepts behind MVC are responsible for the extra flexibility that is now afforded to the designer.  While parts of the theory can be rather involved and complicated, the only part that the designer need worry about is the V for View.  This is the part that is concerned with output.

Different extensions display output in different ways.

Components, as you would already know, are fairly complex and have the ability to display different information in different ways.  For example, the Articles Component (com_content) is able to display a single article, or articles in a category, or categories in a section.  Each of the ways of representing the different types of data (an article, or a category, or a section) is called a "view" (this comes from our MVC terminology).  Most components will have many views.  However, the view doesn't actually display the output.  This is left up to what we call a "layout" and it is possible for a view to have a variety of layouts.

The main thing to remember here is that components can have multiple views, and each view can have one or more layouts.  Each view assembles a fixed set of information, but each layout can display that information in different ways.  For example, the Category view in the Articles component assembles a number of articles.  These articles could be displayed in a list or in a table (and probably other ways as well).  So this view may have a "list" layout and a "table" layout to choose from.

Modules, on the other hand, are very simple.  They generally display one thing one way.  Modules don't really have views but they do support a layout.  Some developers might even support a choice of layout through module parameters

Template versus Layout

It is very important to distinguish between the role of template and the role of layouts.  The template sets up a structural framework for the page of the Web site.  Within this framework are positions for modules and a component to display.  What actually gets displayed is governed by the module layout, or the combination of view and layout in the case of the component.

The following image shows the structural layout of a typical Joomla! template (rhuk_milkyway, the default for 1.5).  The module positions are displayed by adding tp=1 to the URL (eg, index.php?tp=1).  You can clearly see where the module output is contained within the overall template, as well as the main component output starting in the lower-centre region.  However, what is actually output in those regions, is controlled by the layouts.

Ancillary Customisation

While not strictly related to the MVC, there are two other important areas to consider when looking at customising the output of Joomla!.

In addition to layouts, modules have what we call "chrome".  Chrome is the style with which a module is to display.  Most developers, designers and probably some end-users will be familiar with the different built-in styles for modules (raw, xhtml, etc).  It is also possible to define your own chrome styles for modules depending on the designer result.  For example, you could design a chrome to display all the modules in a particular position in a fancy javascript collapsing blind arrangement.

In the screenshot above, you can just make out the names of some of the built-in module chrome used (rounded, none and xhtml).

The second area has to do with controlling the pagination controls when viewing lists of data.  We will look at that in more detail later.

Component Output Types and Layout Overrides

To understand layout overrides we must first understand the file structure of a component.  While there are many parts to a component, all fulfilling different roles and responsibilities, we want to look just in the /view/ directory.  Here is the partial structure for two of the com_content views:

/components

  /com_content

      /views

        /articles

            /tmpl

              default.php (this is a layout)

              form.php  (this is a layout)

            view.html.php (this is the view that outputs the HTML)

            view.pdf.php  (this is the view that outputs the PDF)

        /category

            /tmpl

              blog.php     (layout)

              blog_items.php (a sub-layout

              default.php     (layout)

            view.html.php     (HTML view)

            view.feed.php     (RSS feed)

So what you see here is that under the /views/ directory, each view is placed in a directory of its own.  The content component actually has three other views not shown: archive, frontpage and section.

Output Types

Under the
/articles/ directory we have a number of files.  There is almost always a file called view.html.php.  This is what we call the view file, but there can be more than one depending on the type of output to produce.  It has a specific naming convention, view.output_type.php, where the output type can be html, feed, pdf, raw or error. What this means is when we want html output for this particular view, the view.html.php file is used.  When we want the RSS output, the view.feed.php file is used.

The affect of these different output types is most apparent when the Global Configuration setting for Search Engine Friendly URLs is set to Yes, Use Apache mod_rewrite is set to Yes, and Add suffix to URLs is also set to Yes.  When this is done, the site URLs will look something like this:


http://domain/sports.html
http://domain/sports.feed
http://domain/sports/rowing.html
http://domain/sports/rowing.pdf


The exact URL will vary depending on how you set up your site but the point here is to show that sports.html will use the category view's
view.html.php file to, and that sports.feed will display the RSS feed for the category using view.feed.php.  It should be noted that you cannot currently customise feed or PDF output types.  However, you can customise the html output type and this is where layouts come into play.

Layouts

Under the view directory there is a
/tmpl/ directory in which the layout files reside.  Each PHP file in this directory represents a layout.  For example, article/tmpl/default.php is the default layout for an article whereas article/tmpl/form.php is the edit form for an article; category/tmpl/default.php is the default layout for a category whereas category/tmpl/blog.php displays the list of article differently.

The relationship between component views and layout is most plainly seen when adding a new menu item.  The next screenshot represents the typical display of the New Menu Item page.  Having clicked on Articles (which represents
com_content), the tree expands to show the list of views and each layout within the view.

You will notice that while there are extra files in some of the
/tmpl/ directories (like pagebreak.php in the article view), they are missing from the list.  This is due to instructions in the XML file for the layout (for example, pagebreak.xml) to hide the layout (or even the view) from the menu item list.  However, this is another broad topic which will be covered in another tutorial.

Armed with all that knowledge of how all the parts relate to each other, we are now ready to actually create our layout overrides.

Copying or Creating layout Files

Layout overrides only work within the active template and are located under the /html/ directory in the template.  For example, the overrides for rhuk_milkyway are located under
/templates/rhuk_milkyway/html/, for the JA Purity template under /templates/ja_purity/html/ and for Beez under /templates/beez/html/.

It is important to understand that if you create overrides in one template, they will not be available in other templates.  For example, rhuk_milkyway has no component layout overrides at all.  When you use this template you are seeing the raw output from all components.  When you use the Beez template, almost every piece of component output is being controlled by the layout overrides in the template.  JA Purity is in between having overrides for some components and only some views of those components.


The layout overrides must be placed in particular way.  Using Beez as an example you will see the following structure:


/templates

  /beez

      /html

        /com_content    (this directory matches the component directory name)

            /articles   (this directory matches the view directory name)

              default.php (this file matches the layout file name)

              form.php

The structure for component overrides is quite simple: /html/com_component_name/view_name/layout_file_name.php.  Let's look at a few examples.

The rhuk_milkyway template does not have any layout overrides for any components.  If we want to override the default layout for an article, first we need to copy this file:


/components/com_content/views/article/tmpl/default.php

to this location, creating the appropriate directories in the event they don't already exist:

/templates/rhuk_milkyway/html/com_content/article/default.php

If we wanted to override the blog layout in the category view, we would copy this file:

/components/com_content/views/category/tmpl/blog.php

to:

/templates/rhuk_milkyway/html/com_content/category/blog.php

Once the files are copied, you are free to customise these files as much or as little as required or desired.  You do not have to honour parameter settings if you don't want to.

Overriding Sub-layouts

In some views you will see that some of the layouts have a group of files that start with the same name.  The category and frontpage views have examples of this.  The blog layout in the category view actually has three parts: the main layout file
blog.php and two sub-layout files, blog_item.php and blog_links.php.  You can see where these sub-layouts are loaded in the blog.php file using the loadTemplate method, for example:

echo $this->loadTemplate('item');

// or

echo $this->loadTemplate('links');

When loading sub-layouts, the view already knows what layout you are in, so you don't have to provide the prefix (that is, you load just 'item', not 'blog_item').

What is important to note here is that it is possible to override just a sub-layout without copying the whole set of files.  For example, if you were happy with the Joomla! default output for the blog layout, but just wanted to customise the item sub-layout, you could just copy:
/components/com_content/views/category/tmpl/blog_item.php

to:

/templates/rhuk_milkyway/html/com_content/category/blog_item.php

When Joomla! is parsing the view, it will automatically know to load blog.php from com_content natively and blog_item.php from your template overrides.

For further information, visit http://www.asphostportal.com.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they're really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization - as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal's top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients' critical sites and services.

 



Community Server Hosting - ASPHostPortal :: Using Override Files

clock June 4, 2010 04:40 by author Jervis

This topic contains brief information about Using Override Files. If you looking for Community Server hosting, you can always consider ASPHostPortal. At ASPHostPortal you can get a professional Community Server installation with your Community Server Hosting account. You can always start from our Portal ONE hosting plan (from @$5.00/month) to get this application installed on your website. So, why wait longer?

Override files allow you to modify any aspect of a communityserver.config or siteurls.config file without modifying the original .config file that ships with Community Server or Evolution. In this article, we will modify the HTML scrubber portion of the communityserver.config file using a communityserver_override.config file.


Why Should I use Override Files?

The main benefit of using override files to make changes to the core configuration files is that you are not actually modifying the core configuration files. Instead, you are making the modifications through a separate configuration file.  This means that when you upgrade Community Server, the changes you have made will not be destroyed if the upgrade comes with new  versions of the core configuration files.

The Override File

An override file is just another xml file. The basic structure of an override file goes as follows:

<?xml version="1.0" encoding="utf-8">

<Overrides>
  <!-- Overrides go here -->

</Overrides>

The override file should go into the root folder of your website, i.e., in the same location as the existing communityserver.config file. If you are overriding siteurls.config, you should name it siteurls_override.config, and similarly you should rename the communityserver.config something like communityserver_override.config.

Overrides

An override file contains a collection of overrides.  Each override must have two attributes specified on it: xpath and mode.

The xpath attribute is the XPath to the node (or attribute) of the configuration file you want to manipulate with the override.  Briefly put, the XPath is a path to specific nodes in the core configuration file. You will see some example XPaths throughout this article.

Overrides can use the following modes:
- Remove - Deletes a node or attribute.
- Update - Used to change an entire xml node.
- Add - Adds a node (or nodes) either before, after or within the specified node.
- Change - Used to change the value of an attribute.
- New - Used to create a new attribute with the specified value.

Remove

Use the remove option to remove a whole node or a single attribute from the configuration file.  For example, you may decide you don't want to allow your users to specify css classes for the content they generated. To do this you can use the following override to remove class from the list of allowed global attributes:

<Override xpath="/CommunityServer/MarkUp/globalAttributes/class"
          mode="remove" />

Similarly you may decide that you do not want users to be able to specify the color used with font tags. To remove a specific attribute you must specify the name of the attribute to remove the following:

<Override xpath="/CommunityServer/MarkUp/html/font"
          mode="remove" name="color" />


Update

The update mode allows you to totally replace a node in the original configuration file. This is particularly useful if you are making so many changes to the original node that it is simpler to replace the whole node.  For example, if you want to allow users to only use an very small subset of html when posting (bold, italic, paragraphs and line breaks), you can use the following override:

<Override xpath="/CommunityServer/MarkUp/html" mode="update">
  <html>
    <strong />
    <em />
    <p />
    <br />
  </html>
</Override>

Add

The add mode allows you to add additional nodes to the original configuration file.  With add overrides, you can specify a where attribute to specify where the overrides should be added. The following values can be used for the where attributes.

- before - This adds the nodes within the override before the node specified in the XPath.
- after- This adds the nodes within the override after the node specified in the XPath.
- start - adds the nodes within the override at the beginning of the node specified in the XPath.
- end - adds the nodes within the override at the end of the node specified in the XPath.

If no value is specified for where, the start behaviour is used.

To better illustrate the difference between what different wheres do, take the following overrides:

<Override xpath="/CommunityServer/MarkUp/html/" mode="add"
          where="before" >
  <Before />
</Override>
<Override xpath="/CommunityServer/MarkUp/html/" mode="add"
          where="after" >
  <After />
</Override>
<Override xpath="/CommunityServer/MarkUp/html/" mode="add"
          where="start" >
  <Start />
</Override>
<Override xpath="/CommunityServer/MarkUp/html/" mode="add"
          where="end" >
  <End />
</Override>
<Override xpath="/CommunityServer/MarkUp/html/" mode="add"
          where="" >
  <Unspecified />
</Override>

Change

The change mode allows you to change the value of a specific attribute on an xml node.  When using the change mode, you must specify two additional attributes on the override

- name - the name of the attribute you want to change
- value - the new value you want the attribute to have.

For example, you can use the following override to disallow the colour attribute from being used with the font html element in user-generated content.


<Override xpath="/CommunityServer/MarkUp/html/font" mode="change"
          name="color" value="false" />

New

The new mode allows you to add a new attribute to an xml node. Like the change mode, you must specify two additional attributes on your override:

- name - the name of the attribute you want to add
- value - the value you want the attribute to have

For example, you can allow the type attribute to be specified on ordered lists by using the following override:


<Override xpath="/CommunityServer/MarkUp/html/ol" mode="new"
          name="type" value="true" />

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they're really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization - as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal's top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients' critical sites and services.

 



DNN Hosting - ASPHostPortal :: Best Practices for Migrating Your Website or Web Site Content over to DotNetNuke

clock June 2, 2010 05:26 by author Jervis

With DotNetNuke you can quickly build and edit a website using only your web browser. DotNetNuke websites are made up of Pages and Modules.

Pages provide a place for you to display your site content. These Pages are made up of one or more Modules. Modules define the functionality that can be added to a page. DotNetNuke has many built-in modules including, Text, Table, Events, Links, Picture and more. In addition, many more modules are available from the community including Web Forums, Blogs etc.

Building a new Website with DotNetNuke involves the following steps:

- Install DotNetNuke on your computer.
- Sign up with a Web Hoster who provides DotNetNuke hosting accounts. This Web Hoster will set up a blank DotNetNuke website for you.
- The Web Hoster gives you login information. Log in to your DotNetNuke site using this information.
- Using DotNetNuke, add pages, modules and select skin for your website.

Suppose you have an existing website and you want to use the database provided with the existing website.

Suppose in an existing website you have a MSSQL database that contains data to be displayed. If you've got a legacy database that contains hundreds of tables, procedures, views, etc. it may not be practical to move everything into your DNN database or build the DNN database within the legacy database. Here one can define the database connection string via a reference in Web.Config. This database will co-exist with the DotNetNuke database and be accessed by the DotNetNuke site.  The content can be used by DNN site via following steps:

1. In Web.config Within

2. Within add key for mydata's connection string - similar to SiteSqlServer - but pointing to appropriate server/database.

3. Within Added

type = "myStuff.myProject.Data.SqlDataProvider, myStuff.myProject.SqlDataProvider"
connectionStringName = "mydataserver"
providerPath = " -- appropriate path --
objectQualifier = ""
databaseOwner = "dbo"
upgradeConnectionString = ""
/>

4. Set the Assembly Name for the MyProject to myStuff.myProject. A dll should exist in \bin directory where dotnetnuke.dll exist called myStuff.myProject.dll

5. Set the Assembly Name for the SQLDataProvider to myStuff.myProject.Data.SQLDataProvider. A dll should exist in \bin directory where dotnetnuke.dll exist called myStuff.myProject.Data.SQLDataProvider.dll

6. Set the Namespace for DataProvider to myStuff.myProject.Data.

7. In my DataProvider.vb class that must inherit DataProvider, change the CreateProvider sub to


objProvider = Ctype(Framework.Reflection.CreateObject("mydata", "myStuff.myProject.Data", "myStuff.myProject.Data"), DataProvider)

8. In my SQLDataProvider.vb class that inherits DataProvider, set the ProviderType = "mydata"

You might want to add an additional descriptor to the convention here so that myStuff.myProject becomes myStuff.myProject.myModule, but that is personal choice.
Generally, with the existing websites or systems, one wants to switch over to DNN as a base for providing the portal-functionality that we need in many areas of the application. Most of the sites going for DNN are workflow application but large parts of the site are content heavy and should be updated by certain groups of users with specific security roles. A lot of VBscript code that does page HTML rendering, so is a first pass at "hosting" DNN within the existing ASP application. Eventually all HTML logic is to be replaced with .NET code, but here comes the point as to where we can host DNN and some off-the-shelf modules and make the site running, follow the following steps:

1. In the ASP application: create a .asp page which creates a javascript with three variables: htmlMenuAndTopLeft, and htmlMain, and htmlStyleAndScript. These variables are loaded up with the HTML content needed to render the client interface.

2. Create a DNN skin that references the .asp page from the legacy application.

3. The DNN skin uses client-side document.write(htmlMenuAndTopLeft) .. etc to place the HTML "wrapper" around the DNN contentpanes. This way, all the links, CSS, and images etc point to the proper location. The content area of DNN is generated from 100% .net code.

However, if you have to install DNN tables/stored procedures into an existing database an object qualifier of DNN is a good option. Here other features like role-base security for selective display of content and functionality can be used.

A designer shouldn’t be in charge of migration of an existing site to DNN site. The work should be assigned  to the developer who might be able to write scripts or code to perhaps assist in importing of data. Regardless of how much you try to automate, its' really an initial hands on job of copy and pasting of information to a certain extent. The key area to look for is when copying and pasting data, to make sure it's nicely pasted without taking the other formatting into the page. This is only about the content but the original look and feel is not intact here.

If you want the original look and feel of the site and the work ids assigned to a designer, the knowledge of DNN architecture, concepts of skinning, or experience in CSS or html is a must. Get a dev environment setup , copy the content and add the pages. Initially you can provide the layout using the default skinning scheme but once the site is up more and more intricate schema can be build to let the site preserve original look and feel.

Suppose you are working on a site and want to transfer data to DotNetNuke This data conversion is possible by exporting your existing data in tabular format and then use that data to import into DNN.  This typical procedure requires mapping of all your existing data to the required formats.  Depending upon how much data you have, it may be more efficient to go through the process of recreating some pages in DNN and then import certain other data that make sense. For example consider a specific situation of moving data from phpNuke to DotNetNuke. The core PHP-Nuke modules are somewhat similar to the DNN modules. One can initially find the modules that correspond to each other in basic functionality:

1. The PHP-Nuke Content Module is similar to DNN Core Text/HTML Module.
2. The PHP-Nuke News Module is similar to DNN Core Announcements Module.
3. The PHP-Nuke Gallery Module is similar to DNN non-core DNNGallery Module.
4. The PHP-Nuke Downloads Module is similar to DNN Core Documents Module and non-core DNNDownloads Module.
5. The PHP-Nuke GBook Module is similar to DNN non-core Bring2Mind Guestbook Module.
6. The PHP-Nuke Feedback Module is similar to DNN non-core Feedback Module.

At time when you are moving to DNN from existing website, there might be certain complicated web pages or web forms which you don’t want to alter for example those with intricate calculations or analysis forms or certain other forms where particular formatting is a requirement. Here you find out ways so a static web form can be used in DNN.

If multiple instances of these pages don’t hamper your basic design, a simple way out it to make each of these programs as modules and then insert them in to DNN portal. Modules are the best suited for web items that are intended to be used at multiple instances in your web site and have a need to communicate with databases to store/take the data from a particular instance. Here you must check with the data Pages with these Modules are caching during page loading. If data is large then you might need to throw some of that information within the page onto the database to avoid slowing. But there is a drawback as the design incorporated through making these web pages Modules may slow down your site making it less efficient. But there are certain pages, web forms/programs etc which do not need to communicate with databases. They just take the data that user provided do the engineering calculations etc, get the results and post it back to the user. Moreover since these web forms are unique, multiple instances of these programs may not be needed.  The way out here is to use the Links module (standard) and link to the pages in a new window. Or, to give website a consistent look use the I-Frame module and nest the page as an I-frame within DNN.

Conclusion
If you looking for DNN hosting, you can always consider ASPHostPortal. At ASPHostPortal you can get a professional DNN installation with your DNN Hosting account. You can always start from our Portal ONE hosting plan (from @$5.00/month) to get this application installed on your website. So, why wait longer?

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they're really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization - as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal's top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients' critical sites and services.

 



Magento Hosting with ASPHostPortal :: Export Magento Products into Google Base

clock June 2, 2010 05:07 by author Jervis

Google Base is a fantastic tool and should never be underestimated.  If you don’t know what Base is – it is a database where users can upload data feeds of products, blog posts, reviews, jobs, hotels, you name it…   On occasions, Google will supplement their usual search results with results from Base.

For example, check out this search for TV Wall Brackets – on this page you can see three results which are “Shopping Results”.  These results have very good click through rates, simply because they list a relevant product, and they also echo the delivered price of a product.

Before now, trying to get all your products from your Magento site on to Google Base was pretty impossible – as it’d be a manual job to go into the database, export it as CSV, put it into Excel, delete the fields which are not required etc.

Now however, a plugin has been released via Magento Connect, called “SingleFeed Export Module” – this module is fantastic because it exports products from your Magento Store into a SingleFeed compatible data feed format.

Subsequently, SingleFeed then can submit your products to over a dozen comparison shopping engines including Google Base/Product Search, Nextag, Shopping.com, Pricegrabber, Shopzilla, Yahoo Shopping and many more.

The beauty of doing it through SingleFeed is that it will allow you to manage your products with only one feed instead of one unique feed for each shopping engine.

For further information about Magento, you can visit http://www.asphostportal.com.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they're really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization - as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal's top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients' critical sites and services.

 



Reseller Hosting - ASPHostPortal :: Finding a Good Hosting Reseller, Shared Site Web Space For Your Business or Personal Needs

clock May 31, 2010 09:12 by author Jervis

Having web space is a must for every business-minded individual. But business-minded individuals must always keep a close eye on their budget. Thankfully, you don't need to have exclusive web space in order to have a good website. If you need to keep a tight watch on your spending, you should know that besides a good hosting reseller, shared site web space is another way to go.

"Reselling" is a means of selling small portions of web space, which drastically reduces the cost of purchase for the buyer. This makes resellers exceptionally helpful to people who are still starting off in web space development and don't yet know how much they have to spend, or the exact features that they need. But some resellers not only sell web space: some of them sell shared web space. A hosting reseller shared site web account may be even cheaper than regular resold webspace.

There are, after all, different methods of reselling web space. Most of the time, it depends on the contract between the reseller and the original web host - if there is a contract to be made at all. Sometimes, it's enough for a web host to purchase a large chunk of web space from the original host, and then "resell" smaller chunks of it, without the original web host's knowledge. The entire profit made from the reselling would then land to the reseller.

This is usually not illegal, since the reseller has pretty much owns the web space and is free to keep or resell it as he or she sees fit. However, the reseller is also responsible for keeping his or her own customers happy; if there is any error that needs fixing, or any account upgrades or downgrades that need to be made, or even lapses in payment, the responsibility to attend to the situation falls entirely on the reseller. The reseller could be a single individual or a corporation in the business of buying up large chunks of web space and redistributing them.

If you buy space on a web site that a reseller owns, you'll be buying shared web space. And understandably, this tends to be cheaper than buying exclusive web space from a web host, via a reseller. A hosting reseller shared site web space may just be the most cost-efficient answer to your web presence needs!

For further information, visit http://www.asphostportal.com.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they're really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization - as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal's top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients' critical sites and services.

 



Joomla Hosting - ASPHostPortal :: How to Convert a Static Websiteto Joomla

clock May 31, 2010 08:58 by author Jervis

Joomla! is an easy to use CMS tool, which allows you to create a website with practically no design or programing skills. To start a Joomla site, you need to sign up for a hosting account and have Joomla CMS installed. At ASPHostPortal you can get a free professional Joomla installation with your Joomla Hosting account. You can always start from our Portal ONE hosting plan (from @$5.00/month) to get this application installed on your website. So, why wait longer?

Managing a static website can be a challenging task. To change a simple text in a static website you may have to make the changes locally and then upload the new files to your hosting account. On the other hand, a Joomla based website has all the flexibility a CMS application provides. This is why many people consider converting their static websites to Joomla.

The conversion process can be divided into two parts - adding your actual data and recreating the design of your website.

You should begin with adding your data first because later it will be much easier to make your design with the real information on your pages.

Adding your data consists of two main steps - creating your pages and creating your menus.

Let's start with the creation of your Main Menu and a Home item that will show the content of your front page.

Step 1. Log in to your Joomla administrative area and click on the "Menu Manager" button to start the creation of your first menu.

Step 2. Click on the "New" button to create a new menu.

Step 3. On the next page set the title and description of your menu. You have to specify a unique name for the menu. You will later use this name to assign modules to it.

Step 4. Now you have to add items to your menu. Click on the "New" button at the top-right part of the page. For the purpose of this tutorial we will create a single item called "Home".

Step 5. In the next screen you will be asked to select the menu item's type. Since this item will show your front page, expand the "Articles" category and click on the "Front Page Blog Layout" item type.

Step 6. Type "Home" in the title field. This text will appear on the menu link that will be shown on your website. You can always come back to the Menu Manager and rename the menu item.

Step 7. Click on the "Save" button at the top-right part of the page.

Step 8. The next step is to set this menu item as default. This means that when someone opens your website this will be the first page that will load. If you do not have a default item, Joomla will return a "404 Component not found" error. 

You have to click on the checkbox next to your menu item and then press the "Default" button.

Step 9. The creation of your menu is complete. You should now add a module to your website that will display your menu. To do this ,go to Extensions -> Module Manager and press the "New" button at the top of the page.

Step 10. Choose "Menu" for module type and click "Next".

Step 11. On the next page select a name for the module and set it to "Enabled".

Step 12. Select the position where the module should be displayed. For the purpose of this tutorial we'll create a horizontal menu right under the main header, so let's set "user3" as position. If the position is not available in the drop-down list, you can simply type it.

Step 13. Click on the "Save" button at the top-right part of the page.

You are now ready with the creation of your main menu and the first item in it. Once you have done that, you can add more items to your Main menu from the Menu Manager. You can check the different menu item types in order to see the differences in the way they visualize your content.

Step 14. You should now add your content to the new site. You can look at each page of your static website as a Joomla article.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they're really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization - as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal's top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients' critical sites and services.

 



Community Server Hosting - ASPHostPortal :: How to Implement Custom Widgets

clock May 31, 2010 08:25 by author Jervis

Widgets in Community Server 2008 (internally identified as content fragments) are server-side .net classes implementing the CommunityServer.Components.IContentFragment interface.  Community Server will load all classes implementing this interface from all assemblies in the bin/ folder and make them available in the widget selection form (subject to application-type filters) -- there is no additional configuration required to add support for new content fragment types. For more information, visit http://www.asphostportal.com.

To help implement new content fragments, CS2008 includes two base classes: 
CommunityServer.Components.ContentFragmentBase and CommunityServer.Components.ConfigurableContentFragmentBase.  These base classes implement the administrative members of the IContentFragment interface and require that only the content-related members be implemented to complete a new content fragment.  Furthermore, the ConfigurableContentFragmentBase base-class adds support for exposing configuration options (via Dynamic Configuration) for new content fragments.

Implementing a Basic Widget

A basic widget is very easy to implement.  Simply create a new class library project in Visual Studio and add a reference to CommunityServer.Components.dll and System.Web.dll.  Then, create a new class file and inherit from CommunityServer.Components.ContentFragmentBase.  Allowing Visual Studio to complete the implementation of this abstract class automatically results in the following:

using System;
using System.Collections.Generic;
using System.Text;

namespace WidgetSamples
{
    public class MyWidget : CommunityServer.Components.ContentFragmentBase
    {
        public override void AddContentControls(System.Web.UI.Control control)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public override string FragmentDescription
        {
            get { throw new Exception("The method or operation is not implemented."); }
        }

        public override string FragmentName
        {
            get { throw new Exception("The method or operation is not implemented."); }
        }
    }
}

To complete the implementation of this widget, the three required members above must be implemented.

void AddContentControls(Control)

The AddContentControls method is used to populate the content of the widget.  All content must be added to the control.Controls collection.  To add literal text, the System.Web.UI.LiteralControl can be used, for example:

public override void AddContentControls(System.Web.UI.Control control)
{
    control.Controls.Add(new System.Web.UI.LiteralControl("This is my widget!"));
}

Because content fragments use Control objects, the content of widgets can take advantage of all of the existing ASP.Net and Chameleon controls.  Controls in widgets participate in the full page lifecycle and can initiate and handle call backs and post backs.

string FragmentDescription

The
FragmentName returns the name of this content fragment and is rendered in the widget selection control as well, above the description.  The name should be only a few words, such as:

public override string FragmentName
{
    get { return "My widget"; }
}

Once these three members are implemented, the class library can be compiled and it's output DLL can be deployed to Community Server's bin/ folder.

Implementing a Configurable Widget


Many widgets benefit from exposing end-user configurable options.  To support such options, the
alternate CommunityServer.Components.ConfigurableContentFragmentBase base-class can be used.  The ConfigurableContentFragmentBase class is similar to the ContentFragmentBase class used in the simple widget example above, but adds support for exposing and using Dynamic Configuration options.

To create a configurable content fragment, create a new class library project in Visual Studio and add a reference to CommunityServer.Components.dll, Telligent.DynamicConfiguration.dll, and System.Web.dll.  Then, create a new class file and inherit from
CommunityServer.Components.ConfigurableContentFragmentBase.  Allowing Visual Studio to complete the implementation of this abstract class automatically results in the following:

using System;
using System.Collections.Generic;
using System.Text;

namespace WidgetSamples
{
    public class MyConfigurableWidget : CommunityServer.Components.ConfigurableContentFragmentBase
    {
        public override void AddContentControls(System.Web.UI.Control control)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public override string FragmentDescription
        {
            get { throw new Exception("The method or operation is not implemented."); }
        }

        public override string FragmentName
        {
            get { throw new Exception("The method or operation is not implemented."); }
        }

        public override Telligent.DynamicConfiguration.Components.PropertyGroup[] GetPropertyGroups()
        {
            throw new Exception("The method or operation is not implemented.");
        }
    }
}

As you can see, the members are the same as with the simple widget with the exception of the new GetPropertyGroups method.

PropertyGroup[] GetPropertyGroups()

The GetPropertyGroups method is used to identify the Dynamic Configuration property groups, sub-groups, properties, selectable values, etc supported by the content fragment.  The layout of exposed properties is similar to themes' theme.config files, but instead of using an XML file, the layout is defined programmatically using classes in the Telligent.DynamicConfiguration.Components namespace.  For example, to define a simple text entry field (note that I added a "using Telligent.DynamicConfiguration.Components" statement to the top of the class file):

public override Telligent.DynamicConfiguration.Components.PropertyGroup[] GetPropertyGroups()
{
    PropertyGroup group = new PropertyGroup("group1", "Options", 0);
   
    Property textToRender = new Property("textToRender", "Text to Render", PropertyType.String, 0, "");
    group.Properties.Add(textToRender);

    return new PropertyGroup[] { group };
}

This defines a single configuration group (which renders as a tab) named "Options" containing a single string-based property named "Text to Render."  A full description of the Dynamic Configuration API is beyond the scope of this article, but the Intellisense for the Telligent.DynamicConfiguration.dll assembly as well as the existing examples of content fragments in the Community Server 2008 SDK should provide ample examples for defining configuration options.

The rendering of the configuration form and storage of the values entered by end-users is handled automatically by Community Server based on the definition of the
GetPropertyGroups method.

Using Configuration Options

To use the configuration options defined by the GetPropertyGroups method, the following methods (defined on the ConfigurableContentFragmentBase class) can be used based on the data type defined for the property:

- bool GetBoolValue(string id, bool defaultValue)
- int GetIntValue(string id, int defaultValue)
- double GetDoubleValue(string id, double defaultValue)
- string GetStringValue(string id, string defaultValue)
- string GetHtmlValue(string id, string defaultValue)
- DateTime GetDateValue(string id, DateTime defaultValue)
- DateTime GetTimeValue(string id, DateTime defaultValue)
- DateTime GetDateTimeValue(string id, DateTime defaultValue)
- Guid GetGuidValue(string id, Guid defaultValue)
- System.Drawing.Color GetColorValue(string id, System.Drawing.Color defaultValue)
- System.Web.UI.WebControls.Unit GetUnitValue(string id, System.Web.UI.WebControls.Unit defaultValue)
- Uri GetUrlValue(string id, Uri defaultValue)

In all of these examples, the first parameter is the ID of the property for which a value should be retrieved.  In our sample definition of the GetPropertyGroups method above, we defined a single string field with the ID "textToRender."  To render that field as the content of the content fragment, the GetStringValue method can be used, for example:

public override void AddContentControls(System.Web.UI.Control control)
{
    control.Controls.Add(new System.Web.UI.LiteralControl(this.GetStringValue("textToRender", "")));
}

This will render the user-defined value for the "Text to Render" field as the content of the control.

To finish the implementation of our configurable widget, the
FragmentDescription and FragmentName still need to be implemented as with the simple widget:

public override string FragmentDescription
{
    get { return "Renders custom text"; }
}

public override string FragmentName
{
    get { return "My Configurable Widget"; }
}

The class library can now be compiled and it's output DLL can be deployed to Community Server's bin/ folder. 

Additional Options

The base classes implement a few additional IContentFragment members that can be overridden by specific implementations to further customize widget rendering:

string GetFragmentHeader(Control)

By default, the FragmentName is rendered as the header of a rendered widget.  This behavior can be modified by overriding the base implementation of the GetFragmentHeader method.  This method returns the HTML to render as the content fragment's header. 

The control parameter to this method can be used to load contextual data, for example, via the
CommunityServer.Controls.CSControlUtility class

string GetFragmentMoreUrl(Control)

The out-of-the-box themes in Community Server 2008 support rendering a "more URL" for each widget -- for example, viewing all tags for the tag cloud widget or viewing the full list of active posts for the active posts widget.  By default, the "more URL" is blank and will not be rendered.

To set a "more URL", the GetFragmentMoreUrl method can be overridden to return the URL to navigate to view additional, related information.  Similar to the GetFragmentHeader method, the control parameter is supplied to support retrieving contextual information through Chameleon.

ApplicationType[] GetRelatedApplicationTypes()

As mentioned in the How to Support Widgets in a Custom Theme article, Community Server has built-in support for filtering available widgets by application types.  By default, the base classes identify no related application type which results in the content fragment being listed regardless of the application type filter. 

To identify the application type or types that relate to a content fragment, the GetRelatedApplicationTypes method can be overridden to return the array of related application types.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they're really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization - as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal's top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients' critical sites and services.

 



ASP.NET 4 Hosting - ASPHostPortal :: What's New in Visual Basic 2010

clock May 31, 2010 07:05 by author Jervis

This topic contains brief information about Visual Basic 2010. If you looking for ASP.NET 4 hosting, you can always consider ASPHostPortal. At ASPHostPortal you can get a professional ASP.NET 4 installation with your ASP.NET 4 Hosting account. You can always start from our Portal ONE hosting plan (from @$5.00/month) to get this application installed on your website. So, why wait longer?

Visual Basic Complier and Language

Auto-Implemented Properties


Auto-implemented properties provide a shortened syntax that enables you to quickly specify a property of a class without having to write code to Get and Set the property.

Collection Initializers

Collection initializers provide a shortened syntax that enables you to create a collection and populate it with an initial set of values. Collection initializers are useful when you are creating a collection from a set of known values, for example, a list of menu options or categories.

Implicit Line Continuation

In many cases, implicit line continuation enables you to continue a statement on the next consecutive line without using the underscore character (_).

Multiline Lambda Expressions and Subroutines

Lambda expression support has been expanded to support subroutines in addition to multiline lambda functions and subroutines.

New Command-Line Option for Specifying a Language Version

The /langversion command-line option causes the compiler to accept only syntax that is valid in the specified version of Visual Basic.

Type Equivalence Support

You can now deploy an application that has embedded type information instead of type information that is imported from a Primary Interop Assembly (PIA). With embedded type information, your application can use types in a runtime without requiring a reference to the runtime assembly. If various versions of the runtime assembly are published, the application that contains the embedded type information can work with the various versions without having to be recompiled.

Dynamic Support

Visual Basic binds to objects from dynamic languages such as IronPython and IronRuby.

Covariance and Contravariance

Covariance enables you to use a more derived type than that specified by the generic parameter, whereas contravariance enables you to use a less derived type. This allows for implicit conversion of classes that implement variant interfaces and provides more flexibility for matching method signatures with variant delegate types. You can create variant interfaces and delegates by using the new In and Out language keywords. The .NET Framework also introduces variance support for several existing generic interfaces and delegates, including the IEnumerable<(Of <(T>)>) interface and the Func<(Of <(TResult>)>) and Action<(Of <(T>)>) delegates.

Integrated Development Environment

Navigate to

You can use the Navigate To feature to search for a symbol or file in source code. You can search for keywords that are contained in a symbol by using Camel casing and underscore characters to divide the symbol into keywords.

Highlighting References

When you click a symbol in source code, all instances of that symbol are highlighted in the document.

For many control structures, when you click a keyword, all of the keywords in the structure are highlighted. For instance, when you click If in an If...Then...Else construction, all instances of If, Then, ElseIf, Else, and End If in the construction are highlighted.

To move to the next or previous highlighted symbol, you can use CTRL+SHIFT+DOWN ARROW or CTRL+SHIFT+UP ARROW.

Generate from Usage

The Generate From Usage feature enables you to use classes and members before you define them. You can generate a stub for any class, constructor, method, property, field, or enum that you want to use but have not yet defined. You can generate new types and members without leaving your current location in code. This minimizes interruption to your workflow.

Generate From Usage supports programming styles such as test-first development.

IntelliSense Suggestion Mode

IntelliSense now provides two alternatives for IntelliSense statement completion: completion mode and suggestion mode. Suggestion mode is used when classes and members are used before they are defined.

Sample Application

Visual Basic includes new sample applications that demonstrate the following features: auto-implemented properties, implicit line continuation, collection initializers, covariance and contravariance, and multiline lambda expressions and subroutines.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they're really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization - as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal's top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients' critical sites and services.

 



DotNetNuke Hosting with ASPHostPortal :: DotNetNuke 5.0 and jQuery

clock May 31, 2010 06:35 by author Jervis

This article talk about the host level settings and how the work, then we will discuss the developer implementation of jQuery. If you looking for DNN hosting, you can always consider ASPHostPortal. At ASPHostPortal you can get a professional DNN installation with your DNN Hosting account. You can always start from our Portal ONE hosting plan (from @$5.00/month) to get this application installed on your website. So, why wait longer?

Host Settings

To provide jQuery support in DotNetNuke a new set of options was added to the “host settings” section of the installation.

jQuery Settings:
- Installed jQuery Version
- Use jQuery Debug Version
- Use Hosted jQuery Version
- Hosted jQuery URL

As you can se here these are very simple options.  The first is for informational purposes only and identifies the currently installed version of jQuery that is LOCAL to the DotNetNuke installation.  By default the minified version of jQuery is used to help with performance, however when debugging script the minified version can make the task quite difficult.  This is where the “Use jQuery Debug Version” comes in handy, especially for those with local development installations.

The last two options provide DotNetNuke site administrators another great option, the ability to use a remotely hosted version of jQuery rather than the local one.  By default this is disabled, but the key advantage here is that as adoption of jQuery grows if more sites use the hosted version individuals will already have jQuery cached and it will not have to be requested on page load when visiting your specific site.  The final option allows the site administrator to select the URL for the hosted service, granting full flexibility in implementation.

As a host user goes, this is all that is needed to configure jQuery, then it is time for the developer to get involved.

Using jQuery as a Developer

Developers will also love this implementation as with a single line of code they can ensure that the needed reference to jQuery is added and they can also be assured that only one reference exists.  To perform this action the following line of code is all that is needed.

DotNetNuke.Framework.jQuery.RequestRegistration()

This will register the jQuery script for the page, the key to remember here is that this value must be set on EVERY page load as the framework does not keep track of which modules need jQuery and which do not.  This is typically the most common stumbling block when working with jQuery.

Otherwise this completes the implementation and you can include jQuery script information in your module’s .js files.  However, there is one important compatibility item to consider when it comes to jQuery, DotNetNuke, and Microsoft’s ASP.NET AJAX.  And that is the use of the $() shortcut, it is strongly recommended that rather than using the $() syntax that you use jquery() to ensure the highest level of compatibility with the framework, other modules, and other javascript that exists on the page. 

Example Implementation

So now this begs to answer the  most important question, what should we use jQuery for?  Well this is a question that isn’t easily answered by just saying everything.  But the key is that anything you are looking to do client side, MIGHT have some benefit of using jQuery rather than standard JavaScript.  This is due to the jQuery effects and the extra bonus items that it offers when it comes to working with content.  For example IowaComputerGurus Inc offers an Expandable Text/HTML module for DotNetNuke that just recently released support for jQuery for the expanding and collapsing actions.  jQuery provided a much more user friendly expansion and collapsing process with a “slow” show and hide process.

The code they use to show and hide elements is shown below.

function ShowOrHideContentJquery(idOfElement, itemId)
{
    //Create paths
    expand = jQuery("#ICG_ETH_EXPAND_" + itemId);
    collapse = jQuery("#ICG_ETH_COLLAPSE_" + itemId);

    //do the magic
    listing = jQuery("#" + idOfElement);
    if (listing.hasClass('hideContent')) {
        //Currently hidden, show with jquery
        listing.show('slow').removeClass('hideContent');

         //Setup expand collapse
         if (expand != null) {
          expand.addClass('hideContent');
          collapse.removeClass('hideContent');
        }
 }
    else {
        //Show
        listing.hide('slow').addClass('hideContent');

         //Setup expand collapse
        if (expand != null) {
           expand.removeClass('hideContent');
           collapse.addClass('hideContent');
        }
    }
}

It is very simple code, but uses some fun jQuery items such as; removeClass, addClass, show, and hide.  These options are all quick and easy ways to manipulate the HTML Document Object Model to get intended effects with little programming on the developers side of things.  This is just one simple example of jQuery in action within DotNetNuke. 

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they're really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization - as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal's top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients' critical sites and services.

 



Reseller Hosting ASPHostPortal :: Becoming Your Own Affordable Hosting Reseller Expert

clock May 30, 2010 06:18 by author Jervis

If you're already a webmaster who's experienced managing multiple domains - and yes, this means assigning user access levels to friends and family so they could play around in the web space you've purchased - you may have done just enough research to make you an efficient hosting reseller. You must also have gotten an idea how hot an affordable hosting reseller outfit could be in the market today. Why not think about taking the next step and becoming a web space reseller as well?

And it's not enough to be just any reseller - to give yourself an edge in the market, you must first of all be an affordable hosting reseller. You have to offer unique services, or at the very least premium features at premium prices, otherwise you'll fail to catch the attention of your prospective customers. No doubt many other webmasters out there have been around and seen what makes reseller accounts look so attractive. You need to do your own research and see what will give you an advantage over other resellers.

So how do you become an in-demand reseller? First of all, you need to define your market. What kind of users are you targeting - small business owners, private individuals, or large organizations and corporate entities? It's important for you to keep your potential customers at the forefront of all your planning, because their needs will shape the way you customize the packages you aim to resell.

Many resellers make it a point to target specific sectors, like people who want to be able to host multiple domains for their personal websites, or people who want the extended functionalities of online store hosting. People will react better to your sales pitch when they hear that you are offering exactly the features they need, at exactly the budget they have. It would be beneficial to draw on your webmastering experience for this.

This leads us to the next step: make a tally of the things your outfit has to offer. Then, out of that list, check the features you have that aren't offered by many other resellers who cater to your target market.

After you've defined what would make your web space uniquely sellable, draft a marketing plan. How do you plan to come across as an reliable and affordable hosting reseller outfit? One way to go about this is to be liberal with promos and limited offers. Sure it may mean limited profit, but remember you're just starting off - when you've already established your footing in the market, the customers you were able to attract with your promos will end up being the customers you'll be keeping for the long haul.

Through this article, we want to recommend you to try ASPHostPortal to host your reseller site. You can start from RESELLER 10 ($ 24.00/month) to get this application.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they're really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization - as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal's top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients' critical sites and services.

 



About ASPHostPortal.com

We’re a company that works differently to most. Value is what we output and help our customers achieve, not how much money we put in the bank. It’s not because we are altruistic. It’s based on an even simpler principle. "Do good things, and good things will come to you".

Success for us is something that is continually experienced, not something that is reached. For us it is all about the experience – more than the journey. Life is a continual experience. We see the Internet as being an incredible amplifier to the experience of life for all of us. It can help humanity come together to explode in knowledge exploration and discussion. It is continual enlightenment of new ideas, experiences, and passions

 photo ahp banner aspnet-01_zps87l92lcl.png

Author Link

Corporate Address (Location)

ASPHostPortal
170 W 56th Street, Suite 121
New York, NY 10019
United States

Sign in