r/ASPNET • • Mar 31 '11

How would you handle segmented page content in MVC?

6 Upvotes

I am looking to have a panel based layout, to be able to provide content sections depending on preferences.

The big problem is that this somewhat goes away from the idea of MVC.

How would you perform this? Partial views called via a base form, or jQuery called partials?

The reason I ask, is because of the preference options, treating partials like selectable snapins.

Any advise?


r/ASPNET • • Mar 15 '11

ASP.NET Virtual or Dedicated Hosting Recommendations

6 Upvotes

I have a forum which I am hosting using a share hosting solution which has just about reached the point where a virtual or dedicated hosting solution would be better.

Any suggestions for an affordable solution would be welcome.


r/ASPNET • • Nov 05 '10

The Big View Engine Comparison – Razor vs. Spark vs. NHaml vs. Web Forms View Engine

Thumbnail ironshay.com
6 Upvotes

r/ASPNET • • Nov 02 '10

Choosing a View Engine for MVC

Thumbnail blogs.msdn.com
6 Upvotes

r/ASPNET • • Oct 08 '10

How Good C# practice can lead to poor JavaScript practice [via r/javascript]

Thumbnail enterprisejquery.com
6 Upvotes

r/ASPNET • • May 06 '10

ASP.NET 4.0 Features

Thumbnail
simple-talk.com
6 Upvotes

r/ASPNET • • Apr 29 '10

“But you need to master HTML for that, don’t you?”

Thumbnail ironshay.com
6 Upvotes

r/ASPNET • • Mar 01 '10

Resharper releases Jet Brains 5.0 Beta 2

Thumbnail jetbrains.com
6 Upvotes

r/ASPNET • • Feb 12 '10

Looking for an ASP.NET hosting company that has their AspNetHostingPermissionLevel set to High.

6 Upvotes

I need to allow my users to upload files, and I need to be able to save said files on the hard disk (under my web application's directory).

(Or, if anyone knows how to do the above under Medium trust, please let me know! I've been banging my head against my desk for hours.)

Am I just a Sarah Palin? Why is this so difficult!?


r/ASPNET • • Oct 23 '08

Our “Opinions” on the ASP.NET MVC (Introducing the Thunderdome Principle)

Thumbnail
codebetter.com
6 Upvotes

r/ASPNET • • Oct 18 '13

Learning asp.net

5 Upvotes

I'm looking for recommendations for learning asp.net. I have a basic background in vb net.


r/ASPNET • • Oct 11 '13

Questions about setting up an asp.net website on a server

5 Upvotes

Let me start out by stating that I've never configured a server or anything, only developed for my local machine (and worked on applications that someone else had already configured to a server). I am creating a basic form type of application that will read/write to a SQL server database and generate reports for the user. How would I go about setting up a server (Windows Server 2008), with SQL Server on it and my web application. Please keep in mind that I've only done programming (former game programmer) so I don't really understand much when it comes to configuring servers and setting up the web.config to talk with the web and sql server. Thank you guys very much!


r/ASPNET • • Sep 23 '13

Just announced: Icenium Extension for Visual Studio

Thumbnail
icenium.com
5 Upvotes

r/ASPNET • • Sep 19 '13

.net forum software

5 Upvotes

I am looking for forum software written in .net, free or not, that does all of its data access (ms sql) through web services. The network this will be hosted on has the webserver in between two firewalls (DMZ) and the webserver can only access what is called the "app server" which hosts a bunch of web services that have access to the network and SQL servers. I have looked at InstantASP forums and YAF but neither of those have this setup. Any help would be awesome!


r/ASPNET • • Sep 17 '13

Handling Common Casing Issues in .NET using Extension Methods in C# and Visual Basic

Thumbnail
rionscode.wordpress.com
5 Upvotes

r/ASPNET • • Jul 14 '13

New to .net

5 Upvotes

Hey guys I need to start programming with asp.net for this internship i'm signing up for.I know to program using java,javascript,php,c,c++.It would be great if you could give me a source to learn from and tell me how long you'd think it would take


r/ASPNET • • Jul 08 '13

New Angular.js Option in the F#/C# MVC 4 SPA Project Template

Thumbnail
bloggemdano.blogspot.com
5 Upvotes

r/ASPNET • • Jun 19 '13

ASP Classic Function not working

5 Upvotes

We are in the process of migrating a few web applications from Microsoft Server 2003 to 2008 and this one function appears to not be working as the field it normally populates is empty.

Here is the code:

	function get_name(emp_nbr)  
	sql3 = "select LTRIM(RTRIM(INITCAP(COMMON_NAME))) COMMON_NAME, LTRIM(RTRIM(INITCAP(LAST_NAME))) last_name from (select EMPLOYEE_NBR,COMMON_NAME, LAST_NAME  from hrit_admin.employee union all  select   CONTRACT_RESOURCE_ID, COMMON_NAME, LAST_NAME  from   hrit_admin.contract_resource) a where EMPLOYEE_NBR = a.EMPLOYEE_NBR and EMPLOYEE_NBRr = " & emp_nbr   
	rs3.open sql3,conn
	get_name = rs3("COMMON_NAME") & " " & rs3("LAST_NAME") 
	rs3.close
end function 

Any help would be greatly appreciated.


r/ASPNET • • May 25 '13

Another question, Accessing buttons added from inner.html on page_load from page_load

5 Upvotes

'm trying to create an html table with information from my user info table in my database. I've successfully managed to display the information but I'm not managing to add a delete button next to each user (a row in the table).

Basically I've retrieved my whole user info table from the sql database, then I looped through it and added rows and cells inside an already created div (It only has the opening tag because I added a first row for the heading)

I assigned each dynamically create button an ID according to its username and tried to loop through and check if any of the buttons are pressed to remove but Its not triggering.

I'm a beginner and pretty stumped on the right way to do this, I'd be super grateful for any help.

All the code is posted in my stackoverflow question: http://stackoverflow.com/questions/16753339/accessing-buttons-added-from-inner-html-on-page-load-from-page-load


r/ASPNET • • May 21 '13

Beginner questions regarding building data entry form

5 Upvotes

I am building a data management app. I have a gridview populated with records, I want to click on a record to open a data entry form. The gridview is populated by a stored procedure to return search results. Once you click on a row, I want to pass the data key ('ID') to the subsequent page and load up the data in an editable form. What type of object is this? Do I simply build a form and drop a data adapter on the page? I am used to the old-school method of manually building a form with divs and text boxes. Once I have seen the way grids are built in ASP.net, I see things are much easier now and that there should be some different controls I should be using. Can someone offer me some getting started guidance?


r/ASPNET • • Apr 11 '13

@Html.ActionLink overload?

5 Upvotes

I know that I can do the following to create the proper pathing for ActionLinks when dealing with areas:

@Html.ActionLink("linkText", "methodName", new { controller = "controllerName", area = "areaName" })

I don't really like having that in my code all over the place. So what I'm trying to do is create an overload to @Html.ActionLink that takes 4 strings only. The function itself is trivial, it's just how do I actually hook it in to make it seamless? (@Html.ActionLink() instead of @Project.HelperClass.ActionLink())

EDIT Here's what I've found: You can use the name ActionLink for your extension class, but instead of interpreting it as (string, string, string, string), it will default to (string, string, object, object), resulting in the ?length=# at the end of the resulting link. Sad day.


r/ASPNET • • Apr 09 '13

Kendo UI Gauge -- Using local data

5 Upvotes

Hi

I asked this question on Stackoverflow but had no luck, was hoping someone here could help: http://stackoverflow.com/questions/15882939/binding-a-kendo-gauge-to-local-data

EDIT -- What we actually want is to bind a datasource to the gauge and allow the gauge to be refreshed periodically seperate to the rest of the page, do you know how to do this?

<div id="operatorGauge">
    @(Html.Kendo().RadialGauge()
        .Name("gauge")
        .Pointer(pointer =>pointer.Value(VARIABLE_FROM_CONTROLLER) )
        .Scale(scale => scale
        .MinorUnit(5)
        .StartAngle(-30)
        .EndAngle(210)
        .Max(180)
        )
</div>

r/ASPNET • • Nov 05 '12

IFrame Not Working in IE9 and Why the Right Search Phrase Can Save Hours

Thumbnail
broadcastbabble.com
5 Upvotes

r/ASPNET • • Oct 20 '12

Encrypting ASP.NET appSettings Web.Config File

Thumbnail
adamjohnston.me
5 Upvotes

r/ASPNET • • Oct 19 '12

MVC3 and some authorize attributes

5 Upvotes

I'm hoping someone out here is doing what I'm doing...

I have an MVC3 site I built and I'm using Active Directory for the authorization and role management. Now, I have two sets of groups; one for production and one for test. Some of my controllers have Authorization attributes so only certain users in certain groups get access. What I'm trying to do is set that attribute based on my build config but the code doesn't like precompiler directives for this:

#If CONFIG = "Debug" Then
    <Authorize(Roles:="CRP\TEST RM Admins")> 
#ElseIf CONFIG = "Release" Then
    <Authorize(Roles:="CRP\RM Admins")> 
#End If
    Public Class SettingsController

When I do the above, I get "Attribute specifier is not a complete statement..."

If I try to use a variable (as I set some application settings in global.asax), I get other errors:

<Authorize(Roles:=HttpContext.Current.Application("adminrole").ToString)>
Public Class SettingsController

The error now is "Constant expression is required". Does anyone have any thoughts?