asp.net-mvc

ASP.NET MVC 2.0 Stck Overflow when loding sproc in partial view

Hi! Please forgive any newbie mistakes. I'm writing a receipt detail lookup tool in MVC 2.0 to pull up receipt details from our POS database. I have the stored procedures written that return the data that I need. I have my sprocs loaded in a repository. When I try and load these sprocs in a partial view I get a stack overflow error. If ...

Help rewriting existing TSQL query with "Not Exists" clause into LINQ

I'm having trouble translating an existing TSQL query with a "Not Exist" clause into working LINQ for use in an ASP.NET MVC app. Here's my existing query. SELECT OrgID, ContentID, FriendlyTitle FROM ContentRollup CR WHERE OrgID = @sOrgID OR ( OrgID = '*' AND NOT EXISTS ( SELECT ...

Switching Between HTTP and HTTPS in ASP.NET MVC 1.0

I'm using MVC 1.0 and have created a "RequireSSLAttribute" (like the one in ASP.NET MVC 1.0 Futures but ignores SSL directives for local computer). I want to SSL-enable the sign up and login pages to protect the passwords that are being sent. However, I want the rest of the site to be non-SSL. By adding the [RequireSSL] attribute to m...

Securing the rss feed with username and password,for private viewing

How can i secure the Rss feed for private viewing? ...

JQGrid and .NET MVC - Load Search Results

Ok, I am new at jQuery, but the JQGrid has peaked my interest. While implementing the grid, I have come across two problems that I am not sure how to solve. Both involve loading the grid with results. How do you load the grid when you have parameters in your route. For instance, http://domain.com/search/results/2010/KY...I am wantin...

Create link on page w/ web address stored in database

This seems like it should be easy, but I can't seem to figure it out. All of my google searches lead me to linking to databases which isn't what I want to do. I'm a complete web development newb. I've roughly followed the NerdDinner tutorial in creating my web app. One of my stored fields is a web address. On the Index and Details p...

Asp.net MVC VS ASP.net WebForms ?

Hi , I am starting a new project in VB /.Net Framework 2.0 for a company corporate website with data driven forms. So should I go further with Asp.net MVC or Asp.Net web forms and WHY ??? We are not ready for Ajax now but later. And also we have DevExpress components. ...

Implementing Security for Rss Feeds.

A)I want to be able to support password protection of my RSS feeds through the following authentication methods: HTTP Basic Integrated Windows (NTLM/Kerberos) Digest 1)How can i do that in asp.net mvc B) Reading over the RSS 2.0 specification, I saw nothing related to security, so I assume that security implemented for the RSS feed is...

Website Build and Release Strategy

We have an ASP.Net MVC solution built in VS2008 and TFS2008. We use TFS Build and use Continuous Integration. We have a deployment pipeline that enables us to progress a build, eventually, to our live site... Internal Dev (immediate deployment following a build) External Dev (used by internal testers to make sure it works on the produ...

ASP.NET MVC jQuery on IIS 6.0

Hi everyone, I have big problem with deployment of asp.net mvc application on iis 6.0, i configured aspnet_isapi.dll, and the routing works fine, but json and jquery doesn't work. Any ideas? ...

Flexigrid- How to bind data to flexigrid(jquery) ?

I am trying to use flexigrid(jquery) to display my data.. I have downloaded some examples but somehow i have not been able to figured out "How to bind the data to flexigrid" which i am fetching using ajax, and which currently is in array.. Basically i dont know how tryconvert my data in Json object.. Or is their any other way(I dont want...

Cant get Jquery ui autocomplete widget to work

Im trying to develop my first ASP.NET MVC web app and have run into a problem with the jquery ui autocomplete widget. At the moment I have a form with a number of text boxs which would lend themselves well to an autocomplete ability. The code for my "Make"(Car make) text box is show below: jquery: $(function() { $("#Make").autoc...

Ways to detect a request made by Silverlight in Asp.Net MVC

I'd like to detect requests made by my Silverlight client in ASP.Net MVC. Silverlight can't set 'X-Requested-With' as far as I remember. What do I use instead? ...

How to use Encode with html textbox

I want to use the Html.Encode by replacing Name <%=Html.TextBox("Name", Model.projectModel.Name)%> However, since i`m using jquery, How I can still keep the name of the texbox? Is it possible to use Html.encode and still keep the name of the textbox? ...

Conditional Editor template

How can we apply editor templates to selective rows in a grid? I want to show text box while editing for particular rows. I am using telerik grid. I have used [ReadOnly(true)] attribute for my class member and hence it's not showing me it as editable, which is obviously intended. But for selective rows, I want to show text box in my gr...

ASP.NET MVC RC2 - Session Handling Bug ?

hello community, i have a problem with session in my webapplication (asp.net mvc rc2). the application works fine on asp.net mvc rc1. i use the follow code for session timeout handling: if (cnt.Current.Session != null) { if (cnt.Current.Session.IsNewSession) { string cookie = cnt.C...

ASP.NET MVC Conditional validation

How to use data annotations to do a conditional validation on model? For example, lets say we have the following model (Person and Senior): public class Person { [Required(ErrorMessage = "*")] public string Name { get; set; } public bool IsSenior { ...

How to set the "float" style using FluentHtml in MVCContrib

I'm working in ASP.NET MVC 1.0 using MvcContrib FluentHtml version 1.0. The following code doesn't work because float is a C# keyword. <%= this.TextBox(m => m.Name).Styles(float => "left") %> How do I define the "float" css style using the Styles method in FluentHtml? ...

ASP.NET MVC Session usage

Currently I am using ViewData or TempData for object persistance in my ASP.NET MVC application. However in a few cases where I am storing objects into ViewData through my base controller class, I am hitting the database on every request (when ViewData["whatever"] == null). It would be good to persist these into something with a longer ...

Converting ASP.NET web site to MVC2

I have my existing web site developed using ASP.NET. It's college management system. Now I need to redevelop it on MVC2. What all changes do I need to do? I am little bit aware of MVC and have done some exercises also. Thing I know is I can keep my database intact but there will be massive changes at other places. WHat will be the better...