INSERT INTO sites(host) VALUES('aspnet101.com') 1045: Access denied for user 'www-data'@'localhost' (using password: NO) aspnet101.com Estimated Worth $225,817 - MYIP.NET Website Information
Welcome to MyIP.net!
 Set MYIP as homepage      

  
           

Web Page Information

Title:
Meta Description:
Meta Keywords:
sponsored links:
Links:
Images:
Age:
sponsored links:

Traffic and Estimation

Traffic:
Estimation:

Website Ranks

Alexa Rank:
Google Page Rank:
Sogou Rank:
Baidu Cache:

Search Engine Indexed

Search EngineIndexedLinks
 Google:
 Bing:
 Yahoo!:
 Baidu:
 Sogou:
 Youdao:
 Soso:

Server Data

Web Server:
IP address:    
Location:

Registry information

Registrant:
Email:
ICANN Registrar:
Created:
Updated:
Expires:
Status:
Name Server:
Whois Server:

Alexa Rank and trends

Traffic: Today One Week Avg. Three Mon. Avg.
Rank:
PV:
Unique IP:

More ranks in the world

Users from these countries/regions

Where people go on this site

Alexa Charts

Alexa Reach and Rank

Whois data

Who is aspnet101.com at whois.godaddy.com

Domain Name: ASPNET101.COM

Registrar URL:
http://www.godaddy.com

Registrant Name: Jude O'Kelly

Registrant Organization:

Name Server:
ns31.domaincontrol.com

Name Server:
ns32.domaincontrol.com

DNSSEC: unsigned



For complete domain details go to:


http://who.godaddy.com/whoischeck.aspx?domain=ASPNET101.COM



The data contained in GoDaddy.com, LLC's WhoIs database,

while believed by the company to be reliable, is provided "as is"

with no guarantee or warranties regarding its accuracy. This

information is provided for the sole purpose of assisting you

in obtaining information about domain name registration records.

Any use of this data for any other purpose is expressly forbidden without the prior written

permission of GoDaddy.com, LLC. By submitting an inquiry,

you agree to these terms of usage and limitations of warranty. In particular,

you agree not to use this data to allow, enable, or otherwise make possible,

dissemination or collection of this data, in part or in its entirety, for any

purpose, such as the transmission of unsolicited advertising and

and solicitations of any kind, including spam. You further agree

not to use this data to enable high volume, automated or robotic electronic

processes designed to collect or compile this data for any purpose,

including mining this data for your own personal or commercial purposes.



Please note:
the registrant of the domain name is specified

in the "registrant" section. In most cases, GoDaddy.com, LLC

is not the registrant of domain names listed in this database.

Front Page Thumbnail

sponsored links:

Front Page Loading Time

Keyword Hits (Biger,better)

Other TLDs of aspnet101

TLDs Created Expires Registered
.com
.net
.org
.cn
.com.cn
.asia
.mobi

Similar Websites

More...
Alexa鏍囬

Search Engine Spider Emulation

