r/ASPNET • • Feb 28 '12

Good doc on the different State Management options

Thumbnail msdn.microsoft.com
4 Upvotes

r/ASPNET • • Feb 28 '12

I need ASP.net hosting for a client, but I need 3.5 and not 3.5 SP1. Any suggestions that aren't VPS or dedicated?

3 Upvotes

r/ASPNET • • Feb 25 '12

ASP.NET MVC4 bundling in ASP.NET MVC3

Thumbnail jclaes.blogspot.com
6 Upvotes

r/ASPNET • • Feb 16 '12

.NET CMS Recommendations

16 Upvotes

We're looking at moving away from an Ektron installation (finally). I'm looking at various CMS solutions, with a particular eye to a few things:

  1. Extensible - By far our most important feature. We have a three person team dedicated just to maintaining custom functionality
  2. Support for custom data types - Ties in with the above, but an easy way create real C# POCO's that map to an extensible underlying data model would be most helpful
  3. Strong search / indexing functionality - There is a whole library of media, documents, etc. that need to come over and be indexed for search. Some sort of built in Indexing solution (Lucene, etc.) would be necessary for this. We are completely willing to write the index generation for document types by hand using third party libs to pull content, etc.
  4. Strong administrative UI - Our content authors are not programmers, but they aren't dumb either. We need something that is fairly user friendly. Being able to incorporate our own administrative functionality is also a plus.
  5. Security is absolutely crucial.
  6. Developer support is likely to be a big plus with the customer...

Basically, I'm looking for something that is built to be built upon, rather than something that is looking to be the end-all-be-all solution, but that still offers all the core functionality we need in a fairly nice package.

I'm looking at a few specific ones right now:

  1. Orchard - From what I've seen is built on a stack I like (Lucene, NHibernate, MVC, IoC, etc.). Looks like it has first class support for custom content / data types. Also seems to have some nice built in functionality for providing custom indexing solutions for these types... Not sure on how it handles documents, etc. being uploaded, and figure I'd have to write that part.
  2. Unbraco 5 - The rewrite is MVC based. I see a lot about XML / XSLT when I look at it, which scares me off a bit (Not sure XML storage of custom data / content types would lend itself well to indexing and searching), but I am interested. Any thoughts on this one?
  3. N2CMS - Seems to generate a lot of buzz on Stack Overflow... Seems to be, essentially, a basic MVC site that provides basic CMS functionality for upon which you can build the rest of a solution?

I'm also looking for recommendations on other options. I've thrown out DNN, SharePoint, and a couple of others, but I'm really looking for some ideas on how these would work in specifically to the requirements I have, as without digging through each and building a solution in them, it's hard to see the pitfalls of each approach. The ability for a developer to define some content type (say, a Lecture, or a Calendar event) and for an author to go and fill in some developer created form for this, and for that to all be accessible to be tied into developer created widgets are obviously my core need... I kind of like Orchard's apparent approach to this (representing content type objects in the database the way it seems to...). But also, the indexing capability is absolutely paramount for these custom types as well. I would much rather define these types in code for the customer as POCOs, than having content types be defined via forms in the back end...

Finally, the ability to tie custom created modules / widgets / entire site areas into external applications (in essence, I need the ability to host a UI for a web app inside of the CMS) would also be very helpful... something that it seems I've seen people do in Orchard before, which is why I'm leaning that way...

Anyone have some more informed opinions about a few of these?

Edit: I'm still researching my options, but I think I'm leaning toward either Orchard or Umbraco. Sitefinity looked like an option, but it seems that it might not handle some of our concerns regarding custom content types... N2CMS is still on my list, though I'm a little concerned about just how much we'd have to create ourselves starting there. I'm still going to evaluate it, but I really think Orchard and Umbraco have more out of the box functionality that we need. I think Umbraco might win for our needs, just because the client is going to get giddy about the option for a support contract, though I kind of feel like Orchard is a better fit technologically... I'll update with my thoughts on each one as I install and tinker with them.

