r/ASPNET • • Mar 24 '09

ScriptSharp - Compile C# into regular JavaScript

Thumbnail projects.nikhilk.net
10 Upvotes

r/ASPNET • • Nov 28 '13

[MVC] Organizing your BundleConfig.cs

Thumbnail blackandodd.blogspot.se
9 Upvotes

r/ASPNET • • Nov 22 '13

Extending Identity Accounts and Implementing Role-Based Authentication in ASP.NET MVC 5

Thumbnail
typecastexception.com
9 Upvotes

r/ASPNET • • Jul 12 '13

Learning C# & ASP.Net MVC

9 Upvotes

Are there any good tutorials/screencasts that teach both C# and ASP.Net MVC at the same time? Something similar to RailsTutorial?

I'm a PHP developer and I'm looking to learn ASP.Net MVC. I have some familiarity with C#, but not enough to build a project it. I'm also clueless to the programming conventions for .Net programs and almost no knowledge of the .Net framework.


r/ASPNET • • May 08 '13

Asynchronous Streaming in ASP.NET WebApi

Thumbnail weblogs.asp.net
9 Upvotes

r/ASPNET • • Mar 19 '13

A tutorial on setting up your first REST service with ServiceStack

Thumbnail tech.pro
9 Upvotes

r/ASPNET • • Nov 04 '12

TIL that master pages are loaded after asp pages. Now I need help...

9 Upvotes

(I'm a bit of a n00b, so please excuse the amateur mistakes!)

I started off with the ingenious plan of holding objects in the masterpage so that different user controls wouldn't have to repeat the same database query separately (i.e. user information). Unfortunately my plan was bollocksed up by the fact that asp pages are loaded first, so the user controls are hitting the null references of the master page objects which have not yet been instantiated.

So my question to you is if there is a sensible way to share data between different controls on a page? This seems much tidier than having to hit the database from each user control for the same information for the same page.


r/ASPNET • • May 24 '12

Best way to reboot remote windows systems from an ASP.NET page

9 Upvotes

We have 7 digital signs running in my building. Right now, they are running Windows XP + the content player, but could be running Windows 7 just as easily. They all serve up a mixture of static images and web content from our IIS 7.5 web server. Occasionally, I need to reboot the signs. I issue commands like: shutdown -r -f -m \pc-sign03 -t 0 from batch files, but this requires me to walk upstairs to my office (which is not close to the signs) and then walk (I suppose running or skipping is possible too.) back down to see if everything worked. I would love to be able to do this from a secure web page (from my iPhone or iPad). The last time I tried, I was trying to get our web server to send the "shutdown -r -f -m \pc-sign03 -t 0" command, but IIRC Windows security makes that pretty tough. I have considered running scheduled tasks on the signs that "watch" a web page for special text that would trigger a reboot or maybe even a simple Windows service that I could install on the signs. Any suggestions would be greatly appreciated.

EDIT: tiny typo


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 • • Aug 13 '11

ELMAH (Error Logging Modules and Handlers) for ASP.NET Apps

Thumbnail codeandeverythingafter.blogspot.com
9 Upvotes

r/ASPNET • • Feb 18 '11

Need some help for a job interview I have coming up

9 Upvotes

I have been a PHP developer for about 15 years now, and I am going to bite the bullet and interview for company that is promising a career path, which is what I am looking for at this point in my life, but I have to start out as developer to learn their processes/systems. I am also working a company now that I need to get out of before I lose my mind:-). They work in ASP.NET and Java, I can't stand working with Java, so I am going to go down the path of ASP.NET. Here is where I need a little help, I need to ramp up on ASP.NET and fast. I am looking for a few good places to go to get me started. Maybe some resources for PHP developers moving to ASP.NET as well...

tl;dr PHP developer needs to ramp up on ASP.NET and fast.


r/ASPNET • • Feb 02 '11

LINQ AsHierarchy() extension method

Thumbnail
scip.be
9 Upvotes

r/ASPNET • • Jul 01 '10

New Embedded Database Support with ASP.NET

Thumbnail
weblogs.asp.net
9 Upvotes

r/ASPNET • • May 02 '10

Why is the ASPNET subreddit so sparsely populated?

9 Upvotes

There's a ton of us making apps in ASP.Net for fun and/or profit. How come there are only 400 readers?

What can we do to get the redditors to participate here?


r/ASPNET • • Dec 07 '09

Good to Know: Built-in ASP.NET Http Handlers

Thumbnail ironshay.com
9 Upvotes

r/ASPNET • • Nov 03 '09

ASP.NET from Scratch: Lesson 1

Thumbnail net.tutsplus.com
9 Upvotes

r/ASPNET • • Dec 06 '13

[MVC] Web API Security

8 Upvotes

