Facebook Twitter Gplus RSS
magnify
magnify
formats

N-tier architecture in asp.net

in ASP.NET

Demonstrates how to create n-tier architecture in using asp.net. Three tier architecture means dividing the project into three layers that is presentation layer (UI layer), Business Layer (Logic code layer) and data-layer.
Read more…

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
Comments Off  comments 
formats

ASP.NET MVC 6 and Web Api integration

in MVC 6

ASP.NET MVC and ASP.NET Web API in ASP.NET vNext are becoming one singular framework: ASP.NET MVC 6. Join Daniel Roth as he shows how to create great ASP.NET web apps that serve both pages and services. First we’ll see how to build OData v4 compliant services using ASP.NET Web API 2.2 and the new attribute routing features available in ASP.NET MVC 5.2. Then we’ll take a look at how ASP.NET MVC and Web API are being combined into a single framework, ASP.NET MVC 6, for handling all of your Web UI and services. We’ll learn how to use ASP.NET MVC and Web APIs in ASP.NET vNext to support connected applications for browsers, Windows Phone, Windows Store and more!

 

Read more…

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
Comments Off  comments 
formats

Weekly podcast has been published by Orchard Project

in ASP.NET

 

 

Meeting notes:
- Status: fixed a memory leak when creating LifetimeScopes, Sébastien will push a feature branch he’s working on for REST API, fixed a bug in searching for content types, RTL support for Workflows and MediaLibrary added by Nick, AuditTrail now supports logging IP-addresses.
- Framework and library updates: .NET (4.5.1), ASP.NET MVC (5.2), Json.NET (6.0.4), Autofac (3.5.2), SqlCE (4.0 SP1).
- Sébastien did some testing regarding Eric’s work with SQLite support, it works and looks promising performance-wise, but needs some tweaking.
- Demo by Sébastien – Securable: a new content type setting has been added (based on the discussions in the previous meetings). Enabling “Securable” for a content type will display all its items in the Role editors, so you can edit the permissions for each content item of that type. Make sure you only use it for content types with a small number of items, e.g. Lists, Menus. An other content type setting will be added later to do the same thing for content type level.
- Demo by Stanley – HtmlCodeMirror flavor: adding syntax highlighting and tag/attribute/JS auto-completion when editing HTML for widgets and also in the TinyMCE HTML editor popup.
- Discussion about moving static resources (JQuery, CodeMirror, etc.) to a common module so that any other module can reuse them.
- Nick showed us the latest changes and upgrades he made for RTL support. Most of the important Dashboard pages (Widgets, Workflows, Navigation, etc.) now support RTL. Stanley suggested using a transliteration library for generating URLs with latin letters even if the content is edited in a language that doesn’t use latin letters.

Read more…

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
Comments Off  comments 
formats

ASP.NET vNext in Visual Studio “14” CTP 3

Today we released various runtime and tooling updates for ASP.NET vNext in Visual Studio “14” CTP 3. We included all the features that were included in Visual Studio 2013 Update 3 in this release. This release also has ASP.NET vNext runtime and tooling improvements as outlined below.

ASP.NET vNext Runtime

This CTP includes our alpha3 runtime packages for ASP.NET vNext. You can find all the details on the specific enhancements added and issues fixed in the published release notes on GitHub.

For information on how to get started with ASP.NET vNext using Visual Studio “14” check out the article Getting Started with ASP.NET vNext and Visual Studio “14″.

The existing MVC Music Store and Bug Tracker sample projects have been updated with the bits for this release. You can find instructions on how to open, build, run, and publish these sample ASP.NET vNext projects in the documentation for the corresponding GitHub repos.

more at Msdn Blogs

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
Comments Off  comments 
formats

Getting Started with ASP.NET MVC 6

As part of ASP.NET vNext, the MVC, Web API, and Web Pages frameworks are being merged into one framework, called MVC 6. The new framework removes a lot of overlap between the existing MVC and Web API frameworks. It uses a common set of abstractions for routing, action selection, filters, model binding, and so on. You can use the framework to create both UI (HTML) and web APIs.

Read more…

 
Tags: ,
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
Comments Off  comments 
formats

News management and blog software

in ASP.NET, C#, MVC

Gnews Publisher .NET

ASP.NET content manager Gnews Publisher.NET is a cost-effective solution to manage news and articles online. Gnews Publisher allow you to publish press releases, news, company announcements, articles and knowledge-base content divided to categories.

