I found a great control with example here for mvc
It fulfills all my requirement but the problem is that it uses a js tree dll.
Should I go on and used that example in my application?
Do you people refrain from using 3rd party free dll in applications?
How will I tell that it will not expire or not cause problem later on
Forgive me if...
I cant figure out whats wrong. Its working when i tried to refresh only topics but it doesnt works when tried to refresh topics and page-links. ie. topics table's refreshing, and 'pagelinks' disappearing, i thought pure cannot reach - read second template node.
By the way, i tested their code, first message box show up all of nodes - in...
Hello,
I'm trying to use asp.net mvc's 2 client validation ( <% Html.EnableClientValidation(); %>) with a modal box (facebox). and can't get it to work. I've tried the following solutions and none of them worked:
www.phpvs.net/2010/04/26/manually-validate-an-asp-net-mvc-form-on-the-client-side-with-microsoftmvcvalidation-js-and-jquery...
Thanks to Darin Dimitrov's suggestion I got a big step further in understanding good MVC code, but I'm having some problems making it flexible.
I implemented Darin's suggested solution, and it works perfectly for single controllers. However I'm having some trouble implementing it with some flexibility. What I'm looking for is this;
To...
Is there a "best practice" for placing Javascript code when you have many partial views and JS code that's specific to them?
I feel like I'm creating a maintenance nightmare by having many partial views and then a bunch of independent Javascript files for them which need to be synced up when there is a partial view change. It appears, f...
What is the best way to get HTML programmatically in the view from the controller.
I sometimes use string builder for that to render some html and send it the view from the controller.is it efficient?
What do you people suggests?
...
Hello,
I would like to create some test web applications with visual studio 2010 express.
I installed Microsoft Visual C# 2010 Express, but i dont have type of project web application mvc 2.
What should i install if i want to create a web mvc 2 application?
Thanks in advance.
Best Regards.
Jose
...
Hi
I've started with a VS2010 Dynamic Data project, but now I want to add other MVC type pages etc.
How can I get "new MVC item" options to appear in AddItem menu?
i.e. this seems to appear in an MVC created project, but if I started with a DD project how can I make the option appear
...
I have a situation where I have Model A that has a variety of properties. I have discovered that some of the properties are similar across other models. My thought was I could create Model B and Model C and have Model A be a composite with a Model B property and a Model C property.
Just trying to determine if this is the best way to han...
Hi,
Does an ASP.net MVC project support adding Dynamic Data?
If so, any links/pointers to doco that gives an overview?
...
I am validating form using jquery validation plugin......
rules: {
Name: "required",
MobileNo: {
required: true,
minlength: 10, remote: '<%=Url.Action("getClientMobNo", "Clients") %>'
},
Address: "required"
},
messages: {
Name: "please provide a client name",
...
I'm having a tough go trying to figure out what I need to mock in my tests to show that UrlHelper.RouteUrl() is returning the right URL. It works, but I'd like to have the right test coverage. The meat of the controller method looks like this:
var urlHelper = new UrlHelper(ControllerContext.RequestContext);
return Json(new BasicJsonMess...
Is there a way to make helper in Asp.Net MVC to wrap other html like this:
<div class="lightGreyBar_left">
<div class="lightGreyBar_right">
<!--Content-->
<h3>
Profiles</h3>
<div class="divOption">
<%= Html.ActionLinkWithImage("Create new", "add.png", Keys.Actions.CreateProfile, "add"...
Hi there
So lets suppose we have an action in a controller that looks a bit like this:
public ViewResult SomeAction(int id)
{
var data = _someService.GetData(id);
...
//create new view model based on the data here
return View(viewModel);
}
What I m trying to figure out is the best way to render a diferent view based on...
Hi - I have built and application in ASP.NET MVC, which started out orignally as a way to learn the technology. However, the application (and my knowledge of MVC) have progressed and I would like to use parts of the functionality I have created in other applications. Eg I would have 2 websites both wanting to use the same News Control ...
I have Made the CheckboxList like this?
<%foreach(ListItem m in bootcamp.STPs.ProjectManagement.Controllers.MemberController.JALLMembers()){%>
<label for=""><%= m.Text %></label>
<input id="Mana" type="checkbox" value="<%= m.Value %>" name="chkbx" />
<%}%>
How can I get the Values of selected checkboxes through ajax script in co...
I am creating ASP.Net MVC application and want to handle errors globally. I have set web.config value as mode=On and defaulRedirect="Error.aspx". I have Error.aspx at two places. One at Views/Shared folder and one at project root folder level. But each time an unhandled error occurs, the error page at root level gets called. How can I ma...
As the title says, is there a MVC1 template for vs.net 2010?
For various reasons, we cant upgrade to mvc2 (or .net framework v4) just quite yet...
...
hi guys,
i have searched the web relentlessly for this and have not found anything - which is surprising because i would think it is such a common scenario!
Basically, on my model i have a DateTime field which i wish the user to populate through a form. I am using the Html helper to render all other parts of the form (along with valida...
I have an ajax post and in the controller I return nothing. In case there is a failure will the error message displayed with the follwoing code?
[AcceptVerbs(HttpVerbs.Post)]
public void Edit(Model model)
{
model.Save();
}
$.ajax({
type: "POST",
url: '<%=Url.Action("Edit","test") %>',
...