I have a message that I am passing to myself which will be subject to man-in-the-middle attacks. Because of that, I am concerned about the integrity of the message being maintained between the time I send it, and the time that I receive it back.
It should be assumed that once I send the message to myself, no information about the messa...
Hi
Using MVC 1.0
How can i cache a page but not a user control on it.
lets say i have a tag cloud on my master page, tag cloud being a user control that i want refreshed only every x minutes.
do i need to do [Donut caching][1]?
or has it made it to MVC 1.0 ?
can it be done in client browser or only server caching ?
[1]: http://ha...
Does anyone know of any examples or tutorials of an MVC view that shows parent/child data all on one form, and allows all the child records to be editable?
For example, say I have a table of people and another containing the vehicles they own. One one form, I want to show every vehicle for a given person, and make the data elements edit...
I'm implementing a basic search feature for a site I'm working on. The cleanest way so far seems to be to create an action with a method signature similar to:
//
// GET: /BeautySchoolDropouts/Search?page=2&q=grease
public ActionResult Search(int? page, string q)
{
//Implementation
}
I have some code then on the search results page...
I have the following jquery code that I've embedded inside of a View:
$(document).ready(
function()
{
$(".dblclick").editable("http://localhost/Configuration/Edit", {
id: 'nodeID',
name: 'nodeValue',
event: "dblclick",
style: "inherit",
submit: "Save",
cancel: "Cancel",
submitdata : {divison: "1"}
...
I have an image gallery which has the following route:
// gallery id
routes.MapRoute(
"gallery-route",
"gallery/{galleryID}/{imageID}/{title}",
new { controller = "Gallery", action = "Index", galleryID = (string)null, imageID = (string) null, title = (string) null},
new { galleryID = @"\d+" }
);
...
Hi,
Do/can routes in .net MVC look at subdomains?
i.e. subdomain1.example.com
...
I have searched the site, and while I found some very useful information, I couldn't figure out what is going on with my code. I have the following web.config:
<?xml version="1.0"?>
<configuration>
<system.web>
</system.web>
<system.webServer>
</system.webServer>
<appSettings>
<add key="APIKey" value="23e24c73feed7ca0f6...
Let's say that you will start a new Asp.Net web site/application tomorrow. What your choice between WebForms and MVC, and why?
...
Q: How do I calculate the total time it takes to render an MVC page and display the time on the master page.
In Asp.net Web Form I created a Base page class like so:
public class PageBase : System.Web.UI.Page
{
private DateTime startTime = DateTime.Now;
private TimeSpan renderTime;
public DateTime StartTime
{
...
I'd like this output:
<a href="\Catalog\Flooring">
<img src="http://site.com/dot.jpg" width="100px" height="100px" alt="" />
<span>Some text here</span>
</a>
using a RouteLink similar to:
<%= Html.RouteLink(myFPV.ProductTypeName, "CatalogType", new { controller = "Catalog", action = "Types", group = myFPV.ProductGroupName, ty...
Hello
I'm developing an ASP.Net mvc application which has a requirement to do some small, atomic actions without an entire page postback. The logical way of doing this is of course with an ajax call.
My question is - What would people suggest is the best way of achieving this?
As far as I am aware I can do it along the following lin...
I use an O/R mapper, that can reload objects from the DB in a generic manner. I would like to be able to intercept the request right after the creation of the mapped objects, in order to reload them.
ActionFilters are of course there, yet the problem is that ActionFilters (or the examples I have seen) can handle the data as provided by...
Hi
I have little problem. I can't use AcceptVerb.Get on some ASP.NET MVC actions because when I use $.get(..) IE sends POST instead of GET. Why???
Please help :)
edit:
Forget to add that Firefox work as I want - the same code in Firefox performs GET.
...
I need an attribute that handles Authorization for my controllers. This is for a facebook application and there are a few hurdles surrounding the problem.
What I really need is the equivalent to a server.transfer but of course that is not an option in ASP MVC. A redirect will not work because of the way facebook consumes the application...
Given the following code:
using (var client = new WebClient())
{
string url = string.Concat(someUrl, "SomeControllerName/", currentId, "/WriteLogFile");
var toWrite = DateTime.Now
/* Code to post object to URL goes here e.g. client.UploadValues(url, someNameValueCollectionObject)*/
}
And the controller method signatur...
I have an ASP.NET MVC project in C# using Forms Authentication and Active Directory is the Membership Provider (users login with their existing uid/pwd). However, I would like the roles to be supplied by aspnet_Roles (the default table created by the application). In my Web.config I have: with default setting for this node.
I succes...
I ran into a small roadblock this morning with HandleError. Users are directed properly to the /Views/Shared/Error.aspx. This view uses a Master Page which also displays just fine. It also logs the particulars of the ViewData.Model.Exception in its Page_Load method. An acceptable use of codebehind in my opinion.
My problem is this: ...
Hello Everyone,
I am trying to write a custom model binder but I'm having great difficulty trying to figure how to bind complex composite objects.
this is the class I'm trying to bind to:
public class Fund
{
public int Id { get; set; }
public string Name { get; set; }
public List<FundAllocation> FundAllocations...
Update 4/8/09 - I'm into a new week with no progress and no answers from the Facebook forums. Not one response over there, which is pretty disappointing. I also cannot figure out how to put a bounty on this question, but I would really, really love to get this issue solved.
I have looked at many posts to see if this was posted befor...