When using repository based persistence in a .net application, which collection type should normally be used?
IList, IEnumerable?
For example, the FindAll() method.
First: sorry for my poor English writing.
I remember that in VB6.0 days, we had some modules just for popular tasks like making disabled/enabled all buttons of a toolbar buttons or like calculating records count in a specific recordset.
Now, in .Net days, What is your approach for doing such these popular tasks? Do you create a static class?
Thank you
hello
i want to implement cascading drop down list in asp.net mvc 2.0 from database.
i had implementated it on mvc 1.0 but its not working in mvc 2.0
thank you.
How can I use ASP.NET inline tags from within a block of JavaScript? For example:
<script type="text/javascript">
// Do some AJAX here, then redirect to a new page on the next line.
window.location = "/Movie/" + <%= html.encode(MovieName) %>;
</script>
I would like to write application which will iterate trough certain test cases and generated output in HTML file.
For this i would like to have something using which i can keep appending the HTML nodes to the output for each test case. Is there nice way in .NET for doing so ? How ?
Any pointers or suggestions will be helpful.
Why html agility pack is used to parse the information from the html file ? Is not there inbuilt or native library in the .net to parse the information from the html file ? If there then what is the problem with inbuilt support ? What the benefits of using html agility pack versus inbuilt support for parsing information from the html file ?
Is this possible to have two (or more) different kinds of cells to be displayed interchangeably in single column of C# .Net 3.5 WinForms DataGridView?
I know one column has specified single EditingControl type, yet I think grid is flexible enough to do some tricks, I may think of only:
Adding as many invisible columns to grid as required types of cells and on CellBeginEdit somehow exchange current cell with other column's cell
Creating custom column and custom cell with possibility of changing EditingControl for single cell
Which approach is better, is there any other solution, are there any examples ?
Hello
I've been searching for a while for a good example of localizing an C# ASP.NET MVC 2 application but storing the data in the database instead of .RESX files. Unfortunately I've had no luck finding a good example and was hoping someone else may know and could point me in the right direction?
Many thanks for any help/advice/articles
I'd like to parse, manipulate and publish a swf file. I've heard of similar things in Java (JavaSWF) but haven't come across anything for .NET. Has anybody seen something like this? If not any suggestions on where to start?
Are there ways at determining the total size of a complex object in .NET? This object is composed of other objects and might hold references to other complex objects. Some of the objects encapsulated by this object might be POD, others may not.
Has anyone else having an issue with browser caching when using .net?
I am using VS 2008 and IE8. And I include all the recommended code
to ensure that there is no caching, still 20% of the time, I get cached values. This was never an issue with classic asp. Any ideas?
My team members don's support the use of validation controls that are available in asp.net (for web application).
What are arguments in favor of validators instead of or in addition to javascript validation?
i need to get an image from client and displayed(preview) before saving it into database..and then should be saved in database after getting preview..?
Is is possible in Asp.net using c#... ?
.NET contains its own equality comparison functionality, however I don't really understand how it works.
If the desired Equals() and == behaviour is to verify that every field of an object is equal to every field of another object, is it necessary to override Equals() with a method that does this explicitly?
Both Page.Cache and Page.Application can store an application's "global" data, shared among requests and threads.
How should one storage area be chosen over the other considering scenarios of data synchronization in the multi-threaded ASP.NET environment?
Looking for best practice and experienced recommendation.
Can PHP array passed POST method to catch in ASP.NET MVC?
Query string: WebAccess/ArrayTest?val[]=1&val[]=2&val[]=3
I write: ActionResult ArrayTest (String[] val)
But this only works if the query string to remove the "[]"
Hi,
I need to run an image processing application on a .NET server.
Do you have any tips what I should/can do?
I implemented the code in a webservice, but performance is very slow (at least 10x slower than when executed in a windows application).
Any help will be greatly appreciated.
thanks
In specific time period, when user presses "C" I want it to happen as user presses "Ctrl+C". Actually, whatever key user presses the program should adds Ctrl with it.
DO you know how to do that .NET ?
I've look around for changing KeyEventArgs.KeyData but it cannot be set.
I have multiple master pages in my asp.net mvc web application... Each of the pages add,edit,view and delete functionalities.... What it does is i have to create multiple views for handling add,edit,view and delete functionalities (ie) the user has to navigate to another view to edit/view the details of a record... How to Handle Multiple Form Actions (ie) add,edit,view and delete functionalities on One View?