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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

July preview of POP Forums v9 for ASP.NET MVC3 posted to CodePlex

Posted By: Jeff     Posted Date: September 01, 2010    Points: 0   Category :ASP.Net
Here it is, the third preview release of POP Forums v9. It's starting to smell like a real application now. New since the last release: Text parsing of HTML and "forum code" Dropped in TinyMCE text editor (still needs some customization and option for plain text) Security logging User profiled editing, for the users and admins, including avatar and photo uploads Admin pages for most of the forum settings, including category and forum management E-mail confirmation for new accounts, with verification mechanism View counting Runs on ASP.NET MVC3 (see notes below) Lots o' refactoring and more unit tests (now over 400) Other notes Keep in mind that this is still a preview, it's way rough around the edges, and it's in dire need of additional refactoring. This release requires ASP.NET MVC3, which is itself in preview mode. The views have not yet been converted to use the Razor view engine (because it's slightly hard without the tooling), but the dependency injection features are used here, and that's some delicious goodness that allowed for the destruction of much code. Look for the Ninject implementation of the service locator interface to see how it works. The unfortunate piece of this is that it throws exceptions on every request (and eats them) because the interface requires the throw when it doesn't find an implementation of the controller factory. That's

View Complete Post

More Related Resource Links

POP Forums v9 preview is going to be a little late

I mentioned with the July preview of POP Forums v9 that there would be an August preview. There will be, but I'm not sure it'll hit in August. It's really starting to feel like an actual app now, and I'm very excited to see it coming along. Unfortunately, I haven't found enough time lately to deliver the things I said would be in this preview. Being a new dad can be like that!On the up side, it is running on MVC3. On the down side, it's running on MVC3, and that's a moving target until it goes from preview to beta. I'll still shoot for this week, and then we'll move on to beta versions. Hooray!

MVC3 Preview - Suggestions and a bug


I have a few suggestions regarding the MVC3 preview:

1. I don't believe having a alias for ViewData called View is correct. It is going to cause confusion across teams or within teams on the same project. I can appreciate writing less code, but I don't believe writing View versus ViewData is really any help. You guys have done a great job with the Razor syntax, but I think there is such as thing as taking it too far. Next thing you know, RenderBody() because rb() and @section becomes @s and so on. I'd hate to see MVC going down this route.

2. I feel that one should be able to put the open curly on the line after the @ symbol, so that code can be aligned correctly and curlys can be aligned correctly. for example in multi-line statements, I'd like to be able to do the following



    View.Title = "ooblx - The Knowledge sharing platform";
    LayoutPage = "~/Views/Shared/LayoutSite.cshtml";    

    View.Title = "Razor is great!";

    LayoutPage =

Problem upgrading to MVC3 - System.Web.Routing



I'm trying to upgrade to .NET 4 and MVC 3.

When trying to compile my project, I get the error:

Error 1 The type or namespace name 'Routing' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) C:\Users\spencer\Desktop\weblauncher\Common\MVCConfig.cs 4 18 Common

The type or namespace name 'Routing' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

I do have the System.Web.Routing in my references for the project.

BUT - when I try to view System.Web.Routing in the OBJECT BROWSER, nothing is inside!  The System.Web.Routing namespace is not in there - the entire thing is empty!  Could it that the dll is corrupted?  I tried to reinstall the .NET 4 and MVC 3 stuff, but its still empty!

The dll is coming from here:

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.Routing.dll

and the runti

Localizing RequiredAttribute ASP.NET MVC 3 Preview 1



Has anyone got the Localization working for the RequiredAttribute? 

The below DisplayAttribute is localized properly but the RequiredAttribute is not. Any ideas?

[Required(ErrorMessageResourceType = typeof (Account), ErrorMessageResourceName = "ErrorNotation")]
[Display(Name = "UserName", ResourceType = typeof(Account))]
public string UserName { getset; }

Vista and Office: View Data Your Way With Our Managed Preview Handler Framework


Stephen Toub shows you how to write your own Preview handlers for Windows Vista and Outlook 2007.

Stephen Toub

MSDN Magazine January 2007

Printing: Preview and Print from Your Windows Forms App with the .NET Printing Namespace


Printing is an integral part of every complete Windows-based application. Providing robust printing capabilities in these applications has often proved to be a tedious chore. Now, printing from Windows Forms with the .NET Framework means you must adopt a document-centric approach, resulting in cleaner and more manageable code. While the System.Windows.Forms namespace provides seamless integration with all the standard print dialogs (such as Print Preview, Page Setup, and Print), the System.Drawing.Printing namespace offers numerous classes for extensibility and customization. These classes, and how they provide access to printing capabilities, are covered here. Other useful techniques, such as printing in the background to allow the user to continue other tasks, is also explained.

Alex Calvo

MSDN Magazine February 2003

MVC 3 Preview 1. Inject value in Action Filter