This powerful script is one of the ASP.NET News Publishing software in catalogs. News publishing is using ASP.Net and come with great advantages. If you try online demo you’ll How-to Enable scheduled publishing.

Order and download software from Gazatem Technologies

 

 
Tags:
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
Comments Off  comments 
formats

Create a JavascriptResult for ASP.NET MVC

in ASP.NET, MVC

One pillar of ASP.NET MVC is the extensibility. It means you can add whatever you want wherever you want (or something like that).

Like all frameworks, ASP.NET MVC does not cover all features requested by developers, but offers the opportunity to create your own logic. That means extensibility.

In my case, the goal was to render a partial view into a JavaScript file.

Before to see how you can do that, it’s important to understand what does really mean “render a partial view into a Javascript file”.

In this example I want to create a simple HTML including the base info for a user profile (Firstname, Lastname and website).

Read more…

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
Comments Off  comments 
formats

Implementing custom password policy using ASP.NET Identity

in ASP.NET

To provide a more secure user experience for the application, you might want to customize the password complexity policy. This might include minimum password length, mandatory special characters in the password, disallowing recently used passwords, etc. More information on password policy can be found here. By default ASP.NET Identity enforces a minimum password length of 6 characters. This article provides a simple walkthrough that shows how to add a few more password policies to an application.

Read complete article at msdn.com

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
Comments Off  comments 
formats

Building Real-World Cloud Apps with Windows Azure

Building Real-World Cloud Apps with Windows AzureMost of the screen shots and code examples shown in this e-book are based on the Fix It app originally developed by Scott Guthrie to demonstrate recommended cloud app development patterns and practices.

Developers who are curious about developing for the cloud, considering a move to the cloud, or are new to cloud development will find here a concise overview of the most important concepts and practices they need to know. The concepts are illustrated with concrete examples, and each chapter links to other resources for more in-depth information. The examples and the links to additional resources are for Microsoft frameworks and services, but the principles illustrated apply to other web development frameworks and cloud environments as well.

Developers who are already developing for the cloud may find ideas here that will help make them more successful. Each chapter in the series can be read independently, so you can pick and choose topics that you’re interested in.

Anyone who watched Scott Guthrie’s Building Real World Cloud Apps with Windows Azure presentation and wants more details and updated information will find that here. More at ASP.NET

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
Comments Off  comments 
formats

Data Grid Paging

in ASP.NET, C#

This sample code show us datagraid paging. Source code is written in C#.

 

Web Form:


 < % @ Page Language = "C #" AutoEventWireup = "true" CodeFile = "Default.aspx.cs" Inherits = "_Default"%>

 

< ! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns = "http://www.w3.org/1999/xhtml">

<head runat = "server">

    <title> paged GridView paging 



<body>

    <form id = "form1" runat = "server">

    <asp: GridView ID = "GridView1" runat = "server" AutoGenerateColumns = "False"

        AllowPaging = "True" DataSourceID = "SqlDataSource1" DataKeyNames = "o_id" Width = "300px">

        <columns>

            <asp: BoundField DataField = "o_id" HeaderText = "ID" SortExpression = "o_id

                ReadOnly = "True"></asp:>

            <asp: BoundField DataField = "o_name" HeaderText = "counties"

                SortExpression = "o_name"></asp:>

            <asp: BoundField DataField = "c_id" HeaderText = "City ID" SortExpression = "c_id"></asp:>

        

    

    <asp: SqlDataSource ID = "SqlDataSource1" runat = "server" ConnectionString = "<% $ ConnectionStrings: connstr%>"

        SelectCommand = "SELECT * FROM [County]">

    

    



 
</asp:></columns></asp:></form></body></title></head></html>

 

Here is the source behind:

 using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Configuration;

using System.Data;

public partial class _Default: System.Web.UI. Page

{

    protected void Page_Load (object sender, EventArgs e)

    {

        if (! IsPostBack)

        {

            BindGrid;

        }

    }

    protected void GridView1_PageIndexChanging (object sender, GridViewPageEventArgs e)

    {

        GridView1.PageIndex = e.NewPageIndex;

        BindGrid;

    }

    private void BindGrid ()

    {

        GridView1.DataSource = SqlDataSource1.Select (DataSourceSelectArguments. Empty) as DataView;

        GridView1.DataBind ();

    }

}
 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
Comments Off  comments