Title:ASP.NET 101 | ASP.NET and MVC Tutorials
Description:
Keywords:
Body:
ASP.NET 101 | ASP.NET and MVC Tutorials
ASP.NET 101
ASP.NET and MVC Tutorials
Search
Main menu
Skip to primary content
Skip to secondary content
Home.NET Code SnippetsAboutASP.NET BooksASP.NET FAQ #039;sASP.NET Application State and Application VariablesASP.NET Control State vs View StateHow To Encrypt Connection Strings in ASP.NETHow to Find Out What Account ASP.NET is Running UnderHow to Have Multiple Forms on an ASP.NET PageHow to Protect Against SQL Injection Attacks in ASP.NETSet or Increase the Session Timeout in ASP.NETViewState vs Session StateWhat are the differences between System.Net.Mail and System.Web.MailWhat is WCF ?ASP.NET HostingASP.NET ResourcesFeatured TrainingHow to customize password generation in ASP.NETRegisterRegisterSample PageSample Page
Post navigation
larr; Older posts
Us Horse Racing Schedules and Results
Posted on June 15, 2016 by admin
Reply
Just launched a new site on US Racing and Results. Its at GoRacing #8211; Horse Racing Schedules Results . We will be adding a lot more results soon including the new features including the in-race timings.
Posted in Uncategorized
|
Leave a reply
Boost Performance by Using a CDN in Your ASP.NET Site
Posted on June 2, 2011 by admin
Reply
A CDN (Content Delivery Network) is simply a network of data centers spread聽across the globe which serve static content to a user from the nearest聽available data center. Thus a request for a static file by a user in Australia
would be served from a nearby AsiaPac data center instead of the US (where the聽main site may to served from). This reduces the latency and therefore boosts聽performance.
A secondary factor boosting performance is that typically browsers can only open聽up 2 simultaneous connects to a host, therefore if your web page will require 20聽file requests and all static files are on the same server the requests are
queued two at a time. If a CDN is used, the browser can open up more聽simultaneous file requests and so boost performance.
Which CDN ?
There are numerous CDNs to choose from, personally I use the Rackspace聽CloudFiles. Rackspace recently partnered with Akamai and so the CDN network is聽top notch #8211; although the tools are quite weak. It is not possible to FTP a file
to a CDN but the FireUploader utility for Firefox is satisfactory (note that聽this had some issues with Firefox 4.0 when I tested it and as such I am still聽using it with Firefox 3.6).
I won #8217;t list all available CDN options as I have not tried that many, but I also聽had a good experience with MaxCDN, although their pricing structure is quite聽unusual and so you should carefully examine this to guage your costs.
One thing to note, Amazon #8217;s S3 storage solution is NOT a CDN. All files served聽from S3 are served from a single location and not from an array of data centers. 聽Amazon does have a CDN offering #8211; CloudFront, however I would not recommend this聽as it did not perform well in any of my testing. The Azure CDN offering had a聽similar performance to the CloudFront product in my experience and so I wouldn #8217;t recommend it.
How to Use a CDN
Using a CDN is very simple, just upload your static files to the CDN and then聽set the src attribute of the element (such as an lt;img gt; tag).
When a file is requested for the first time it will first be served from the聽central data center and then cached at the edge location (ie worldwide data聽center nearest to the requesting user). All subsequent requests will be served聽from the cache of the edge location until the TTL (Time To Live) value has聽expired. This can be a gotcha if you are updating the files. This typically聽happens a lot with css files. Therefore if you update your site #8217;s css file, then聽upload it to your CDN, site users around the worldwide may be served a cached聽version of the old file. To get around this you can specify version numbers for聽your css files, in this way each file is unique and when you push an update the聽CDN will request the new css file from the central store before caching it.
By way of example if you look at the source for this SharePoint article you will see that most of the static files are served from a CDN.
Posted in Tips, Tutorials
|
Tagged CDN, Performance
|
Leave a reply
Free SQL Server Backup Script
Posted on May 11, 2011 by admin
Reply
The SQL Server backup function聽accessible聽from SQL Server Management Studio is convenient but crude, the powerful script allows for backing up multiple databases and setting many other parameters such as compression, verification etc. [DatabaseScripts.com].
Posted in Tutorials
|
Leave a reply
Including ASP.NET Membership in an Existing Database
Posted on February 22, 2011 by admin
Reply
By default, when adding ASP.NET Membership to your web app a new ASP.NET Membership database will be created. However, in many circumstances you may wish the Membership database to be part of your 聽main application database. To do this simply navigate to \Windows\Microsoft.NET\Framework\v2.0.50727 (use this path even if you are using ASP.NET 4.0 in your application as the Membership database has not changed since ASP.NET 2).
Then find and run the aspnet_regsql.exe program. This will bring up a dialog allowing you to specify the target database to incorporate the ASP.NET Membership tables and stored procedures :
The final step is to ensure that the all connection string references to the membership provider in the web.config point to this database. Don #8217;t forget if you are using Roles that the role provider specified in the web.config must also point to this database (otherwise ASP.NET will automatically create a new database for the roles when the app is run).
Posted in FAQ, Tips
|
Tagged ASP.NET Membership, ASP.NET Membership database
|
Leave a reply
ASP.NET MVC Authentication using AccountController
Posted on February 3, 2011 by admin
Reply
The AccountController class is a controller for user聽authentication which is聽included in a default MVC project created with Visual Studio. Prior to using this controller, you will need to modify聽it so that it no longer refers to the HomeController which you most likely will remove. To do this, replace each of聽these instances:
return RedirectToAction("Index", "Home");
so they are as below:
return RedirectToAction("Index", "Products");
This will cause the authentication controller to redirect a user to the products controller once an authentication action ends. The default ASP.NET MVC master page has links for a 聽user to log in/out and register. The MVC Authorize filter facilitates control over which users may access the controller methods. Below is an example of the Authorize filter being 聽applied to the Delete method in the products controller class:
[Authorize]
public ActionResult Delete(int id) {
NorthwindEntities dbObj = new NorthwindEntities();
var data = dbObj.Products.Where(e = gt; e.ProductID == id).Select(e = gt; e).Single();
return View(data);
}
If a user clicks a delete link to delete a record of a product, the MVC framework is then checked. If the user聽is currently logged in, the action will proceed.. If the user has not logged in they will then be requested to provide their聽username and password credentials or else to create a new account.聽This can be made even more restrictive by specifying user names as part of the filter. Below is an example of the Authorize filter applied so the Delete method is only available to Mike Smith:
[Authorize(Users="Mike Smith")]
public ActionResult Delete(int id) {
Now only Mike Smith can perform the delete actions, all other users will be asked for their credentials.聽The MVC Authorize filter can even be applied to the whole controller class. Below is an example of the Authorize filter being聽applied to the ProductsController class, so that only authenticated users can access controller actions:
[HandleError(Order=2)]
[Authorize]
public class ProductsController : Controller {
The Authorize filter has an Order property which works just as the HandleError Order property. If the 聽Authorize filter is applied for the whole controller level and for a specific action method, the聽controller-wide setting will always have precedence unless the Order property is used.
Posted in ASP.NET MVC
|
Tagged AccountController, ASP.NET MVC Authentication, Authentication
|
Leave a reply
SharePoint with ASP.NET MVC
Posted on February 1, 2011 by admin
Reply
How to use SharePoint with ASP.NET MVC.
Posted in FAQ
|
Tagged SharePoint
|
Leave a reply
Sending Mail from a .NET App Using Amazon SES (Simple Email Service)
Posted on January 28, 2011 by admin
Reply
Amazon #8217;s Simple Email Service (SES) is a great solution for any project which requires bulk emails. the primary advantage of SES is cost, at $0.10 per 1000 emails sent it is between 5-10x cheaper than other alternatives such as SendGrid. There is a downside to the SES service, however and it is that it currently doesn #8217;t provide an SMTP wrapper so whilst SendGrid and others allow you to simple change your SMTP settings, with SES you will have to do a bit more work.
Amazon (AWS) provides a very useful .NET SDK (complete with dll #8217;s for .NET 2.0, 3.5 and 4.0) which you can simply copy into your project and start calling the Amazon functions from a .NET app such as an ASP.NET site. You can download the SDK here.
The below code shows a simple example of how to use the Amazon AWS SDK in .NET to send emails.
Dim listColl As New System.Collections.Generic.List(Of String)
'//TODO - Write a simple loop to add the recipents email addresses to the listColl object.
Dim client As New Amazon.SimpleEmail.AmazonSimpleEmailServiceClient("aws_public_key_here", "aws_private_key_here")
Dim mailObj As New SendEmailRequest
Dim destinationObj As New Destination(listColl)
mailObj.Source = "from@youremail.com" 聽'//The from email address
mailObj.ReturnPath = "bounce@youremail.com" '//The email address for bounces
mailObj.Destination = destinationObj
'//Create Message
Dim emailSubjectObj As New Amazon.SimpleEmail.Model.Content("This is the Subject")
Dim emailBodyContentObj As New Amazon.SimpleEmail.Model.Content("This is the Body lt;br / gt; lt;em gt;In Html lt;/em gt;")
Dim emailBodyObj As New Amazon.SimpleEmail.Model.Body()
emailBodyObj.Html = emailBodyContentObj
Dim emailMessageObj As New Message(emailSubjectObj, emailBodyObj)
mailObj.Message = emailMessageObj
Dim response = client.SendEmail(mailObj)
That #8217;s it, there #8217;s really not a lot of heavy lifting to get starting using SES with .NET. the only thing I didn #8217;t show in the code above is the loop for adding email addresses as strings to the generic collection, this loop will vary a lot depending on your exact requirements.
One thing to note above is that you will need to import the namespace Amazon.SimpleEmail.Model
AWS SES is not as full featured as a lot of solutions such as SendGrid, however it does have several useful features out-of-the-box such as the ability to perform email validation:
Dim testEmail As String = "anemail@domain.com"
Dim verRequest As New VerifyEmailAddressRequest()
verRequest.EmailAddress = testEmail
client.VerifyEmailAddress(verRequest)
This should get you going with SES, I will update this page once the service develops.
Posted in Code Samples, Tips, Tutorials
|
Tagged Email, Mail, SES, Simple Email Service
|
Leave a reply
ASP.NET MVC Error Handling using the HandleError Filter
Posted on January 25, 2011 by admin
Reply
ASP.NET Errors can be effectively handled using the HandleError filter, which specifies how exceptions which are thrown in a controller method are to be dealt with (note that ASP.NET MVC supports method filters, which allow for annotating controller methods to change their behavior).
Prior to using the HandleError filter, you will need to enable custom error handling for your ASP.NET MVC app in the web.config file by adding the below line in the system.web section:
lt;customErrors mode="On" / gt;
The below code snippet show the HandleError filter being applied to the controller class. Thus, any exception which is thrown by an action method in the controller will be handled using the custom error policy.
namespace MVCApplicationDemo.Controllers {
[HandleError]
public class ProductController : Controller {
When the HandleError filter is applied without arguments, any exception thrown by the methods covered by the filter will result in the Views/Shared/Error.aspx view being used which just shows the message 鈥淪orry, an error occurred while processing your request.鈥 To test
this process, attempt to view details of a product which does not yet exist, such as with a URL as below:
http://localhost:51823/Product/Details/999990
The error message can be more specific and you may wish to give the user more detailed info. To do this create a view in the Views/Shared folder named NoRecordErr.aspx with the below content:
lt;%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
Inherits="System.Web.Mvc.ViewPage lt;System.Web.Mvc.HandleErrorInfo gt;" % gt;
lt;asp:Content ID="errTitle" ContentPlaceHolderID="TitleContent" runat="server" gt;
Error Occured
lt;/asp:Content gt;
lt;asp:Content ID="errContent" ContentPlaceHolderID="MainContent" runat="server" gt;
lt;h2 gt;
Sorry, but that record does not yet exist.
lt;/h2 gt;
lt;/asp:Content gt;
This is a modification of the default error view with a message to show the user that the product request does not yet exist in the database. Next, we can apply the HandleError filter to the Details controller method as in the below snippet:
[HandleError(View="NoRecordErr")]
public ActionResult Details(int id) {
The filter informs the MVC framework that it should use the NoRecordErr view for an exception that is thrown by the Details method. Now, you need to modify the backstop filter to be as show below:
[HandleError(Order=2)]
public class ProductController : Controller {
An Order value of 2 ensures the controller-wide filter is to be applied only in the event that there is not a HandleError filter with a higher order available. If you do not set a value for Order, the default error view takes precedence.
Now if a user attempts to requests details for a product which does not exist they will be served the new error view. The default error view will be served if other controller methods throw exceptions.
However as it currently stands a user will be informed that they requested a non-existent record for any exception arising from the Details method. Thus you will need to be even more specific.
First, create an exception in the ProductController class which will be used when a record the user has requested is not available:
class NoRecordErr : Exception {
}
The next step is to modify the Details method so that it explicitly checks whether the LINQ query returned a record and if not record was returned throw a new exception.
[HandleError(View="NoRecordErr",
ExceptionType=typeof(NoRecordErr))]
public ActionResult Details(int id) {
NorthwindEntities db = new NorthwindEntities();
var data = db.Products.Where(e = gt; e.ProductID == id).Select(e = gt; e);
if (data.Count() == 0) {
throw new NoRecordErr();
} else {
Product record = data.Single();
return View(record);
}
}
In summery we changed the HandleError filter by including a value for the ExceptionType property, then specifying the type of the exception the filter should to apply to. Now when a NoRecordErr() exception is thrown, the NoRecordErr.aspx view will instead be used. Alternatively, the generic Error.aspx will be used for other exception types (since we applied the controller-wide backstop filter).
Posted in ASP.NET MVC
|
Tagged Error Handling, HandleError Filter
|
Leave a reply
Using Sequence in SQL Server 2011 (an Alternative to Identity)
Posted on January 6, 2011 by admin
Reply
Using the Identity attribute for a column in SQL Server is a very convenient way to auto-increment a field in a row and generate unique ID #8217;s for use as a primary key. SQL Server 2011 introduces Sequence, which is similar in many respects but is offers greater performance and flexibility #8211; read our full tutorial on Using Sequence in SQL Server 2011.
Posted in Tips, Tutorials
|
Tagged Data Access, SQL Server
|
Leave a reply
WordPress Facebook Connect Login
Posted on October 25, 2010 by admin
Reply
Posted in ASP.NET MVC, Uncategorized
|
Leave a reply
Post navigation
larr; Older posts
newsletters
Finance Newsletter
I.T. Newsletter
Jude O #039;Kelly
Proudly powered by WordPress

Updated Time

Updating   
Friend links: ProxyFire    More...
Site Map 1 2 3 4 5 6 7 8 9 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 250 300 350 400 450 500 550 600 610 620 630 640 650 660 670 680 690 700 710 720 730 740 750
TOS | Contact us
© 2009 MyIP.cn Dev by MYIP Elapsed:244.475ms