.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Velemoochi
Imran Ghani
Post New Web Links

Blogging: Design Your Own Weblog Application from Scratch Using ASP.NET, JavaScript, and OLE DB

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net
 

The ASP.NET advanced templated controls, such as the DataList and DataGrid, are perfect for many data representation situations. However, when you need the flexibility to render a variety of layouts, the Repeater control is what you need. In this article the author builds a full-featured blog application to illustrate the use of the Repeater and DataList controls that render nested data in a master-detail relationship. He then discusses how to override the default implementations of these controls by adding some client-side JavaScript code that makes the blog more responsive and enhances its usability.

Marco Bellinaso

MSDN Magazine October 2003




View Complete Post


More Related Resource Links

Solidify Your C# Application Architecture with Design Patterns

  
design pattern can solve many problems by providing a framework for building an application. Design patterns, which make the design process cleaner and more efficient, are especially well-suited for use in C# development because it is an object-oriented language. Existing design patterns make good templates for your objects, allowing you to build software faster. This article describes several popular design patterns you can use in your own applications, including the singleton, the decorator, the composite, and the state classes, which can improve the extensibility of your applications and the reuse of your objects.

Test Run: Web Application HTTP Request-Response Test Automation with JavaScript

  

Write a simple browser-based request-response test automation using JavaScript that's platform independent and useful when you are working in a highly dynamic environment.

James McCaffrey

MSDN Magazine January 2010


Design Patterns: Solidify Your C# Application Architecture with Design Patterns

  

A design pattern can solve many problems by providing a framework for building an application. Design patterns, which make the design process cleaner and more efficient, are especially well-suited for use in C# development because it is an object-oriented language. Existing design patterns make good templates for your objects, allowing you to build software faster. This article describes several popular design patterns you can use in your own applications, including the singleton, the decorator, the composite, and the state classes, which can improve the extensibility of your applications and the reuse of your objects.

Samir Bajaj

MSDN Magazine July 2001


Which of the two design patterns should be used in a 3-tier Asp.Net application?

  

I'm trying to decide which of the two factory patterns I should use in my Asp.Net applications:


1 : All DAL providers derive from same abstract base class DepartmentsProvider, which defines public interface of the class ( all the necessary CRUD methods for which derived classes  (providers ) provide a concrete implementation ).  BLL layer instantiates correct provider by calling DepartmentsProvider.Instance:

   

    public abstract class DepartmentsProvider
    {
       static private DepartmentsProvider _instance = null;
       /// <summary>
       /// Returns an instance of the provider type specified in the config file
       /// </summary>
       static public DepartmentsProvider Instance
       {
           get
           {
               if (_instance == null)
                   _instance = (DepartmentsProvider)Activator.CreateInstance(
                      Type.GetType(Settings.Departments.ProviderType));
               return _instance;
           }
       }

       public abstract List<Department> GetDepartments ();
       }
       /// Concrete provider
       public class SqlDepartmentsProvider : DepartmentsProvider
       {
           public override List<Department> GetDepartments()
           {
               using (SqlConnection cn = new

WPF Application design

  

Hello,

It might come of weird but I'm new windows even more I'm newer to developing in and for windows.

I've started my great quest by learning myself WPF. And I really enjoy it!

When designing an application I often find myself conflicted in what can be done by using WPF and for what should I use windows forms.

For example:

Almost every application has some menuitem like file -> open.

I can perfectly implement a WPF Command by using XAML. I hook up an Executed method but then ?

Inside this C# method I'm conflicted. I want to show the user a common file selection dialog. Should I implement this by using windows forms ?

I'm doubting myself if this is the WPF way to go ?

 

Regards,

 

Jonas.


Turns out the pony only had one trick.

How to Design an Application Using Workflow

  
Hello Everyone

I am very much new to workflow and looking for some documentation which can do comparison between the application architecture based on using workflow and without work.

Thanks in advance.


Peer-to-Peer design for reslient application design

  

In SQL 2008 R2, I understand that Peer-to-Peer replication can provide a unique opportunity.

I'm currently looking to understand if this capability feeds into an application architecture I'm beginning to research a concept for.

My firm is a medical device manufacturer. We are looking to build a new medical device gateway. This gateway is pretty simple in that medical devices connect to the gateway to transfer device operation information (little (1000 character) XML formatted messages, several hundred messages per minute).

In our legacy design, we have N+1 application servers, load balanced, that the medical devices communicate to. These gateway application servers send and receive XML messages to the device, and persist the messages into an Oracle 10g database (boo hiss!)

The current architecture is redundant at the application server level with load balancing, but the DB is the single point of failure.

In drawing up a concept of a new gateway, I was thinking of a design where each node of the application gateway consisted of the application services for device communications as well as MS SQL 2008 R2 Std  configured as peer to peer replication between each node (two, three, or maybe four nodes max).

So my thought was to use load balancing to have a device connect to a node in my new gateway, transmit the XML statu

Design of a quiz application for schools

  

Hi,

I have developed a wpf desktop quiz app. At the moment it has no sort of admin or student log-in system set up. I would like it to be used in schools. Pupils records would need to be on a server and accessed on log-in. I need to know how to I go about building such a system and what technology I should be looking at. In such a system would my software be installed on each pupil's computer with database access on the server coming via WCF? Or Should do I need to re-design?

Thanks,

M


javascript issues converting ASP.NET application from VS2008 to VS2010

  

I have encountered some javascript issues migrating an ASP.NET web application from Visual Studio 2008 to VS 2010.

1. When retrieving a value from a control, the following javascript syntax worked in VS2008:

  "document.formname.controlname"

In VS2010, I have to change everything to the following format:

 "document.forms.formname.controlname"

2. I use Master pages extensively.  In VS2008, when the ASP.NET web form is displayed in the browser, the ID for a control in a child form in the content placeholder uses the following convention:

"ctl00_ContentPlaceholder1_controlname"

In VS2010, the ID for a control in the placeholder uses the following convention:

"ContentPlaceholder1_controlname"

The "ctl00" is dropped.  Wherever I have used

GetElementByID(ctl00_ContentPlaceHolder1_controlname)

has to be replaced with

GetElementByID(ContentPlaceHolder1_controlname)

Is there an alternative to modifying reams of javascript code?

Are there any other javascript surprises I should anticipate during the conversion?

Thanks

Bill


 


 


Web application design begginer

  

Good morning,

I have a question, i am starting on a small test project. It will have a login page, if the user is an administrator it will go to administrator pages, if he is a simple member he will go to simple member pages. I have 2 more user categories. Witch is the right way to start, one web project for each user category, or just put them all in one and use folders?

 

Thanks in advance...


Changes i Windows design surface has no effect on the application

  

Hi,

When I make changes in the design surface they do not any effect on the application.

Regards,

Tom


TompIfe

ASP.NET, HTML, JavaScript Snippet Support (VS 2010 and .NET 4.0 Series)

  
This post covers another useful improvement in VS 2010 - HTML/ASP.NET/JavaScript snippet support. Snippets allow you to be more productive within source view by allowing you to create chunks of code and markup that you can quickly apply and use in your application with a minimum of character typing.

Visual Studio has supported the concept of "snippets" for VB and C# in previous releases - but not for HTML, ASP.NET markup and JavaScript. With VS 2010 we now support snippets for these content types as well.

Abstract Factory Design in C# , Vb.NET

  
Provide an interface for creating families of related or dependent objects without specifying their concrete classes

Prototype Design Pattern in C#. Vb.NET

  
Specify the kind of objects to create using a prototypical instance, and create new objects by copying this prototype

Adapter Design Pattern in C#, VB.NET

  
Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.

Singleton Design Pattern in C#, Vb.NET

  
Ensure a class has only one instance and provide a global point of access to it.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend