Windows Reseller Hosting with ASPHostPortal.com

Articles about Special Reseller Hosting Package with ASPHostPortal.com

ASPHostPortal :: Web Application Using the Performance Wizard

clock December 17, 2014 07:18 by author Mark

How to Profile a Web Site or Web Application Using the Performance Wizard

The Performance Wizard enables you to add tier interaction (TIP) data, JScript performance data, or both to the collected profiling data. The TIP option collects data from server-side processes. The JScript profiling collects data from scripts that are running on a local or remote Web site. In most cases, you should choose only one of the options.

Visual Studio 2015

You can use the Performance Wizard to collect performance data for an ASP.NET Web application. You can profile a Web application that is open in Visual Studio, or you can profile an ASP.NET Web site that is located on your local computer and not open in the Visual Studio IDE.
Depending on User Access Permissions settings that an administrator has made available, an individual user might or might not have security permission to create a profiler session on the computer that hosts the ASP.NET process. The following examples illustrate possible differences among users:

  • Some users may access advanced profiling features when the Administrator has set the driver and service to start.
  • Domain users may access sample profiling only.
  • Some users my deny access to profiling to all other users.
  • To profile a Web site project
  • Open the ASP.NET Web project in Visual Studio Premium or Visual Studio Ultimate.
  • On the Analyze menu, click Launch Performance Wizard.
  • On the first page of the wizard, select a profiling method, and then click Next.

"Note that the concurrency visualizer profiling method is not available for web applications".

In the Which application would you like to target for profiling? drop-down list, make sure that the current project is selected, and then click Next.
On the third page of the wizard, you can choose to add tier interaction profiling (TIP) data, data from the JavaScript running in the Web pages, or both.
To collect tier interaction, select the Enable Tier Interaction Profiling check box.
To collect data from the JavaScript running in the Web pages, select the Profile JavaScript check box.

Click Next On the fourth page of the wizard, click Finish.
A performance session is created for the ASP.NET application, and the Web site is started in the browser. Exercise the functionality that you want to profile, and then close the browser.

The profiler generates the data file and displays the Summary view of the data in the Visual Studio main window.
To profile a Web site without opening a project in Visual Studio

  • Open Visual Studio Premium or Visual Studio Ultimate.
  • On the Analyze menu, click Launch Performance Wizard.
  • On the first page of the wizard, select a profiling method, and then click Next.
  • select the Profile an ASP.NET or JavaScript application option, and then click Next.
  • In the What URL or Path will run your web application box on the third page of the wizard, enter the URL to the application home page, and then click Next.
  • For a server (IIS) based Web site, type a URL such as http://localhost/xxxx/default.aspx. This causes the ASP.NET application on the local computer at the application root of MySite to be profiled, and the page default.aspx on that site to be started in Internet Explorer to start the session.
  • For a file based Web site, type a path such as file///c:\WebSites\xxxx\default.aspx. This causes the ASP.NET application located at c:\webSites\xxxx to be profiled and the page http://localhost:nnnn/xxxx/default.aspx to be started in Internet Explorer to start the session.

On the third page of the wizard, you can choose to add tier interaction profiling (TIP) data, data from the JavaScript running in the Web pages, or both.
To collect tier interaction, select the Enable Tier Interaction Profiling check box.
To collect data from the JavaScript running in the Web pages, select the Profile JavaScript check box.
Click Next. On the fourth page of the wizard, click Finish.
A performance session is created for the ASP.NET application, and the Web site is started in the browser. Exercise the functionality that you want to profile, and then close the browser.
The profiler generates the data file and displays the Summary view of the data in the Visual Studio main windows.



Cheap ASP.NET 4.5 Hosting :: Simple Script to Integrate PayPal Donate Button on Your ASP.NET Pages

clock July 14, 2014 08:49 by author ben

If you are collecting donations for a large number of beneficiaries, you may be considered an organization. There are specific laws surrounding fundraising practices for organizations, and you will need to register your organization as such (if applicable) before setting up a fundraising account. Because government regulations regarding charitable organizations differ from region to region, you should check with your local government to determine if this applies to your charity and PayPal donations can help you for it.


Setting up PayPal donations is an ideal way to let people contribute money to your cause online. The PayPal donation button works much like the Buy Now button, except it allows you to indicate to customers they are making a donation rather than purchasing a product. You can learn how to set up a PayPal button for donations and make buttons for any of the currencies PayPal supports. You can make buttons for fixed donation amounts or allow the donor to choose how much he or she wants to send.

Here is the script to integrate PayPal donation button on ASP.NET Pages:

