.NET news » Search results
Search results for query "net" (410):
Improving ASP.NET MVC MUSIC STORE more usability with DotNetAge in 30 minutes
Accessing Server-Side Data from Client Script: Using WCF Services with jQuery and the ASP.NET Ajax Library
Today's websites commonly exchange information between the browser and the web server using Ajax techniques - the browser executes JavaScript code typically in response to the page loading or some user action. This JavaScript makes an asynchronous HTTP request to the server. which then processes the request and, perhaps, returns data that the browser can then seamlessly integrate into the web page. Two earlier articles - Accessing JSON Data From an ASP.NET Page Using jQuery and Using Ajax Web Services, Script References, and jQuery, looked at using both jQuery and the ASP.NET Ajax Library on the browser to initiate an Ajax request and both ASP.NET pages and Ajax Web Services as the entities on the web server responsible for servicing such Ajax requests.
This article continues our examination of techniques for implementing lightweight Ajax scenarios in an ASP.NET website. Specifically, it examines how to use the Windows Communication Foundation, or WCF, to serve data from the web server and how to use both the ASP.NET Ajax Library and jQuery to consume such services from the client-side.
INI Reader / Writer Class for C#, VB.NET, and VBScript
Working with Resource files in asp.net programatically.
Formatting Dates, Times and Numbers in ASP.NET
Formatting is the process of converting a variable from its native type into a string representation. Anytime you display a DateTime or numeric
variables in an ASP.NET page, you are formatting that variable from its native type into some sort of string representation. How a DateTime or numeric
variable is formatted depends on the culture settings and the format string. Because dates and numeric values are formatted differently across cultures, the .NET
Framework bases its formatting on the specified culture settings. By default, the formatting routines use the culture settings defined on the web server, but you can
indicate that a particular culture be used anytime you format. In addition to the culture settings, formatting is also affected by a format string, which
spells out the formatting details to apply.
The .NET Framework contains a bounty of format strings. There are standard format strings, which are typically a single letter that applies detailed formatting
logic. For example, the "C" format specifier will format a numeric type as a currency value; the "Y" format specifier displays the month name and four-digit year of
the specified DateTime value. There are also custom format strings, which display a apply a very specific formatting rule. These custom format
strings can be put together to build more intricate formats. For instance, the format string "dddd, MMMM d" displays the full day of the week name followed by a comma
followed by the full name of the month followed by the day of the month. For more involved formatting scenarios, where neither the standard or custom format strings
cut the mustard, you can always create your own formatting extension methods.
This article explores the standard format strings for dates, times and numbers and includes a number of custom formatting methods I've created and use in my own projects. There's also a demo application you can download that lets you specify a culture and then shows you the output for the standard format strings for the selected culture.
Effective Paging with GridView Control in ASP.NET
Fluent Filters - Global Action Filters for ASP.NET MVC 2
ASP.NET MVC Chart Control
Examining ASP.NET 2.0's Membership, Roles, and Profile - Part 18
Membership, in a nutshell, is a framework build into the .NET Framework that supports creating, authenticating, deleting, and modifying user account information. Each user account has a set of core properties: username, password, email, a security question and answer, whether or not the account has been approved, whether or not the user is locked out of the system, and so on. These user-specific properties are certainly helpful, but they're hardly exhaustive - it's not uncommon for an application to need to track additional user-specific properties. For example, an online messageboard site might want to also also associate a signature, homepage URL, and IM address with each user account.
There are two ways to associate additional information with user accounts when using the Membership model. The first - which affords the greatest flexibility, but
requires the most upfront effort - is to create a custom data store for this information. If you are using the SqlMembershipProvider, this would mean
creating an additional database table that had as a primary key the UserId value from the aspnet_Users table and columns for each of the additional user
properties. The second option is to use the Profile system, which allows additional user-specific
properties to be defined in a configuration file. (See Part 6 for an in-depth look at the Profile
system.)
This article explores how to store additional user information in a separate database table. We'll see how to allow a signed in user to update these additional user-specific
properties and how to create a page to display information about a selected user. What's more, we'll look at using ASP.NET
Routing to display user information using an SEO-friendly, human-readable URL like www.yoursite.com/Users/username.


Syndicate