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 • • 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 • • 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 • • Mar 24 '09

ScriptSharp - Compile C# into regular JavaScript

Thumbnail projects.nikhilk.net
10 Upvotes

r/ASPNET • • Apr 03 '12

Introduction to ASP.NET Web API

Thumbnail
blog.filipekberg.se
10 Upvotes

r/ASPNET • • Aug 15 '11

When to use ViewBag, ViewData, or TempData in ASP.NET MVC 3 applications

Thumbnail
rachelappel.com
10 Upvotes

r/ASPNET • • Aug 04 '11

ASP.NET 4 Breaking Changes: The Official Microsoft ASP.NET Site

Thumbnail
asp.net
11 Upvotes

r/ASPNET • • Apr 25 '13

Asynchronous Controllers in ASP .NET MVC

Thumbnail tech.pro
14 Upvotes

r/ASPNET • • Apr 22 '13

Asynchronous Programming in C# - Advanced Topics

Thumbnail tech.pro
15 Upvotes

r/ASPNET • • Jan 13 '11

Microsoft released ASP.net MVC 3 today.

Thumbnail
weblogs.asp.net
16 Upvotes

r/ASPNET • • May 03 '13

Tutorial: Your first ASP.NET SignalR project

Thumbnail
giantflyingsaucer.com
19 Upvotes

r/ASPNET • • Aug 16 '12

Scott Hanselman gives us 13 short videos of new Visual Studio 2012 features for ASP.NET

Thumbnail
hanselman.com
20 Upvotes

r/ASPNET • • Mar 28 '12

ASP.NET MVC, Web API, and Razor made Open Source

Thumbnail
weblogs.asp.net
34 Upvotes

r/ASPNET • • Jul 10 '13

How can I connect to an Access 2007 database using ASP.NET MVC 4 with the Entity Framework?

4 Upvotes

http://stackoverflow.com/questions/17417492/how-can-i-use-entity-framework-code-first-with-an-existing-ms-access-accdb-da?noredirect=1#comment25295722_17417492

The Items route should load a list of objects from my items table, but the app just breaks when I try to do it, with the error "Unable to find the requested .Net Framework Data Provider."

That makes no sense, since I'm able to use the data provider that it apparently can't find just fine in the server explorer. The app I'm working on is extremely straightforward: I just need to grab data from the database. I thought the "hard part" would be mapping all of my code to the database, and relating all the information in the database to each other (as that's where my app's value lies), but I haven't even been able to get to that point yet.

Can someone point me in the right direction?


r/ASPNET • • Jul 30 '13

.NET e-commerce/CMS UI-only options

2 Upvotes

I have an e-commerce "platform" thats made up of various components. From a business POV we run a single warehouse/distribution that has multiple sites targeting specific industries. Each site is its own business unit and has silo'd data.

A quick explanation of what each component is would be;

Logistics: A WCF project that contains all the logic and data storage for our warehouse to accept new shipments, print customer orders, dispatch them out the door, etc.

Site Application: A WCF project that contains all the logic and data storage specifically for that sites audience. It receives a product feed from the Logistics component about what it's allowed to sell (and price, etc). Customers view those products, submit an order and the order is sent to the Logistics layer to be dispatched.

Admin App: An MVC project that communicates with both projects based on user permissions to manipulate the data across each system (customers, orders, products, etc).

Web UI App: This needs to communicate with the site app system to retrieve customer, product, order, etc data.

Now where I need some suggestions is how to implement the web UI. I want it to run on a CMS-framework so that our marketing guys can manipulate the pages themselves without needing IT help, etc.

After looking at Orchard, Umbraco, Sitefinity, Kentico and Sitecore I'm wondering if what we need is more of an e-commerece frontend like nopCommerce or Virtocommerce. However both of these are the full package which include inventory management, customer management, order management, etc which in our situation is controlled within the site app component.

If I could sum up the requirements of the web UI it would be that it needs to support a templating system for layout, page/blog management and plugin support to communicate with our app.

My question is; Is there a solution available that matches my requirements or should I pick a CMS like Umbraco that we can customise heavily to support that need?

Thanks!


r/ASPNET • • Jul 24 '13

Querying Wikipedia in ASP.NET using LINQ-to-Wiki

Thumbnail
rionscode.wordpress.com
14 Upvotes

r/ASPNET • • Mar 06 '12

Login Sessions and Carrying USerID Forward

3 Upvotes

Building a group web site for our capstone project and we're having trouble logging in and carrying the UserID forward from login to other pages where we have an admin and member view so they can edit their profile. Problem is when we try to fill the member or admin form for editing/updating there is NO UserID there and for the life of me I cannot figure out how to do this?

We are using Sql Server 2008 as our database server. We can connect fine, add the new member application to the database fine, it's just that the loginID is not carried forward to the update profile screens.

We are using a datareader to read the table from the Database to fill the newmemeber form, but we really don't want to have to do that for the edit/update member and admin profiles.

I would appreciate it if someone could give me an example of how to carry the login ID forward using session variables so that we can fill the member or admin form based on their security level in the databse then update it as needed. We have the correct code in our member class it's just the ASP and C# code that is giving us fits.

Thanks in advance to anyone who attempts to tackle this for us.


r/ASPNET • • Apr 03 '12

DHTMLX Scheduler .NET Released!

Thumbnail blog.scheduler-net.com
0 Upvotes

r/ASPNET • • Mar 14 '12

6 Ways To Avoid Mass Assignment in ASP.NET MVC

Thumbnail
odetocode.com
16 Upvotes

r/ASPNET • • Jul 07 '13

MVC 4: Entity framework "edit/create" view but don't use the DB field names?

3 Upvotes

Ok, I'm a long time Webforms developer but I've been having a hard time wrapping my head around MVC. It seems like all my questions are so simple that NO ONE writing a tutorial or book feels that they should address them. I've written one web app in MVC so far but, for the sake of time, I think I cheated a bit. I used the controllers as a RESTful web service and did all the functionality through JQuery. I have to say, MVC makes web services SO much easier.

For this, I wanted to actually convert an older piece of software I wrote over and do it the "right" way which is to say "the way all the books and stuff say I should do it". (Side note: the information on database first designs are few, far between and terrible.)

So I've got entity framework connecting to an existing database and it will do the add/delete/update and so on and so forth. My question is, however, is it possible to have it show more friendly names as opposed to the database field names it uses now?

    <div class="editor-field">
        @Html.EditorFor(model => model.Em_policy_nb)
        @Html.ValidationMessageFor(model => model.Em_policy_nb)
    </div>

Would I just replace the "EditorFor" with plain html or is there a way to do it via the razor stuff?

Also, does anyone know of a book along the lines of "MVC for stubborn Webforms developers: how to deprogram your brain"?

UPDATE: Thanks everyone! The buddy classes thing wound up doing exactly what I needed.


r/ASPNET • • Mar 18 '12

Where can I learn about implementing Users and Roles into my ASP.Net MVC3 web app?

8 Upvotes

I'm having trouble finding good reading material on the subject. I'd just like to be able to create several roles and hide certain views from certain users.


r/ASPNET • • Apr 23 '12

What's New in Razor V2

Thumbnail
vibrantcode.com
19 Upvotes

r/ASPNET • • Mar 02 '12

Could someone guide me a bit and answer some questions I have? (not technical questions)

6 Upvotes

Okay so forgive me if this isn't the specific place I should be posting this. I have seen other subreddits like /r/cscareerquestions but I thought this would be better.

I have a few questions regarding what I should learn and in what order, also if this is the right path for me. Before that I will give you a bit of a background on me...

I am 24 and recently became laid off from my first Web Developer position out of college. I graduated in 2010 with a bachelors degree in Information Sciences and Technology from Penn State. In a nutshell the major exposed us to everything imaginable in IT, programming, project management, networking, UI Design, etc. That was the good part. The bad part is that none of these classes were much about "the basics."

I took an internship with a web development company and was eventually hired by them full-time after college. I mostly took care of HTML/CSS emails, but I delved into the world of ASP.NET/C# and also Javascript for the first time here.

Long story short... one of the major clients we worked with got sold and all my work was gone.

Here I am unemployed, seriously attempting to learn skills to better myself in finding a job that I actually LIKE. I have been interested in web development since I was in middle school and I will always be. I just have some questions regarding if this is the right path for me etc.

  1. I recently started reading a C# book to better understand it, but I hit a wall. I get all the basics for the most part... mathematical statements, loops, if/else, and things specific to the world of ASP.NET in setting labels text, and on occasion I used table adapters with stored procedures to retrieve data. However, I am to the point in this book (which is based around Windows Form Applications, not the world of web) where it is beginning to run away with the concept of objects. I seem to understand the theories behind objects (inheritance etc), but I have trouble actually picturing a potential project in terms of objects. How far into the C# world does one have to go in order to be proficient enough in the ASP.NET world? I would like to think I don't need to know EVERYTHING, but I am probably wrong...

  2. Because I generally hit these walls, the idea comes to mind that maybe this isn't for me and maybe I am not intelligent enough to be a Web Developer. I had plenty of classes with CS majors that just seemed so far beyond my comprehension level, yet at the same time, none of them seemed interested in projects they were given. Is this normal or do most people quickly move through C# books? This sounds like a dumb question...

  3. Now that I have been looking for a job, I am torn between front-end development and back-end. Most jobs listed are one or the other and working for a small company, I had to do both. I keep coming to the conclusion that maybe back-end isn't for me, but then I really find it rewarding when I figure something out. On the same side, front-end development seems easier, but it is a major headache having to deal with different browsers etc...

  4. Now that I have all the time in the world until I find something (hopefully soon), what do you suggest I do? I have taken to the "Head First" books by O'Reilly that I really enjoy. So far I just finished SQL since it was a really easy read. I am about 1/3 the way through Head first C# and I hit a wall. I am also about 1/5 through Javascript and have purchased "Design Patterns" and "Object Oriented Analysis and Design".

I primarily used Web Forms at my previous job but would like to head into the world of MVC3 and Razor although I have very little knowledge of either...

Any help would be appreciated, sorry for the long post!

tl;dr looking for pointers on what to learn first, and if this is really right for me


r/ASPNET • • Apr 09 '12

VB.NET and Callbacks

4 Upvotes

I'm interested in using callbacks in my VB Web Forms to update content without a full postback / page refresh. I know nothing about this ability other then that it exists. I'm currently using lots of update panels but would like something more versatile.

Is this even possible or is this only a C# or MVC thing? I don't know either language yet.


r/ASPNET • • Mar 02 '12

ASP.NET Web API - A new way to create RESTful web services with ASP.NET

Thumbnail
asp.net
11 Upvotes