Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Forums application using MVC4 and Entity Framework

, 15 Feb 2013 CPOL
I would like to share the application which is done in MVC4 using Entity Framework.
mvcForumapp-noexe.zip
mvcForumapp
App_Start
bin
Content
css
themes
base
images
ui-bg_flat_0_aaaaaa_40x100.png
ui-bg_flat_75_ffffff_40x100.png
ui-bg_glass_55_fbf9ee_1x400.png
ui-bg_glass_65_ffffff_1x400.png
ui-bg_glass_75_dadada_1x400.png
ui-bg_glass_75_e6e6e6_1x400.png
ui-bg_glass_95_fef1ec_1x400.png
ui-bg_highlight-soft_75_cccccc_1x100.png
ui-icons_222222_256x240.png
ui-icons_2e83ff_256x240.png
ui-icons_454545_256x240.png
ui-icons_888888_256x240.png
ui-icons_cd0a0a_256x240.png
minified
images
ui-bg_flat_0_aaaaaa_40x100.png
ui-bg_flat_75_ffffff_40x100.png
ui-bg_glass_55_fbf9ee_1x400.png
ui-bg_glass_65_ffffff_1x400.png
ui-bg_glass_75_dadada_1x400.png
ui-bg_glass_75_e6e6e6_1x400.png
ui-bg_glass_95_fef1ec_1x400.png
ui-bg_highlight-soft_75_cccccc_1x100.png
ui-icons_222222_256x240.png
ui-icons_2e83ff_256x240.png
ui-icons_454545_256x240.png
ui-icons_888888_256x240.png
ui-icons_cd0a0a_256x240.png
Controllers
Global.asax
Models
mvcForumapp.csproj.user
mvcforums.edmx
obj
Debug
edmxResourcesToEmbed
mvcforums.csdl
mvcforums.msl
mvcforums.ssdl
Properties
Scripts
Views
Login
Logout
Question
Question_Answer
Register
Reply
Shared
Technology
mvcForumapp.zip
App_Data
Antlr3.Runtime.dll
EntityFramework.dll
Microsoft.Web.Infrastructure.dll
mvcForumapp.dll
mvcForumapp.pdb
Newtonsoft.Json.dll
System.Net.Http.dll
System.Net.Http.Formatting.dll
System.Net.Http.WebRequest.dll
System.Web.Http.dll
System.Web.Http.WebHost.dll
System.Web.Mvc.dll
System.Web.Optimization.dll
System.Web.Providers.dll
System.Web.Razor.dll
System.Web.WebPages.Deployment.dll
System.Web.WebPages.dll
System.Web.WebPages.Razor.dll
WebGrease.dll
ui-bg_flat_0_aaaaaa_40x100.png
ui-bg_flat_75_ffffff_40x100.png
ui-bg_glass_55_fbf9ee_1x400.png
ui-bg_glass_65_ffffff_1x400.png
ui-bg_glass_75_dadada_1x400.png
ui-bg_glass_75_e6e6e6_1x400.png
ui-bg_glass_95_fef1ec_1x400.png
ui-bg_highlight-soft_75_cccccc_1x100.png
ui-icons_222222_256x240.png
ui-icons_2e83ff_256x240.png
ui-icons_454545_256x240.png
ui-icons_888888_256x240.png
ui-icons_cd0a0a_256x240.png
ui-bg_flat_0_aaaaaa_40x100.png
ui-bg_flat_75_ffffff_40x100.png
ui-bg_glass_55_fbf9ee_1x400.png
ui-bg_glass_65_ffffff_1x400.png
ui-bg_glass_75_dadada_1x400.png
ui-bg_glass_75_e6e6e6_1x400.png
ui-bg_glass_95_fef1ec_1x400.png
ui-bg_highlight-soft_75_cccccc_1x100.png
ui-icons_222222_256x240.png
ui-icons_2e83ff_256x240.png
ui-icons_454545_256x240.png
ui-icons_888888_256x240.png
ui-icons_cd0a0a_256x240.png
Global.asax
mvcForumapp.csproj.user
mvcforums.edmx
DesignTimeResolveAssemblyReferences.cache
DesignTimeResolveAssemblyReferencesInput.cache
mvcforums.csdl
mvcforums.msl
mvcforums.ssdl
mvcForumapp.dll
mvcForumapp.pdb
ResolveAssemblyReference.cache
TempPE
mvcforums.Designer.cs.dll
video2.zip
video2.avi
@model mvcForumapp.Models.Questions
@{
    ViewBag.Title = "PostQuestion";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src="../../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.validate.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
@using (Html.BeginForm())
{
    <div class="post_form">
        <h2 class="maintitle">
            Posting A New Topic In GimpTalk News and Updates</h2>
        <div class="generic_bar">
        </div>
        <h3 class="bar">
            Topic Information</h3>
        <ul>
            <li class="field">
                @Html.LabelFor(m => m.TopicTitle)
                @Html.TextBoxFor(m => m.TopicTitle, new { maxlength = 50 })
                &nbsp;&nbsp;<span class="input_error">@Html.ValidationMessageFor(m => m.TopicTitle)</span>
            </li>
            <li class="field">
                @Html.LabelFor(m => m.TopicDescription)
                @Html.TextBoxFor(m => m.TopicDescription, new { maxlength = 50 })
                &nbsp;&nbsp;<span class="input_error">@Html.ValidationMessageFor(m => m.TopicDescription)</span>
            </li>
            <li class="field">
                @Html.LabelFor(m => m.TopicContent)
                @Html.TextAreaFor(m => m.TopicContent, new { maxlength = 50 })
                &nbsp;&nbsp;<span class="input_error">@Html.ValidationMessageFor(m => m.TopicContent)</span>
            </li>
        </ul>
        <br />
        <br />
        <center>
            <div style="float: left; margin-left: 250px;">
                <input type="submit" class="input_submit" value="Post New Topic" />
                @Html.ActionLink("Cancel", "Index", new { Controller = "Technology" }, new { @class = "input_submit" })
            </div>
        </center>
    </div>
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

demouser743
Software Developer
India India
I am Dorababu, working as a Software engineer. Web development in Asp.Net with C#, WinForms and MS sql server are the experience tools that I have had for the past 3 years. Yet to work on WCF, WPF, Silverlight and other latest ones.
Follow on   Twitter   Google+

| Advertise | Privacy | Mobile
Web02 | 2.8.141015.1 | Last Updated 15 Feb 2013
Article Copyright 2013 by demouser743
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid