Hi,
I upgraded to VS 2010 Beta2. It upgraded my slns and csprojs when I opened them.
When it asked me, I opted to stay in .net 3.5 to keep compatability
NOTE: the original project was build with MVC2 Preview2 - the exact same version as what comes with VS2010
However, when I try to build my Web project including the views, I run int...
Hello
I was wondering if there is a simple way to not use the aspnet_* tables and all that to add a login/logout function to an mvc application? I need a simple custom login+logout function, and it makes no sense to having all that functionality avalible for my app.
/M
...
Hai guys,
My web application's home page has a RememberMe checkbox.. If the user checks it, i ll store emailId and password in cookies.. My code is
if (this.ChkRememberme != null && this.ChkRememberme.Checked == true)
{
HttpCookie cookie = new HttpCookie(TxtUserName.Text, TxtPassword.Text);
cookie.Expires.AddYears(1);
...
We have a legacy ASP.NET webforms application that we're engaged in stabilising and removing technical debt from. Is it possible to take a hybrid approach - ie, can ASP.NET MVC coexist with webforms within the same web-project?
Are there any gotchas for that? If it is possible, I assume one just has to initialise the routes table, reg...
In the past I've used UserControls to create email templates which I can fill properties on and then use LoadControl and then RenderControl to get the html for which to use for the body text of my email. This was within asp.net webforms.
I'm in the throws of building an mvc website and wanted to do something similar. I've actually consi...
I'm using an ASP.NET MVC usercontrol to represent a form for both a "create" mode and an "edit" mode.
The form involves a file upload so looks something like this:
<% using (Html.BeginForm("Create", "News", FormMethod.Post, new { enctype = "multipart/form-data" }))
How can I make it post to the Create action in create mode and Edit ...
I'm developing a website which has a modular structure.
Every segment of the url presents an content item.
For example url: www.mysite.com/blogs/programming/2010/01/
Root item is 'blogs' of type 'area'. It has a child item 'programming' of type 'blog'.
Now there's '2010/01' left of the url.
Last valid (routable) item 'programming' was ...
Now before I dive too far into this this question, I am aware of nDjango and MonoRail; however, those project seem to be lacking.
What I'm wondering is if there is a solution out in the .Net world that has the following features out of a single box like Rails has in Ruby or Django has for Python. I know tools that do pieces but am curi...
Hi there,
i am using TempData to store the referrer for a website and via jquery i am issueing ajax calls to send emails ... I use tempdata to recover the original referrer URL.
It works great on the first read but then the second its empty.... I think this is by design... so i decided to try viewdata but this is stored but when read ...
We are getting the error above on some pages of an ASP.NET MVC application when it is deployed to a 64 bit Windows 2008 server box. It works fine on our development machines, though these are 32 bit XP. Just wondered if anyone had encountered this before, and has any suggestions? Details as follows:
Bad binary signature. (Exception f...
Hi
I have a table and trying to filter using uiTableFilter plugin as given at: http://silverwareconsulting.com/index.cfm/2008/10/2/jquery-autofiltering-table
Here is JQuery Function:
$("#myTable tbody tr").find("td:eq(" + i + ")").click( function() {
clickedText = $(this).text();
FilterText = ((FilterText == clicked...
Hi all,
I have a link to delete action using Jquery dialog confirm message. Clicking on delete link, a modal popup is showing with a confirmation question. Button Yes is triggered to submit the form with id = Model.Id
<td>
<% using (Html.BeginForm<AssessorActionPlanController>(
c => c.Delete(Model.Id), FormMethod.Post, n...
Hi, I have a textbox for search and a button that redirects to given value of the textbox. It works well except for firefox 3, which ignores the function completely. Any ideas why and how to fix it? I have already tried window.location instead of location.href, but it again works well in all major browsers but firefox.
My code:
<%=Html...
I can't have asp.net mvc 1.0 to bind HttpPostedFileBase for me.
this is my EditModel class.
public class PageFileEditModel
{
public HttpPostedFileBase File { get; set; }
public string Category { get; set; }
}
and this is my edit method header.
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Edit(int id, FormCollection f...
Hi,
if I have an ajax form with AjaxOptions like this :
(Ajax.BeginForm(new AjaxOptions { UpdateTargetId = "okContent", HttpMethod = "Post", LoadingElementId = "ajaxLoader" })
is it possible to change UpdateTargetId in controller(after pressing submit button)?
Thank You.
...
HI!
I have this piece of a HTML in a View:
<% foreach (var item in Model) { %>
<tr>
<td>
<%= Html.ActionLink("Edit", "Edit", new { id = item.HändlerID })%>
</td>
<td>
<%= Html.Encode(item.HändlerID) %>
</td>
<td>
<%= Html.Encode(item.HändlerName) %>
...
I have a table of data which contains newsarticles.
ive created standard CRUD views/forms and it has paging too.
eg at the moment i have urls's like this:
// GET: /News/
// /News/Page/2
News articles can be archived (a boolean value in the db)
i want a url to map to only archived data in the db or non archived data.
eg /New...
anybody knows how to make a method (I will put it in a extensions class) that will do the same as the mvc's RedirectToAction only using expressions (no magic strings).
So that instead of writing something like this:
RedirectToAction("Detail",
new RouteValueDictionary { {"messageId", messageId}});
I would do like this:
this.Red...
I have the same scenario as this question, but with a different problem:
http://stackoverflow.com/questions/298691/asp-net-mvc-ajax-form-with-jquery-validation
I've set the AjaxOptions.OnBegin property to call return $('form').validate().form(); which works fine for when validation fails; the validation messages are displayed and the f...
Hello
I have a login-page and would like the "Username" textbox focus when page loads.
How is that done best using MVC? Some script or jquery or something?
/M
...