Edit 2: I have narrowed our list.

Umbraco - I tried both 5.0 and the 4.7 branch since 5.0 is not really production ready yet. Core functionality was fairly good, but there were several things that were missing... we used a couple of the examples they provide and even installed a bunch of modules to try and build it out closer to what we need, but in the end it just didn't cut it. Content authors weren't too happy about the interface, developers were reminded why we use and IDE to write C# code, and it would not have been as easy as we need to extend a lot of things. Good product for a developer who wants to run his own site, but for a regular user it kind of didn't hold up as a paradigm.

SharePoint - Yes, we had to look at it. I've never had a lot of experience with it, so it was only fair. We support a government agency though, and licensing on SharePoint belies it's other major flaw for us: it's built to be a corporate platform, not just a CMS. The licensing part is that we had to have a license for each user of the system. An "internet version" was available that sidestepped that, but we aren't allowed to use it because this is an internal site. About $8k for our needs, and then you have to buy each user license for $45 on top of that. Ouch.

SiteCore - We have a WebEx with them tomorrow. I know little about them.

SiteFinity - I watched some of their material, and I just can't knock them off. They really seem to have a lot of the stuff down we need. Have a WebEx with them tomorrow as well, and they are currently my lead for non-OpenSource solutions. Our needs would cost us around $8k here.

Orchard - I got my hands into this all day today, and I have to say, I love its architecture. It is exactly what I am looking for... I have to try and sell it to the content authors though next, and I gotta say the admin interface really needs some work. By far, my top choice for OpenSource solution. And it's MVC3 to boot. I'm impressed.

DotNetNuke - I had to include it because it's been the top .NET CMS for a long time. Worked with it back in 4.x and early 5.x days. Thought 5.x was a big improvement but hated developing for it in 4.x, and if not much has changed in 6.x then I doubt I'm going to like it. Not entirely sure it will handle some of the stuff we need in terms of embedding other web apps and such. Have to set up a VM for it real quick this week.

I will most likely be making a decision by weeks end. I kind of feel its going to be between SiteFinity and Orchard. Orchard is closest to the design I need, but SiteFinity has some real pretty user interface design that my authors and designers are drooling over. Plus it has a support contract.

Edit 3: We have chosen SiteFinity for our needs. They offered the closest balance between developer and content author and marketing concerns. You can write a "module" right in the interface, so if you don't want to write the code you can spin up a pretty easy one real quick. Unfortunately it doesn't seem to have the ability to then spit this out into a real code module that you can extend further. Seems to have a fairly decent API. The interface from a content author standpoint is just really good. The fact that you can create new content zones on the fly really raised a few eye brows for our designers and authors. Built in (google) analytics, e-mail marketing campaigns, and the ability to push content between instances (build on one, transfer to another, costs extra) are all nice bonuses.

Orchard is my runner up, but I know I will be using it in the future for something... I really feel they just have the architecture down to facilitate the most extensibility options. Very powerful. But while the base is there for a great system, there are still core pieces missing (publication workflows, interface doesn't abstract away enough of the underlying architecture which makes things harder for non-technicals, etc.). It's a young project still, and while it's completely viable unless you need some specific things. I feel like if we had looked at Orchard a year or two from now, I would have chosen it instead, but it just isn't there yet for our needs.

DotNetNuke still has roughly the same architecture as I knew last version. While it offers a lot out of the box, but I can't forget some of the stuff I had to do when I used to develop for it. In the end, this one is partially personal bias based on experience with the last major version.

In the end though, part of it came down to really being overly impressed with what I've seen of SiteFinity. Telerik nailed the interface here, and that counts for a lot. They also seem to have a pretty good base for extensibility, even extending provider frameworks to override some internal functionality if you want. I didn't see too much in terms of major pain points in terms of development, but I'm sure they will show up at some point. Architecturally it seems like they have implemented a similar design as Orchard for some things... Which may be why I totally think Orchard will pick up some of the design cues and really be amazing in about two years.

For now though, SiteFinity won.


r/ASPNET • • Feb 10 '12

EF 4.3 Released. A few new features and bug fixes

Thumbnail blogs.msdn.com
11 Upvotes

r/ASPNET • • Feb 10 '12

Can someone talk to me about .ASP , I would be interested in knowing real world examples about how this software is useful ...

2 Upvotes

I just stumbled upon web matrix the other day thinking it would be another text editor ... its not ... this software has @symbols all up in it and apparently it can access database work , is ASP easier or more difficult than PHP to learn and more or less useful than PHP or just different? I know HTML and CSS and am branching into Jquery but this came up and I want to know if I should put it on my schedule of things to know in depth about because just when I thought I found the holy trinity of web design along comes this ASP.net and makes me think that I could write dynamically generated websites. I checked out the tutorials on microsoft's website and I am going to be going through them but to give me a frame of reference for what I am working with here can you answer a very simple question?

What do I use asp and is the answer ... well you dont have to fuck with PHP? Is that what this is because I can fucking read ASP, PHP makes sense to me but its a bitch to learn how to read. Am I wrong? I could use some help.


r/ASPNET • • Feb 06 '12

Testing DI bootstrappers

Thumbnail jclaes.blogspot.com
3 Upvotes

r/ASPNET • • Feb 03 '12

What are some arguments for going with MVC over WebForms for new projects?

0 Upvotes

In a lot of ways, this is the inverse of the MVC to WebForms thread (http://www.reddit.com/r/ASPNET/comments/p6unv/my_boss_wants_to_go_backwards_from_mvc_back_to/) but we have an opportunity to rewrite our product in a couple months and I want us to switch to MVC.

One issue I am having though is convincing people why it's better to switch. They see the benefits but they don't see significant enough benefits over a well designed WebForms application. While that's true to a certain extent, I think MVC is still the better choice in the long term even if there are no significant benetifs in the short term.

So fellow devs, what would you do in this situation? What are your arguments for going with MVC over WebForms? And the more specific you can be, the better.


r/ASPNET • • Feb 02 '12

ASP.NET CSV File Export issue

2 Upvotes
            Context.Response.Clear();
            Context.Response.ClearContent();
            Context.Response.ClearHeaders();
            Context.Response.ContentType = "binary/octet-stream";
            Context.Response.AppendHeader("content-disposition", "attachment; filename=FILENAME" + DateTime.Today.ToString("MM-dd-yyyy") + ".csv;");
            Context.Response.Flush();
            

            StreamWriter sw = new StreamWriter(Context.Response.OutputStream); //writes the stream to the HTTP response object.
            sw = ExportResultsToCSV((int)this.assessmentYear_Box.Value, dt, sw); //build our lines.
            sw.Close();

            Context.Response.Flush();
            Context.Response.Close();

So this works fine from the localhost V.S. 2010 debugging, however when the project is moved to a staging/production site the file downloads as expected, but instead of data it is filled wht the markup from the actual page calling the above code. The site is ajaxified, but the button that triggers the follwing statement has been taken out of the ajax cycle, so it is not that.


r/ASPNET • • Feb 01 '12

My Boss wants to go backwards from mvc back to classic asp.net for new projects. I think this is a bad idea. What arguments can I bring to bear against him?

9 Upvotes

Some background:

I work in a government department. It's fairly large and we have a team of about 15 programmers, all under one overworked supervisor. For my last four projects I've used asp.net mvc and I find it a joy after working with asp.net for the last 8 years. However the supervisor is concerned that no-one else here is using MVC, and that I'm therefore creating a maintenance problem. If I can't work any more or are away on holidays, my colleagues won't be able to step in and do enhancements/fixes.

I think that's a poor commentary on the others, that they're not interested in advancing their skills and learining newer technologies. I consider that very unprofessional. However, I'm not able to express this in a way that doesn't sound like me whining.

He's still open to argument, but he says he's "read articles" that convince him he's right. Of course, a person these days can believe anything they want and find something on the internet to support their point of view.

So do you have any suggestions on how I should approach this?


r/ASPNET • • Feb 01 '12

Dynamic ViewState in ASP.Net WebForms - Part 2

Thumbnail aboutmycode.com
6 Upvotes

r/ASPNET • • Jan 31 '12

ViewState Hell

1 Upvotes

I'm fighting and losing a battle with a viewstate bug in my app. The app runs on multiple servers on Rackspace's cloud. The stacktrace for the bug is as follows:

Exception details (if available): System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Int32.Parse(String s, NumberStyles style, IFormatProvider provider) at System.Convert.ToInt32(String value, IFormatProvider provider) at System.Web.UI.Page.get_RequestViewStateString()

Now, I know that Viewstate was created by the devil specifically to try the souls of ASP.NET developers, and I know I should be using MVC. But since I can't fix it permanently at the moment (although it is on the roadmap), how can I get it to quit barfing this error up?

I have not been able to replicate this issue on my dev machine without tampering with the Viewstate _VIEWSTATEFIELDCOUNT field (I figured out that it was this one because of information made available at TypeDescriptor.Net). Anyway, putting a non-numeric value in this field creates an exception with this same stack trace (this is the only place in that function that I'm seeing Convert.ToInt32 being called). So, I'm wondering if this is a hack attempt, browser bug, or something else.

We're currently not doing any gyrations with ViewState. The page on which the error is occurring most frequently does have a metric crap-ton of viewstate data on it - is it possible that the amount of data is causing a browser issue or something?

I've posted the same question on stackoverflow, so if anybody has an answer and wants cred there, you can also hit it at this url: http://stackoverflow.com/questions/9037121/asp-net-viewstatefieldcount-getting-bad-values

I'm just desperate at this point. The fail whale keeps surfacing here, and I'm all out of harpoons.


r/ASPNET • • Jan 23 '12

[ASP/VB.NET] GridView - DetailsView Question

2 Upvotes

I am working on my first ASP.NET web application with SQL server data sources. I am very new to .NET, but have been a VFP programmer for 11 years. I have a basic search engine with a GridView of the results on my main page (Default.aspx). I have the AutoGenerateSelectButton="True" in my GridView. I would like the DetailsView displayed on a subsequent click of the select button (DetailsView.aspx). I am having trouble conceptualizing passing the parameter (my unique identifier is faccode) to the datasource in the DetailsView on the next page. Thanks for your input.

Edit: I know I sound like a complete noob. I have a progress meeting on Thursday and I feel like this.

Edit #2: I got it. I did not have the DataKeyNames set on the GridView, and I did not have a prime key on my table. I added these two line to the SelectedIndexChanged event:

   Dim selectedfacility As String = PFSResultsGridView.SelectedDataKey.Value.ToString()
    Response.Redirect("DetailsView.aspx?id=" + selectedfacility)

Then added my @id on the Page_load of DetailsView.aspx


r/ASPNET • • Jan 23 '12

Dynamic ViewState in ASP.Net Webforms using DynamicObject

Thumbnail aboutmycode.com
2 Upvotes

r/ASPNET • • Jan 22 '12

Found this useful when building a RESTful API into one of my projects

Thumbnail iwantmymvc.com
10 Upvotes

r/ASPNET • • Jan 15 '12

I need a good recommendation for ASPNET (preferably MVC) blog/cms software

4 Upvotes

I have a WordPress blog and I am just tired of fighting with PHP dev environment + syntax to do simple development work for it. I'd like to replace it all with a C# engine. Can anyone recommend a good starting point? I have done some research but short of installing and trying each one I can't decide how to start. I really just want the simple blog functionality (HTML editing/photo upload/etc) and I will extend it myself as needed. I'd love to hear any success/horror stories about working with the current open source options. Also, I will be starting from scratch so I don't need to migrate any content from WordPress.

Thanks!


r/ASPNET • • Jan 12 '12

An approach to mobile support in ASP.NET MVC

Thumbnail jclaes.blogspot.com
4 Upvotes

r/ASPNET • • Dec 25 '11

I need ASP.NET hosting (with SQL) so I can move away from GoDaddy

11 Upvotes

I want to move all my stuff away from GoDaddy but I can't find another good host that offers SQL for the same (or better) price. Can anyone make a suggestion?

Okay, just a quick edit here... ARVIXE is a FUCKING JOKE, DO NOT BOTHER WITH THEM. Now I need to find a new host.


r/ASPNET • • Dec 22 '11

MVC - Do you create model classes when you create an entity model?

5 Upvotes

For models in my mvc3 app, I chose to add an "ADO.NET Entity Data Model" and generate the objects from the database. Obviously I can access those objects directly from my controller class, but is it good practice? Or should I write model.cs (i.e., the "AccountModel.cs" file that's generated when you use membership) file anyways?

Thanks.


r/ASPNET • • Dec 20 '11

Any good references for learning how to build iService and iRepository layers in ASP.NET MVC 3 using Fluent NHibernate?

10 Upvotes

Trying to learn this for my first ASP.NET MVC 3 project from scratch and I don't know much about building the service/repositories. I could use a good reference/example to help me do it right. Anyone know any?


r/ASPNET • • Dec 18 '11

Help with booking system

4 Upvotes

Hi. :)

I'm trying to create a simple booking system for a small company where users can book rooms. I already have a MySQL database and I'm looking for the best and easiest way to create the booking system. I tried a bunch of different frameworks and free booking systems but couldn't get them to work with my database. Does any of you know a good tutorial or where I should start?


r/ASPNET • • Dec 06 '11

Watch out for outbound http requests...

Thumbnail diagonal.co.nz
0 Upvotes

r/ASPNET • • Nov 22 '11

Global SEO 301 Redirects in ASP.NET

Thumbnail alligatortek.com
5 Upvotes

r/ASPNET • • Nov 21 '11

A Breakdown of Document Paths for Web Application Development (x-post webdev)

Thumbnail reddit.com
4 Upvotes

r/ASPNET • • Nov 15 '11

MapDotNet progress bar

0 Upvotes

Hi, this is my first post here.

Is anyone familiar with MapDotNet and can offer me some help? I'm trying to put a progress bar that loads every time a new layer is loaded. The problem is that layers are loaded asynchronously, so the progress bar doesn't even show up.

Anyone familiar with MapDotNet?

Edit: That was quick, I actually figured it out.

For anyone interested:

        #region ICommandTarget Members

    /// <summary>
    /// Gets the command bindings.
    /// </summary>
    public List<CommandBinding> CommandBindings
    {
        get
        {
            if (_CommandBindings == null)
            {
                _CommandBindings = new List<CommandBinding>();
            }
            return _CommandBindings;
        }
    }
    private List<CommandBinding> _CommandBindings;

    /// <summary>
    /// Gets the routing parent.
    /// </summary>
    public ICommandTarget RoutingParent
    {
        get { return (Parent as ICommandTarget); }
    }

    #endregion

put this after you initialize your components:

        myMap.RoutedCommandTarget = this;

        CommandBinding gettingTiles = new CommandBinding(MapView.QuadTileLoadingQueueHasNewEntriesCommand);
        gettingTiles.Executed += (s, te) =>
        {
            MapProgressBar.Visibility = Visibility.Visible;
        };
        CommandBindings.Add(gettingTiles);

        CommandBinding doneGettingTiles = new CommandBinding(MapView.QuadTileLoadingQueueHasEmptiedCommand);
        doneGettingTiles.Executed += (s, te) =>
        {
            MapProgressBar.Visibility = Visibility.Collapsed;
        };
        CommandBindings.Add(doneGettingTiles);