I was reading MVC3 Preview 1 release and I found this:

Dependency Injection at all levels - We opened up seams for applying the dependency injection when instantiating components of the framework. This allows developers to hook into the creation of models during model binding, action filters, etc.

Does that mean I can inject a value into an Action Filter?

This is a problem I have for a long time and it would be really useful.

How can I do this?



Will MVC3 make possible to use IOC with Action Filters



Will MVC3 make possible to use IOC with Action Filters?

Is this on the roadmap?



MVC3: Define Dynamic ViewModel property inside Action Filter



How can I define a Dynamic ViewModel property in MVC 3 inside an action filter?

I am looking to have something like but inside the ActionFilter and not in the controller:

ViewModel.Title = "Home";

Thank You,


ASP.NET MVC3 Areas and Razor views produce errors?


The view at '~/Areas/SomeArea/Views/List/Index.cshtml' must derive from ViewPage, ViewPage, ViewUserControl, or ViewUserControl.

The project structure is pretty much default. There is one area called SomeArea. It has a single controller called List. It does nothing except:

public ActionResult Index()
    return View("~/Areas/SomeArea/Views/List/Index.cshtml");

The view looks like:

@inherits System.Web.Mvc.WebViewPage<dynamic>
    View.Title = "Index";
    LayoutPage = "~/Views/Shared/_Layout.cshtml";


I have tried emptying the entire file part by part and nothing seems to help. If I create a controller and view outside the area it works just fine. If I create an aspx view it works fine as well. Is it possible the default razor view engine doesn't support areas at this time?

The areas are registered too.

public static void RegisterRoutes(RouteCollection routes)
        "Default", // Route name
        "{controller}/{action}/{id}", // URL with parameters

Working with CodePlex. How to save password for project?


I want to make public one small project on CodePlex. Everybody knows that you can work with CodePlex like with TFS client and with SVN client as well. But really I can't work with it from SVN client. When I tried to add some binary file (it was dll) I got the error "Server sent unexpected return value (200 OK) in response to PUT request for .". How to solve this problem I don't know, I found thread at CodePlex's discussions Can't commit binary files using TortoiseSVN, but last message was at past year. Ok, I'm working with TFS at work, so for me it will be not a problem connect to CodePlex with TFS. But there are some distressing case, Visual Studio always ask credentials at every new connection to project. And I didn't find a checkbox "Save credentials". But I found the method. Read more...

Preview Crystal Report from ASP.net without passing parameters


Hi Everyone,

Sorry couldn't think of any better Subject..

I am developing a User Reports Module using C#.Net using Visual Studio 2005. Basic purpose of this module is to allow user to be able to run their own Crystal Reports. i.e. if Users have their own Crystal Reports specific to their needs then we allow them to save them and view them from our user reports module.

So when user saves any report we save it on server and save the Physical path of that report in database. Now when user tries to view the report I get the location from database and load it. Which works ok. The issue now is those reports which have got parameters. 

I am not saving any information about parameters in their reports. So I do not have any information about Report Parameters.

This same application exists in VB6. What that VB application does is opens the Crystal Report and then Crystal report asks for needed parameters exactly as it will do if we try to open a crystal report using crystal report and preview it from there it asks for parameter values. 

How can I do that in C#.Net.

VB has got code like this

Global Appl As New CRAXDRT.Application

Developing a Forum Website like Forums.asp.net

HI all,     I want to develop a website such as forums.asp.net for my final year project submission.  But I need synopsis of the project. Here is the dtail that i need to include in my project synopsis. 1 Profile of the the problem assign (Defination /object of project)2 nature of projectDesign front end/ back endtools (why using particular tool)feasibility study (economical, technical, functional,methodology(top down ,bottom up, obect oriented)  why ?module ddescriptionData flow diagram (Any software that can help me easy create dfd)Data structureEr diagramscope of projectSo basically i need any tutorial ,book, any article, any other source that can help me in all these development process topicsThanks please help me.

Rendering Partial view postback with data posted back and entire view context

This is the base Index.aspx view:<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> <%@ Import Namespace="LMWebUI.Components" %> <%@ Import Namespace="LMWebUI.Models" %> <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <% Session["HasScripts"] = "false"; %> <% if (Utility.FixNull(Session["LoggedIn"],"false") == "false" ) {%> <% ViewData["Login"] = new PartialRequest ( new { controller = "Account", action = "LogIn" } ); ((PartialRequest)ViewData["Login"]).Invoke(ViewContext); %> <%} else {%> <div>Logged In Content here</div> <%}%> <script type="text/javascript"> LMx.init(); </script> </asp:Content> This is a helper class> that I found elsewhere, doesn't solve the problem, but still works to display the viewpublic class PartialRequest { public RouteValueDictionary RouteValues { get; private set; } public PartialRequest(object routeValues
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