Giter Site home page Giter Site logo

hishamco / webforms Goto Github PK

View Code? Open in Web Editor NEW
18.0 10.0 4.0 122 KB

ASP.NET Core Web Forms is MVC alternative that use event-driven programming model for building dynamic web application

License: MIT License

C# 95.36% PowerShell 2.58% Batchfile 0.36% Shell 1.67% ASP 0.02%
aspnetcore webforms

webforms's Introduction

WebForms

AppVeyor: Build status

Travis: Travis

ASP.NET Core Web Forms is MVC alternative that use event-driven programming model for building dynamic web application

What is this?

This is just a prototype for building a new programming model for ASP.NET Core (alternative for MVC), that use event-driven programming. It's simillar to previous ASP.NET Web Forms that we know and love, with new flavour

What are the plans for this project?

The project is still in the early stages, but I have some points in my mind to share:

  • Building a basic infrastructure for Web Forms on top new Http pipline using Middleware
  • Page Lifecycle is not like the previous ASP.NET WebForms
  • Provide a set of rich server controls that render a clean HTML markup, without wired IDs
  • No ViewState anymore
  • No Page Directives
  • No View Engine yet!! it's a pure HTML page with rich server controls, perhaps we can use Razor or any other view engine later on, but I'm thinking to use sort of client-side template language like Mustache

Why are Web Forms using .htm, .htm.cs instead of .aspx, .aspx.cs?

There's no primary reason for that, but I want to take the advantages for VS intellisense while I'm using HTML views for now. For the release may I use the .aspx or .aspc while we're using ASP.NET Core.

Can I use it in Production?

Short answer is Not Yet, because the project is still a prototype, and it's under development. All of you 're welcome to contribute to the source code, to bring ASP.NET WebForms back.

webforms's People

Contributors

hishamco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webforms's Issues

PRG Pattern

It would be nice if we prevents some duplicate form submissions using Post/Redirect/Get Pattern

Control Rendering issue

The control parser should be improved, if you look to this:

<span class="label label-info">
    <asp:Literal Name="litPostBack" Text="IsPostBack: False"></asp:Literal>
</span>

it will work fine, but if we change it to:

<span class="label label-info"><asp:Literal Name="litPostBack" Text="IsPostBack: False"></asp:Literal>
</span>

it will not work ๐Ÿ˜ž

Seems we figure out the beginning of the tag controls where ever is it

Add designer file for the pages

Prettify the page by moving the controls setup code into a .designer.cs file. This should created by the IDE and it's responsible for sync it with the view. While there's no IDE surface for drag and drop we should do it ourselves

Add IsPostBack into PageLoadEventArgs

While the intend of IsPostBack is to check the Request.Method if it's POST or not, and this is common happen in PageLoad event. It would be nice if we add this property into PageLoadEventArgs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.