Hi,
I have a code chunck below that is being output with a space in the element when it's formated as shown and the condition is false. If I put it on one line it generates the required output. What I'm after is a more elegant solution. Any ideas?
Code Formated:
<ul class="drop-menu-top dropdown-menu">
<% if (propertyC...
I'm currently working on an ASP.net MVC web site project.
I've put all database related stuff in my model, such as queries and update/delete/save functions.
I also created a couple of controllers that execute the logic. I added a Helpers namespace and inside that namespace there are a few classes that contain logic for pagination, inte...
How to handle the Network failure error message,and how to simulate it?
...
Hello,
I have a value which I want to be vaild during a single request. I am not using Session, as this would make the value global for the entire navigation session.
So I have put thie value in a static field of a class. Great, but then I discovered that such fields are even more global, that is, they stay set for the entire applicati...
Hey everyone,
I currently have a little form with a silverlight bit for a person to sign their name and I was wondering if there was a way to have the submit button post to the controller and a silverlight code behind action... I tried adding a dom event to fire silverlight code but I guess that doesn't fire both events...
Any ideas?
...
We want to be able to share resources inside our web application with new or other users. We want to do this by implementing an invitation code. I have seen this implemented many times before in other applications (google docs for example), where you send an invitation code to another user and that other user will have whatever access ...
I have a class library that sends out emails for various events in my application. part of the email is a link to get back to the affected area of the site.
Is there the equivalent to Url.Action() for a class library to generate the link?
...
I have ASP.NET MVC application with action which should process posted XML data. At Cassini is working everything fine but when I deploy application to IIS6 I am getting following error.
A potentially dangerous Request.Form value was detected from the client (xml="<?xml version="1.0" ...").
I tried decorate controller with ValidateInp...
How can I call RedirectToAction and set http or https destination in it ?
EDIT: I have website, adn obly one page uses https protocol, after I visited it asp.net mvc url engine begin use https protocol anywhere. I have to redirect from this page using http protocol, but by default mvc generate all using https (actionlinks on page, or re...
Hi,
I realise that I can prevent unauthenticated users from accessing views at controller level by applying the [Authorize] attribute and can also filter views down to individual users or roles using this. However, my question is regarding doing the opposite... Is there a way to deny authenticated users from certain views without having...
Hi,
I am working on some ASP.NET MVC code which makes use of the jQuery Forms plug-in to allow users to upload files.
The Form:
<% using (Html.BeginForm("SaveAttachments", "Data", FormMethod.Post, new { enctype = "multipart/form-data", id="SaveAttachments" })) {%>
<input type="file" name="consentform" size=30/>
<input ...
Hello, I have found this web site really helpful since everybody helps here with the best answers. Now, i need a suggestion. I hope you would help me as before.
I need to develop an ASP.NET application with oracle database. Database server is physically separated from the application server. Now my question is which technology is prefer...
I am working on an mvc app that uses some silverlight to supplement a page and instead of having to maintain two separate linq to sql classes I want to add a reference to the main project from the silverlight project but this can't be done through the normal method of just adding a reference, anyone have a workaround?
...
In my code I have multiple objects being added to the repository, I have tried running the repository Save() function one time at the end of all the loops, and also calling it after every object that is added. But either way I still get a SqlDateTime overflow when the db.SubmitChanges() in the repository .Save()... any idea?
SqlDateTim...
My current project with assemblies for the domain model, MVC web application, and unit tests. How can I set up the AutoMapper configuration so that all assemblies reference the same configuration?
I would guess that I could put items in Global.asax for the web app, but how can I use that in the unit tests? Also, if the config is in Glo...
How would I use Ajax do a filtering on a list view in MVC.
Scenario:
List all the news items. To the left is a filter list of categories. Check which categories to show and click the filter button ( or as you check and uncheck it performs the filter ?)
to filter the list of new stories.
Here's my View code for iterating the items in ...
Hey everyone,
I am having a bit of trouble getting started with connecting my MVC app with some sprinkled in silverlight to a web service to interface the two with a database...
Currently I have my linq to sql class living in my models in my MVC but I want to be able to hit it in the service from both my silverlight application and my...
Is this a good guide if I want to implement the repository pattern in my asp.net mvc application?
...
Im trying to incorporate jqueryUI's datepicker inside a partialview like this:
<% using (Ajax.BeginForm("/EditData",
new AjaxOptions { HttpMethod = "POST",
UpdateTargetId = "div1" }))
{%>
Date:
<%= Html.TextBox("date", String.Format("{0:g}", Model.d...
I have 3 sets of tabular data I want to display with a JavaScript framework in ASP.NET MVC. I know I can embed a separate grid in a tab, but this seems inefficient especially when large datasets are involved since I imagine 3 separate grids would be created. I haven't found a JavaScript datagrid which emulates what a spreadsheet does w...