<form id="paypal" name="PayPal" method="post" action="https://www.paypal.com/cgi-bin/webscr">
        <input type="hidden" name="cmd" value="_cart">
        <input type="hidden" name="upload" value="1" />
        <!--<input name="image_url" type="hidden"  />-->
        <input type="hidden" name="invoice" value="<%= Session["orderid"] %>" />
        <!-- The following is for itemized PayPal data instead of the aggregated version -->
        <%=PaypalItemList%>
        <input type="hidden" name="tax_cart" value="0.00" />
        <!-- STANDARD DATA -->
        <input name="rm" type="hidden" value="2" />
        <input type="hidden" name="business" value="<%=GetPaypalEmail() %>" />
        <input type="hidden" name="no_note" value="1" />
        <input name="lc" type="hidden" value="US" />
        <input type="hidden" name="currency_code" value="<%=GetPaypalCurrCode()%>" />
        <input type="hidden" name="notify_url" value="<%=GetNotifyUrl()%>" />
        <input type="hidden" name="return" value="<%=GetSuccessUrl() %>" />
        <input type="hidden" name="cancel_return" value="<%=GetFailureUrl() %>" />
        <input name="email" type="hidden" value="<%=GetPaypalEmail() %>" />      
        &nbsp;&nbsp;
        <asp:Button ID="btnback" runat="server" CssClass="big_btn" Text="Back" OnClick="btnback_Click"
            UseSubmitBehavior="False" Width="65px" />&nbsp;
        <asp:Button ID="btnppconti" runat="server" CssClass="big_btn" UseSubmitBehavior="true"
            Text="Continue" Width="69px" />
    </form>


ASPHostPortal.com is your ASP.NET 4.5 hosting home! We understand that as .NET developer, you need to find good .NET hosting that provide reliable and cheap .NET hosting. We have upgraded all our servers to be fully compatible with .NET 4.5 technology. With our complete hosting control panel, you can switch the version easily and instantly without bringing your entire site down. It is fully automated and switching the version just with one click, easy and fast. ASPHostPortal.com supports the latest .NET framework, .NET 4.5, as well as past frameworks like .NET 4, .NET 3.5, and .NET 2.0. All of our .NET hosting comes with FREE Trial Hosting. If the service does not meet your expectations, simply cancel before the end of the free trial period. No Risk!! Why wait longer?



ASP.Net 4.5.1 Hosting with ASPHostPortal.com :: Securing ASP.NET 4.5.1 / WCF with Forms Authentication

clock March 3, 2014 12:24 by author Diego

Windows Communication Foundation (WCF) is a framework for distributed application. WCF is the easiest way to produce and consume Web services on the Microsoft platform. The mechanism of WCF operation is similar to ASP.NET web services (WS). Clients can invoke and consume multiple services, and a single service can be consumed by multiple clients. web services -Addressing, web services -Reliable Messaging and web services -Security are some of the Web Services specifications that are implemented by WCF. Now with this article shows how to secure a Windows Communication Foundation (WCF) service with Forms Authentication.

So, here is to enable the authentication service :

  • use built-in template in Visual Studio 2010
  • Create authentication WCF Service
  • Create Data WCF RESTful serviceCreate some basic functionality to perform CRUD operations on a Person object. 
  • Create users table I am going to use for authentication.

write the following code for operational RESTful service

