i am using this to create a new folder
System.IO.Directory.CreateDirectory(@" + somevariable);
the thing is that when i enter the folder c:\newfolder\newfolder in the textbox and is trying to recieve the value up in the controller it is replaced with double slash( \) c:\\newfolder\\newfolder. how would i prevent \ quotes from coming...
I'm looking for some guidance on best practices for an application using Java Swing to be structured. I'm a webapp guy normally and try to follow MVC. Is MVC typical for Swing apps? If so, how?
...
So I know that you shouldn't use UrlWriter methods in a model, but I wasn't sure what a better way to handle my current situation is.
Basically, I want to allow a User to post something to his facebook feed, and want to write a post_to_fb_feed(object) method in class User. Now, the URL of what is actually posted depends on the object, s...
Hi all,
I've just implemented a SQLResource provider in my MVC2 application. When I change something in the database by hand or by a webform, I want the ResourceProvider to drop all it's resources and fetch them again from the database.
Does any one now how I can clear this ResourceCache that is managed by ASP.NET's own API?
Many than...
I am developing an mvc application, I need to save some preconfiguration settings into DB. so where i can put my custom code to do that. When ever the IIS is resetted my code should need to work.
...
i have written validation class. now, is it ok to extend a form class from the validation class? or even extending the validation class from the request class?
i'm just not sure how to implement the registration process for a new user in a mvc. totally confuse.
Edit: i have found this zend tut here:
// application/controllers/Guestboo...
I want to learn new concepts in .NET. I have taken my old ecommerce website and reimplemented it using different concepts. Its one "Hello World" Website for each technology. I am hoping to learn "syntax",separation of tiers,testing, performance and code generation. Different databases like relational and NoSql. Objective is to touch dept...
Hi
I have a what I consider a standard example. In my asp.net MVC 2 solution, I have an Index View for my Products Controller. So when a user browse to the products url, the index view will get displayed and show a list products in a listbox.
The View code look like this:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" run...
I'm moving back into full time web development after a 5 year hiatus. My previous experience (no active record or MVC) tells me to be very thorough with my database schema. Foreign key constraints, unique indexes, etc... can really help out when your writing spaghetti code.
Does the community still find these useful when working in an...
Hi
I have code like:
var entityX = this._xService.GetAll();
var entityY = this._yService.GetAll();
Both are returned as IEnumerable types. I need to inner join the two into a something like a JoinedList class that has to be IQueryable.
I'm looking for ways to do this please using LINQ.
Many Thanks
...
(I'm sorry for not being so clear in my first post)
Here is the situation: I have data that is to be refreshed from the Internet. Let's call it Model.
What I want to do: Basically it sounds like an MVC model, where the Model is also kept persistent in local (private) storage. The Model and its associated methods are application-wise. T...
I recently published my first MVC 2 project to a commercial web server, running Windows 2008, and which purportedly supports other MVC sites without issue, but have been experiencing some problems. Here is the high-level structure of the project. As you can see, it is very simple:
But, after the site is published, and I navigate to th...
I'm new to designing OO systems. I have a simple Flash Cards app where I'm having trouble figuring out the proper way to architect the system. The application has a simple GUI with a question, answer, and couple buttons. The questions and answers dataset are stored in a Derby embedded database.
Quick Setup:
Database Class - Handles the ...
I have an ActionLink:
<%: Html.ActionLink("MyAction", "MyAction") %>
I would like to use a button instead. Something like this:
<asp:Button ID="Button1" runat="server" Text="MyAction" />
What do I need to do to make clicking the button perform the same action as clicking the ActionLink?
...
Hey guys,
My issue is similar to This question but different enough that I feel it warrants a separate thread.
So I have the following 'view';
// A load of other calls to Model.Title, Model.Description, Model.DownloadURL
// which work fine so no issues with actually ViewModel communication.
<fieldset>
<div id="projectDiv">
...
Hello everyone,
I am in the process of writing a login/register form for my MVC website and am facing an issue regarding security and AJAX. It seems that more and more popular sites are utilizing javascript to process logins, and many from a non https URL (www.giantbomb.com and www.gametrailers.com to name two). I'm wondering if there...
The latest version of the Entity Framework got me in love, still at good as it is I don't like using entities objects as domain objects for all the obvious headaches, so what I'm doing is translating retrieved entity objects in my services and returning POCOs to whomever consumes the service. Thanks to automapper the translation from poc...
I was given a Use Case for a Quizz Application. The Use Case is only for creating new Quizzes. I am having trouble deciding which design is better:
a)
b)
Although this might look like a Domain Model, it is in fact a Class Diagram (I was lazy to put the methods/attribtues in the diagrams :( ).
The idea behind all this is that I ha...
In the project i am working on, i want to use the ADO.NET data services as data access layer. so that other parts of my application (except asp.net mvc web site) could also access it from the same location. I am just not sure if this si the correct model and also for asp.net mvc models I wanted to reuse the data services model, as much a...
Here is the problem.
lets say I have a product category table and a product table.
by using foreach statement getting categories making them a html table and putting products inside the table as a radio group.
so 3 product categories makes three different html table and inside the tablo i m listing the product as radio buttons.
when u...