Hi All,
Just wondering why could not i cought this issue in local testing ?
I am using a Content Panel user control in all my user controls.
In one of the user control i missed the register tag for Content Panel UC .
While testing locally all things were working fine . Suddenly in QA box i got a critical issue. Application was thorw...
I need to put a Flash Object in my website developed on MVC2 .NET, however the third party who made it just gave me an html with this code.HTML errors apart I don't know how to put it on ASP.NET. Can you help me?
<table width="608" border="0" cellpadding="0" cellspacing="0" bgcolor="#F4F4F4">
<tr>
<td height="4...
We're developing a site initially without javascript for maximum support with the intention of layering js functionality over the top. The problem we have is where a single page has 2 or more pieces of functionality (as an example a screen to capture personal details that includes a postcode lookup for address). With no ability to cha...
I'm pretty sure the answer is going to be no here, but I just want to be sure. As you can probably guess I'm in progress of converting a web forms project over to ASP.NET MVC. Thus, I have a web forms master page and a MVC master page. The user controls (.ascx) render fine in the MVC Master page, but the post-backs essentially do nothing...
I copied my app and put it somewhere else. Then I changed IIS to look at the new place and ran it. Debugging it - it runs through my Controllers in the new location fine. But when it nips off to get the view it goes to the old location of my app?!?
...
In handling a 1--->0...1 relationship, I'm trying to use a separate partial view for the 0...1 end. I'd like to use RenderPartial() rather than RenderAction(), for the sake of efficiency.
Is it possible to gain access to the containing view's model data from this partial view, in order to access the PK/ID of the main object?
Is this j...
I'm on my first MVC project and still haven't got a complete hang of it. I ran into this issue:
I have this in my View (Home/Index.aspx)
<% using (Html.BeginForm()) { %>
<fieldset>
<p>
<%: Html.TextBox("A")%>
<%: Html.TextBox("B") %>
<%: Html.ActionLink("Submit", "Create", "Home")%>
</p>
</fieldset>
<% } %>
I have this...
I'm extremely new to mvc and webtest so please bear wtih me here.
I have a customer view. The customer view calls a javascript function on document.ready. This javascript call performs an ajax post to an action in the customer controller which returns json to the original javascript which in turn updates the customer view.
In my webtes...
I have a script that appends some rows to a table. One of the rows has a delete link, and for that I am using a ActionLink, however the id of the element is received via js, and this is nor working:
$("#Table").last().append('<tr><td><a href=\"<%:Html.ActionLink("Delete", "DeleteElementFromSet", new {id=%>Id<%})%>">Delete</a></td><td>'...
i want to play video files like wmv and flv in my asp.net mvc application? what is the best solution or plugin to do so
...
I ask specifically what the disadvantages are because it's easy to find and read about the advantages of using RoR instead of ASP.NET MVC. But I'd like to have a better understanding of the disadvantages so I have a better idea of what to expect when I begin building a social website using RoR.
Thanks so much in advance for your wisdom!...
I have a feeling I'm doing this horribly, horribly wrong. Nested for loops? What is the best practice method of listing subcategories? I have a feeling it involves preparing the list in my controller action and sending it to the client via some actionresult, but I don't know where to start? Anybody able to point me in the right direction...
Hello,
I am trying to get Uploadify to work with my site but I am getting a generic "HTTP Error" even before the file is sent to the server (I say this because Fiddler does not show any post request to my controller.
I can browse correctly for the file to upload. The queue is correctly populated with the file to upload but when I hit o...
Here is the JS:
$('#createReview').click(function () {
CKEDITOR.instances['ReviewText'].updateElement();
$.ajax({
type: 'POST',
cache: false,
url: '/Review/Create',
data: $('#reviewForm').serialize(),
dataType: 'html',
success: function (response) {
$('#bookReview').htm...
I am using ASP.NET MVC 2 with Ninject, and Linq2SQL behind a repository pattern, based on Rob Conery's TekPub Starter Site.
With controllers it all works fine, however I have an HTTP Handler (it serves and resizes images from a DB), and I have no idea how I use Ninject to replace my ISession interface with a concrete instance of my Linq...
Typical scenario, post to an action that checks ModelState.IsValid and if it is, saves to the DB. Validation rules are set as data annotations in the Model.
Here's my issue. I have a data field that can't be longer than 400 characters. The data annotations enforce this, as well as a jQuery validation on client side.
User enters 395 cha...
How can I create a dynamic url to display an image?
I am creating a web page that lists search results of products and their associated images.
I tried using Url.Content, but it does not format the url correctly.
Code I created:
<img src="../../Images/<%: product.PicFileName %>" alt="photo" />
Html that was output:
<img src=".. .....
I've been working with web-forms and I want to switch to the MVC pattern based on some facts and other goodies that I see in it. I was going good with MVC review when I came across the latest Dynamic Data (which in past was called Dynamic Data Templates).
Correct me if I'm wrong but I believe in backend both MVC2 & DD use the MVC patter...
Hello,
today I've got some interesting observation, that I need to explain. I've got my Person class that is described as above:
public class Person
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
}
now in my MVC2 application I've got PersonController with following ed...
Hello,
In my model, I have this :
public class CustomerModel
{
public Customer Customer { get; set; }
public Language Language { get; set; }
public IList<Language> Languages { get; set; }
public CustomerModel()
{
Language = new Language();
}
}
In my view, I have t...