I'm currently building a stand-alone web site that utilizes ASP.Net MVC 4 and am wondering what the best way to handle action based security in my api controllers.

I've built a lot of sites for my company and have utilized the HttpContext.Current.User construct - but this site will not be using integrated security and don't want to be posting username and session keys manually with every ajax call.

Example of how I've handled this for the integrated security:

AuthorizeForRoleAttribute: http://pastebin.com/DtmzqPNM ApiController: http://pastebin.com/wxvF5psa

This would handle validating the user has access to the action before the action is called.

How can I accomplish the same but without integrated security? i.e. with a cookie or session key.


r/ASPNET • • Nov 18 '13

[Project] My ASP.net Project, VoteSystem with WebSockets

Thumbnail
easypoll.eu
8 Upvotes

r/ASPNET • • Oct 22 '13

Unit Test Web Code Without A Web Server Using HttpSimulator

Thumbnail
haacked.com
8 Upvotes

r/ASPNET • • Sep 23 '13

Lets Talk About Continuous Integration!

8 Upvotes

I have the unfortunate duty of being the CI Admin for a small webapp team. We started our CI stack a few years ago and I feel we're 'almost there' but our current stack breaks down in terms of automated pushes to production. We're basically making any production changes by hand still.

Overview of CI Stack:

  1. Subversion (source control)

  2. CruiseControl.NET (CI Server)

  • NAnt (for running MSBuild.exe)

  • NUnit (for running unit tests & UI tests)

  1. Selenium Server (UI Testing Server)

Overview of Process:

CruiseControl (CC.NET) has a project setup that waits for any Subversion (SVN) changes to the trunk. Once a change is made, SVN pulls down any changes to a local working folder. CC.NET then builds the working folder with MSBuild.exe to verify the build. If the build succeeds, we then run the unit tests that are included in the build. If both the build and unit tests pass, PowerShell is used to copy the working folder to an IIS site folder. CC.NET then runs our UI tests via NUnit (through Selenium Server) to validate the UI. If UI tests pass, CI ends and we copy to production by hand.

My Issues:

Writing PowerShell scripts is a PITA. When we copy to the IIS folder, we have to be very explicit about what gets copied over and what does not. For example, we don't want to overwrite the web.config every time along with a few other items. We also have a SOA-project where a single solution has multiple projects and each project needs to be published to it's own IIS folder. Again, having to write an individual script for each target folder with an ignore-list and whatnot. Not a good experience.

I think our troubles with our staging environment's scripting is what is keeping us from bridging the 'last mile' to production with automated scripts. Maintenance is high for each project and each script and we're having trouble maintaining an automated staging setup without the introduction of production publishing scripts.

We also have trouble managing configuration files. Our local configurations are different than staging which are all different than production. Our current solution is to duplicate every config file in SVN and add a location as the extension (web.config.local, web.config.staging, web.config.production). We then use PowerShell to rename files based on the target environment.

Can anyone share their CI experiences or setup? Any advice for what we have now and the issues we're dealing with? Thanks in advance!


r/ASPNET • • Sep 18 '13

Asp.net hosted on linux

8 Upvotes

Does anybody have any experience with running an asp.net mvc4 web application on linux using mono? Is it production ready, or is it still buggy and a lot less stable then iis?


r/ASPNET • • Aug 23 '13

Customizing Routes in ASP.NET MVC

Thumbnail
typecastexception.com
8 Upvotes

r/ASPNET • • Mar 13 '13

Organizing a large intranet site (WebForms)

8 Upvotes

I am currently in the process of migrating a classic ASP intranet portal to ASP.NET. The site mostly consists of simple CRUD forms, but there's also a number of more complex applications. This is how the site is currently organized:

Main Site Folder
|+Apps
|--+App01
|--+App02
|--+... (there are over 50 app folders)
|+Libraries (shared by all apps)
|+Images
|+JS
|+CSS
| Menu.asp [Navigation Frame]
| Login.asp
\ Default.asp [Main Frameset]

I started building a similar structure in .NET, but I'm starting to think it's not practical to have everything compiled into a single DLL file. I thought of making each module its own VS project, but it seems too much of an overkill (especially for simple CRUD forms). Is there a middle ground approach to make this site easier to maintain?


r/ASPNET • • Dec 18 '12

Need feedback on my ASP.NET CMS

8 Upvotes

I have created (~3 months old) an ASP.NET based CMS at http://ratnazone.com (source of inspiration - wordpress). My primary goal with the project is to help ASP.Net developers create awesome looking websites with minimal work. I am releasing 0.2 version for the software within 2 weeks and making it open source as well. ASP.Net fellow redditors, please provide me your valuable feedback.


r/ASPNET • • Oct 21 '12

Why is the use of abstractions such as LINQ taboo?

Thumbnail
arstechnica.com
8 Upvotes