I am trying to create a Google Map with a single coordinate as marker. I use ASP MVC, and the coordinates are saved in the database as a string.
<%: Model.LatLng %>
outputs something like this: 52.425, 4.938
The problem is, Google Maps cannot read this, probably because it is a string. How do I convert the coordinates to something...
Hello,
Is there a demo somewhere how to use Datatables 1.7.x with ASP.NET MVC 2 ?
Is saw an early demo somewhere but the Datatables API has since been updated. Does anyone have working code for implementation ?
Thanks!
...
I want to run some code from an ASP.NET MVC controller action in a new thread/asynchronously. I don't care about the response, I want to fire and forget and return the user a view while the async method runs in the background. I thought the BackgroundWorker class was appropriate for this?
public ActionResult MyAction()
{
var backgro...
Hello,
I'm wondering what's the best strategy to delete a row in MVCContrib generated grid.
Consider this grid:
Html.Grid(Model.Proc.Documents).Columns(column =>
{
column.For(c => c.Name).Named("Title");
column.For(c => c.Author.Name).Named("Author");
column.For("Action").Action(
delegate(DocumentDto doc)
...
I am trying to set up small web farm using "Microsoft Web Farm Framework 2.0 Beta for IIS 7"
Everything works fine, except for one problem -
My web application is written using ASP.NET MVC 2 and there is no references to ".aspx" files used. A typical url looks like:
http://192.168.2.35/Billing/Account/Create
Howver when this url ...
in my project I am redirecting user to another page on clicking a link.It is working fine in firefox and chrome but on ie it is showing a 302 status and it not redirecting to other page.How should i resolve this issue.
<a title="Go toCompany" style="background: none!important" href='<%= Url.Action("XYZ","BuildingProject",new {id=item....
I have the following scenario: my website displays articles (inputted by an admin. like a blog).
So to view an article, the user is referred to Home/Articles/{article ID}.
However, the user selects which article to view from within the Articles.aspx view itself, using a jsTree list.
So I what I need to do is to be able to differentiat...
I have a set of views that display to specific users. These are views I've copied from other views in our app, and changed them slightly.
In these views I'm using Html.Action link, but I need these to return an absolute url instead of the relative. I know there are extra parameters that can be used to get this effect, but I dont tihnk i...
Most of the ASP.NET MVC examples I have seen depict scenarios where a user is viewing an object (or collection of objects) and then moves from that page to one that displays a form that the user completes. Upon submitting the form with good input, the user is redirected back to the page that shows the object (or list) and the user can s...
anybody how can I know if the request is ajax ? (I'm using jquery for ajax)
...
Hi
Is there a good way to restrict the access to an action, so you can only access it, if you were redirected from another action. For example:
[HttpPost]
public virtual ActionResult Create(MyViewModel vm)
{
if (ModelState.IsValid)
{
// do some work
return RedirectToActio...
Im using MVC ASP.NET C#, jQuery
I'm building what could be decribed as the simpliest shopping cart in the world.
Basically My Clients wants users to be able to browse the site, Click on a product they want and it be added to a "list" and then when they "Checkout" they simply fill in a form and it emails my client with the list of produ...
Ive got 3 tables, projects, devices and projectdevice (table that links the 2 for a many to many relation). A device is connected to an account and in the account management the device can be connected to a project. I want to do this by using checkboxes. When creating or editing a project there should be a list of all devices and the pos...
I'm trying to implement a continuous status update feature similar to these sites with ASP.NET MVC + jQuery
http://foursquare.com/
http://hotpotato.com/
Does anyone know where I can find some tutorials/samples?
Cheers
...
RB:
<input type="radio" onclick="accountShow()" runat="server" name="GuestAccount" class="GuestAccount" value="1" />
<input type="radio" onclick="accountShow()" runat="server" name="GuestAccount" class="GuestAccount" value="0" />
Action:
Public Function Edit(ByVal guestAccount As String) As ActionResult
However I am receiving a...
I want to design a calendar in asp.net mvc and I want to take month information as a string in address bar. What should I do? And after that I have to show this month from index.aspx. How can I do this?
...
I have a strongly typed view from which I want to insert some data. However when I click on the submit button, the underlying data model is posted as a parameter to the controller. But when I view the contents of the parameter, it has not been updated with the user input.
Why is this?
The Controller looks like;
[HttpGet]
[Authorize(Rol...
Is it possible to implement SQL Session State with ASP.NET MVC without the addition of code to our webapp? We need this to be a transparent switch from In-proc to SQLServer.
...
Hello SO,
This is my first attempt at updating a database using LINQtoSQL. At least, it's my first if you don't count the tutorials I've followed. Unfortunately, The tutorials that I have found don't offer much more than updating a single table. I'm attempting to update a DB Model that's a bit more complex.
I have a Stream table:
[Tab...
Hi,
does anyone know if there is a way to trigger the client side form validation in a .Net MVC app manually? I want to do the following:
<script type="text/javascript">
if([form valid]) {
//do something
}
</script>
I already looked through the code in MicrosoftMvcValidation.js but didn't find a method I could call on...