using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Web.Script.Services;
 
 
namespace CustomWcfRestService
{
    [
ServiceContract]
    [
AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    [
ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
   
public class CustomService
    {
        [
WebGet(UriTemplate = "/GetPeople", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
       
public List<Person> GetPeople()
        {
           
using(var ctx = new Context())
            {
                ctx.Configuration.LazyLoadingEnabled =
false;
                ctx.Configuration.ProxyCreationEnabled =
false;
               
return ctx.People.OrderBy(one => one.LastName).ThenBy(two => two.FirstName).ToList();
            }
        }
 
        [
WebInvoke(UriTemplate = "/Create", Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
       
public Person Create(Person person)
        {
           
using (var ctx = new Context())
            {
                ctx.Entry(person).State =
EntityState.Added;
                ctx.SaveChanges();
               
return person;
            }
        }
 
        [
WebGet(UriTemplate = "/GetPerson?id={id}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
       
public Person Get(int id)
        {
           
using (var ctx = new Context())
            {
                ctx.Configuration.LazyLoadingEnabled =
false;
                ctx.Configuration.ProxyCreationEnabled =
false;
               
return ctx.People.Find(id);
            }
        }
 
        [
WebInvoke(UriTemplate = "/UpdatePerson", Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
       
public Person Update(Person person)
        {
           
using (var ctx = new Context())
            {
                ctx.Entry(person).State =
EntityState.Modified;
                ctx.SaveChanges();
               
return person;
            }
        }
 
        [
WebInvoke(UriTemplate = "/GetPerson?id={id}", Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
       
public void Delete(int id)
        {
           
using (var ctx = new Context())
            {
               
var person = new Person {ID = id};
                ctx.Entry(person).State =
EntityState.Deleted;
                ctx.SaveChanges();
            }
        }
 
    }
}

 

  • LoginService that I will use for authentication. Configure forms authentication in asp.net config

using System;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.Web.Security;
using System.Web;
 
 
namespace CustomWcfRestService
{
    [
AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    [
ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
   
public class LoginService : ILoginService
    {
 
       
public bool Login(string userName, string password)
        {
           
bool returnValue = false;
           
User user;
           
using (var ctx = new Context())
            {
                user = ctx.Users.Where(one => one.UserName == userName).FirstOrDefault();
               
if (user != null)
                {
                    returnValue = (user.Password == password);
                }
            }
           
if (returnValue)
            {
               
var ticket = new FormsAuthenticationTicket(
                        1,
                        userName,
                       
DateTime.Now,
                       
DateTime.Now.AddDays(1),
                       
true,
                        user.UserID.ToString()
                    );
               
string encryptedTicket = FormsAuthentication.Encrypt(ticket);
               
var cookie = new HttpCookie(FormsAuthentication.FormsCookieName, encryptedTicket);
               
HttpContext.Current.Response.Cookies.Add(cookie);
 
            }
           
return returnValue;
        }
    }
}

  • Below Configure forms authentication in asp.net config is sample web.config configuration for enable actual security.

<?xml version="1.0"?>
<configuration>
    <connectionStrings>
        <add name="SecuredServiceDemo"
           connectionString="Server=.;Integrated Security=SSPI;Database=SecuredServiceDemo"
           providerName="System.Data.SqlClient" />
    </connectionStrings>
    <system.web>
        <compilation debug="true" targetFramework="4.0" />
        <authentication mode="Forms">
        </authentication>
        <authorization>
            <deny users="?"/>
        </authorization>
    </system.web>
  
    <location path="LoginService.svc">
        <system.web>
            <authorization>
                <allow users="?"/>
            </authorization>
        </system.web>
    </location>

 

  • And The last create a test client, create validate credentials against database. creating custom cookie, encrypting it and sending back to the client.

HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty();
httpRequestProperty.Headers.Add(HttpRequestHeader.Cookie, FormsAuthentication.GetAuthCookie(User.Identity.Name, false).Value);
ServiceReference1.Service1Client serviceClient = new WebApplication1.ServiceReference1.Service1Client();
using (OperationContextScope scope = new OperationContextScope(serviceClient.InnerChannel)){
OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty;
string s =serviceClient.GetData(2);}

At the service side

HttpRequestMessageProperty g = OperationContext.Current.IncomingMessageProperties[HttpRequestMessageProperty.Name] as HttpRequestMessageProperty;
string s = g.Headers.Get(HttpRequestHeader.Cookie.ToString());
FormsAuthenticationTicket tick = FormsAuthentication.Decrypt(s);

There are many ways to authenticate and authorize a user in a WCF Service, but in this example, the authentication cookie will already be created by the login page and that will be used by subsequent requests made to the REST service for authorization. This is it to secure <a href="http://asphostportal.com/ASPNET-451-Hosting">ASP.NET 4.5.1 Hosting</a>  Windows Communication Foundation (WCF) service with Forms Authentication

Just to confirm that everything is working, I can just comment out the part that authenticates and gets a cookie, and I get 404 as expected. Once authenticated, a "session" is kept to hold on to security related info like the roles of a user.

Happy coding :)



ASP.NET MVC 5.1.1 Hosting - ASPHostPortal.com :: Popup Windows in ASP.NET MVC 5.1.1

clock February 28, 2014 06:09 by author Diego

I'm trying to figure out how to properly call a modal popup for my page using Controllers as per this post's suggestion.
Do you know what "modal windows" are? They are windows that, once opened, they do not provide any interaction with the rest of the windows in the application. In our application if we want to display confirmation dialogs then we can use these modal windows to get confirmation from the user. If we need to interact with the rest of the windows we must have to provide some response like Ok or cancel or close, then we can only interact with other windows in our application.
This article provided an overview of the jQuery Mobile application in the ASP.NET MVC 5.1.1 project template using Visual Studio 2013. This post is my attempt to answer that question it’s as much for me to remember how I did it as it will hopefully be helpful to you to see how I accomplished it.


So, here’s the Step By Step – I hope you enjoy it!

Step 1 : Firstly you will need to import the following jquery and css files.


Step 2 :
Create a
Jquery code required for the modal popup to work. We are using the following 3 properties.

·  class – indicates that on click of this link, execute the jquery written above

·  data_dialog_id

·  data_dialog_title – Used to display the title of the jquery modal popup


Step 3 :
Write This Razor code.


Step 4 :
Add a new controller called Home and in the Home controller.


Step 5 :
Below is the About.cshtml view which will be display by the above (About) action.


now completes our dialog. Below are the screenshots on how the modal popup appears at runtime.


This Is PopUp Window in Our Project

Thanks for reading.



ASP.NET MVC 5.1 Hosting :: ASPHostPortal.com Proudly Launches ASP.NET MVC 5.1 Hosting

clock January 28, 2014 09:16 by author ben

ASPHostPortal.com officially launches ASP.NET MVC 5.1  hosting at affordable prices. Instant Setup, Fast and Friendly Support!

ASPHostPortal.com, a leading innovator in Windows Hosting, announces the launch of ASP.NET MVC 5.1 Hosting. The ASP.NET MVC 5.1 Framework is the latest evolution of Microsoft’s ASP.NET web platform. It provides a high-productivity programming model that promotes cleaner code architecture, test-driven development, and powerful extensibility, combined with all the benefits of ASP.NET.

ASP.NET MVC 5.1 contains a number of advances over previous versions, including the ability to define routes using C# attributes and the ability to override filters,Enum support in Views, Support for current Context in Unobtrusive Ajax, Filter Overrides and etc. The user experience of building MVC applications has also been substantially improved.

“Our customers have been asking us about MVC 5.1 and we are happy to deliver a hosting platform that supports all the latest in the Microsoft Web Stack.” said said Dean Thomas, Manager at ASPHostPortal.com.  "And it proves that we remain at the forefront in Microsoft technology".

Where to look for the best ASP.NET MVC 5.1 hosting service? How to know more about the different types of hosting services? Read more about it on http://www.asphostportal.com.


About ASPHostPortal.com:

ASPHostPortal.com is a hosting company that best support in Windows and ASP.NET-based hosting. Services include shared hosting, reseller hosting, and sharepoint hosting, with specialty in ASP.NET, SQL Server, and architecting highly scalable solutions. As a leading small to mid-sized business web hosting provider, ASPHostPortal.com strive to offer the most technologically advanced hosting solutions available to all customers across the world. Security, reliability, and performance are at the core of hosting operations to ensure each site and/or application hosted is highly secured and performs at optimum level.



Free ASP.NET hosting - ASPHostPortal.com :: ASPHostPortal.com Proudly Announces Free Trial Windows ASP.NET Hosting

clock October 3, 2013 11:03 by author ben

ASPHostPortal.com is a premier Windows and ASP.NET Web hosting company that specializes in Windows and ASP.NET-based hosting. We proudly announces 7 Day Free Trial Windows and ASP.NET Hosting to all new customers. The intention of this FREE TRIAL service is to give our customers a "feel and touch" of our system. This free trial is offered for the next 7 days and at anytime, our customers can always cancel the service.


The 7 Day Free Trial is available with the following features:

- Unlimited Domains
- 5 GB Disk Space
- 60 GB of Bandwidth
- 2 MS SQL Database
- Unlimited Email Account
- Support ASP.NET 4.5
- Support MVC 4.0
- Support SQL Server 2012
- Free Installations of ASP.NET And PHP Applications

ASPHostPortal.com believes that all customers should be given a free trial before buying into a service and with such approach, customers are confident that the product / service that they choose is not faulty or wrong. Even we provide free trial service for 7 days, we always provide superior 24/7 customer service, 99,9% uptime guarantee on our world class data center. On this free trial service, our customer still can choose from our three different data centre locations, namely Singapore, United States and Amsterdam (The Netherlands)

Anyone is welcome to come and try us before they decide whether or not they want to buy. If the service does not meet your expectations, our customer can simply cancel before the end of the free trial period.

For all the details of packages available visit ASPHostPortal.com

About ASPHostPortal.com:

ASPHostPortal.com is a hosting company that best support in Windows and ASP.NET-based hosting. Services include shared hosting, reseller hosting, and sharepoint hosting, with specialty in ASP.NET, SQL Server, and architecting highly scalable solutions. As a leading small to mid-sized business web hosting provider, ASPHostPortal strive to offer the most technologically advanced hosting solutions available to all customers across the world. Security, reliability, and performance are at the core of hosting operations to ensure each site and/or application hosted is highly secured and performs at optimum level.



Cheap Reseller Hosting

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

Author Link

 photo ahp banner aspnet-01_zps87l92lcl.png

Corporate Address (Location)

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

Sign in