Hi, I'm new to codeigniter this is my case:
I have a homepage with a list of items, I can navigate through pagination, but I have in my sidebar a login form, it's possible to return to the same page after try to login in the case that is valid or not with a validation message.
for the login option I have a controller and login function b...
i declare the button in .aspx its id is btn1
My prob is ,i need to assign the class name of the button and value of the button in action side(i.e in controller)
...
I seem to have missed something - in this step through it talks through downloading nunit and changing the original MSTest reference to NUnit. Which seems fine until it talks about running the test with UnitRun from JetBrains.
I would have thought I could run nUnit to be able to run the test - but I load my project in the nUnit gui and...
When using MvcContrib Portable Areas I can't get the strongly typed views to work.
I get the error message
'Could not load typeSystem.Web.Mvc.ViewPage<blah>
I've tried with built in types to check if it's an error with my type.
...
hello,
i have a problem with asp.net mvc 2 and the html.textboxfor helper.
i use the follow code in a form:
<%= Html.TextBoxFor(model => model.Zip, new { @class = "txt", id = "zip", tabindex = 1 })%>
when the user send the form, i validate the zipcode, when the zip is invalid we set the corrected zip.
my model has the corrected zip,...
Just I started learning MVC pattern, of course i am learning it from Microsoft's website.Just i want to gather quiz information from the experts.
My understanding is (correct me then and there)
1 ) MVC does not support server side events, but supports client side events. If it supports client side events, I need html page with jQuery/J...
Hi,
I have a ASP.NET MVC application which is build up as an assembly that queries the database and a asp.net frontend that references this assembly and this assembly abstracts the underlying database. This means that my Assembly contains a app.config file that contains the connectionstring to the database (Linq to Sql data model). How d...
Why does MVC work so well in ASP.NET but not in (.NET) winforms?
There isn't an explicit MVC for winforms offered from Microsoft. However, I see people attempting to use one but they are a bit of a mess compared to ASP.NET MVC.
...
The litmus test for me for a good MVC implementation is how easy it is to swap out the view. I've always done this really badly due to being lazy but now I want to do it right. This is in C++ but it should apply equally to non-desktop applications, if I am to believe the hype.
Here is one example: the application controller has to check...
I am adding a view for a controller method, I am getting one checkbox "Create a partial view (.ascx).
now my questions are : [If possible provide me the link]
What is this partial view ? Why should I use this?
If this for reusability, please give me an example that I can show same error page for different controller with different text...
In the Zend Framework is a very nice and easy way to create a Tag cloud, but the documentation gives no clue about a way to automagically give every tag a weight.
Is there a way to do this? If no, how could it best be done?
...
I've got menu in my ASP MVC project, and can when I use
<li><%= Html.ActionLink("My", "My")%></li>
it redirects me to .../Home/My
and if I got
<li><%= Html.ActionLink("My", "My", "ZZZ")%></li>
it redirects me to .../ZZZ/My
the problem is I've got some pages out of MVC , with simple Inherits and they are in the root so I need to g...
I am interested in applying dependency injection to my current project, which makes use of the MVC pattern.
My controllers will call the models and therefore will need to inject the dependencies into the models. To do this, the controller must have the dependencies (such as a database object) in the first place. The controller doesn't ...
Hi,
I have a Question table and an Answers table linked by questionID (1 to many). I'd like to be able to update both table from the one form.
I can easily add a question but to have it also add the answers (into their own recordsets) is causing a headache.
how do I set my form up to allow for the answers to be created and also what d...
Hi,
I want to create a multi-tenant application that uses the hostname to determine the customer.
For example:
CustomerOne.myapp.com
AnotherCo.myapp.com
AndOneMore.myapp.com
...
I can do the database and security side with no problems, I can also get the hostname from the URL, but what I am struggling to find out is how to create the...
Hello.
Once deployed parts of my web-application stop working. Index-es on each controller do work, and one form posting via Ajax, Login works too. Other then that yields 404. I understand that nothing particular should be done in integrated mode.
I don't know how to proceed with troubleshooting.
Some info:
App is using default app...
Hi,
As indicated (by another poster) here: http://stackoverflow.com/questions/1959945/can-you-pass-a-model-with-redirecttoaction
I would like to redirect my MVC 1 action to another action which normally would be the response called by an Edit page being posted back.
Can someone tell me how to do this please as all the suggestions I've...
I'm building a small financial system. Because of double-entry accounting, transactions always come in batches of two or more, so I've got a batch table and a transaction table. (The transaction table has batch_id, account_id, and amount fields, and shared data like date and description are relegated to the batch table).
I've been usi...
I am new to Microsoft.MVC, so sorry if this is a silly question.
I have created a very simple forum, and I am now trying to create some tag functionality to it.
I have a controller where the index retrieves the last 10 forum threads. I would like to pass a query string, or something a-like with the Id to the supplied tag to the forum, ...
I would like to be able to map URLs to Controllers dynamically based on information in my database.
I'm looking to do something functionally equivalent to this (assuming a View model):
map.route '/:view_name',
:controller => lambda { View.find_by_name(params[:view_name]).controller }
Others have suggested dynamically rebuilding t...