Hi, I am having a trouble. I am trying to run asp.net mvc 1.0 on mono 2.2.I have copied the system.web.mvc.dll to bin directory. I have done HttpContext.Current.RewritePath("/Home/Index");. Still I am having te error:
Server Error in '/' Application The incoming request does not match any route
Description: HTTP 500. Error processing r...
I've seen a lot of questions related to mapping DTOs to Domain Objects, but I didn't feel they answered my question. I've used many methods before and have my own opinions but I'm looking for something a little more concrete.
The Situation:
We have many domain objects. We are using a CSLA model so our domain objects can be pretty co...
We have found an issue in our app where Safari on the Mac randomly recreates a login cookie from a logged off session.
I have a fiddler archive with this behaviour here. Note that some stuff has been removed from this to make it easier to get, but nothing which sets a cookie or anything has been taken out - only repetitions of requests...
In an asp.net page I have five gridviews listing some numbers. In the header of each gridview I want to summarize the numbers in the listings. So if the listing contains rows with numbers 1,2,3 the title in the header would be 6.
I can't find a way to do it in my query for the gridview (SELECT number,SUM(number) FROM tbl, is not workin...
Why this code doesn't work?
OnClientClick='<%# String.Format("return confirm('¿Está seguro que desea eliminar el registro {0}?);'", Eval("data")) %>'
The error is:
The server tag is not well formed.
How can I write this to make it work?
...
I need to capture the first frame of a video uploaded on an asp.net website. I really would like to do this with WPF (if it's even possible), but if anyone knows an easier way, I am open to that too.
I have seen examples of this using MediaPlayer and RenderTargetBitmap in WPF, but each example assumes the video is accessible via a UR...
Hi,
I'm importing data from a CSV that contains approx 350 columns. This CSV import is fixed and I have absolutely no control over it.
If I attempt to open the CSV in Excel 2003, it only partially loads due to the column limit of 255 (IV).
When I load the CSV into a DataSet using OleDb and Microsoft.Jet.OLEDB.4.0 it also only shows 25...
In which cases to you need to watch out for Concurrency problems (and use lock for instance) in ASP.NET?
Are there 'best practises' around on this topic
Documentation?
Examples?
'worst practises...' or things you've seen that can cause a disaster...?
I'm curious about for instance singletons (even though they are considered bad prac...
Hello all,
When I use the .Net RegularExpressionsValidator control the Validation expression matches EXACT text. When I say this I mean, for the string I give it to validate, if it deviates from the regex pattern at all the string does not validate.
ex: (([0-1][0-9])|([2][0-3])):([0-5][0-9]) if given in the RegularExpressionsValidator...
Duplicate:
What is so bad about Singletons?
I was reading this question, and was surprised to see that (s)he considered a singleton to be considered a "bad practice," and in fact thought that this was common knowledge.
I've used singletons quite a bit in any project that uses iBatis to load the queries from XML. It great improves...
Best Practices for Speeing Up Your Web Site from Yahoo includes the following recommendation:
When users request a page, it can take anywhere from 200 to 500ms for the backend server to stitch together the HTML page. During this time, the browser is idle as it waits for the data to arrive. In PHP you have the function flush(). It all...
looks like DataTable.Rows property is not saved in ViewState but the Columns property is, because I can't explain why columns persist between postbacks and the data doesn't.
Any ideas?
...
Currently we're opening a new aspx page with window.open. The window.open is in a javascript function (openNewWindow()) in the current aspx page which is called when an asp.net hyperlink control is clicked.
The links are dynamically created on the page by our framework and so I'd like to avoid changing that functionality.
The problem ...
Hi All,
I have an Action method in an ASP.NET MVC Controller class that handles form posts from a fairly basic "create/edit a user" page. I'm new to MVC so I've been following code samples from various Microsoft tutorials, this is how the method looks currently:
[AcceptVerbs(HttpVerbs.Post)]
public ViewResult Save([Bind(Prefix = "Servi...
I have a List in a web control when the control creates it's child controls I perform a foreach loop through the list of fields as
foreach (IField field in this._fields)
{
/* Do some work here */
}
Localhost, out dev environment, and our staging environment everything is fine. But when we deploy to our dev cluster each "field" is...
I have this custom radiobuttonlist I'm using in my .aspx page in order to be able to get the GroupName to actually work since I will have 2 RadiobuttonList controls on the same .aspx page:
public class CustRadioButtonList : RadioButtonList, IRepeatInfoUser
{
void IRepeatInfoUser.RenderItem(ListItemType itemType, int repeatIndex, Rep...
Is it normal behavior for an ImageButton event to not fire if it can't find the image for it. For example, assume I have the following piece of code:
imageLink = new ImageButton();
imageLink.ImageUrl = "~/images/arrow.png";
If the page finds arrow.png, the image click works, but if it doesn't find it, it does not work.
These images ...
Coming from a desktop client background, with no real data-driven web design experience, I am studying ASP.NET UI design to determine the best UI pattern for Parent/Children data.
I always tend to experiment with Parent/Child presentation when learning a new UI platform, so that is where I have started here. Thinking I should use ASP.NE...
I'm using asp.net and want to filter a search result everytime the user enter letters in a textbox. For exmaple this website do exactly what I want: http://www.prisjakt.nu/ (try searching in the right top corner). I have tried just putting my textbox and the gridview with the search result in an updatepanel, it's working but it's really ...
We are binding a list of custom objects to an ASP.NET DropDownList in C# but we want to allow for the DropDownList to not have anything selected initially. One way of doing this might be to create an intermediate list of strings, populate the first one with an empty string and then populate the rest of the list with the custom object in...