MVC :: NerdDinner: Map / Ends Up On The Exact Same Coordinates On The Map Regardless Of The Address?

Nov 21, 2010

I started a website based on the NerdDinner source code, everything worked fine (more or less) but whenever I post an event, it ends up on the exact same coordinates on the map regardless of the address (Somewhere in the Gulf of Guinea!)

No idea what to do: I didn't alter the map code at all!

View 2 Replies


Similar Messages:

Web Forms :: How To Get Exact IP Address Of Local Machine

Oct 8, 2013

i want to login using ip address and (ip address as userid),and for this i need to find the ip address of the sysem.

View 1 Replies

MVC :: Get Same Nerddinner.Entities As Mvc Sample Nerddinner Using ADO Entity Framework

Oct 10, 2010

DbClick the code behind file of NerdDiner.edmx,It reads "This code was generated from a template." on the top comment lines. I generate my own .edmx file automatically with VS2010, just found that the .designer.cs file didnt contains Objectset,Methods as nerddinner does IDK which template hanselman used to generate this .edmx files,dont tell me he wrote it all by himself! Shoud .edmx and its code behind file be generated automaticlly without hard-coding?

View 4 Replies

How To Ensure Background Thread Ends When Application Ends?

Aug 12, 2010

I have an asp.net application with a background thread. The thread starts when the application starts and it is gracefully stopped when the application ends. I am running the website on a shared host. Unfortunately sometimes the application does not trigger the Application_End event when it ends. I would think that the threads would be killed anyway, but that's not the case. I currently have 4 threads running in the background. Three from previous times the application started and 1 from the current application session. How can I ensure that the threads are shutdown when the application ends? Is there a way for the threads to check if the application was reset or had been reset? Or is there a way to check for these rogue threads at application startup and kill them?

View 1 Replies

Duplicating Controls - Add Exact Duplicate Of Panel On Bottom Of Page With Exact Functionality

Jan 18, 2010

if there is anyway that I could duplicate controls in a asp.net pages. So for example, currently for one of my pages, I have a panel at the top of the page with alot of controls in them ( eg next/previous buttons, labels, trees, etc). However I wanted to add the exact duplicate of this panel on the bottom of the page aswell, with exact functionality.

View 2 Replies

MVC :: NerdDinner And Logo Link?

Sep 17, 2010

I have uploaded the nerddinner sample to "www.aaa.com/test/nerd". When a mouse is on menu tab such as "Find a host" then the link is shown at the bottom of Internet explorer as "www.aaa.com/test/nerd/Dinner" with the contoller name "Dinner". When the mouse is on the main logo which is on top and left, the link shown as "www.aaa.com". So it direct me to "www.aaa.com" instead of "www.aaa.com/test/nerd"

When can I change it? I have tried change the "start url" from the application property, but it did not work.

View 1 Replies

MVC :: Change Needed To NerdDinner Mvc Example?

Mar 15, 2010

As I am working thru the NerdDinner MVC example. I found that after implementing step 6 that edits to a dinner were no longer saved. After some investigation I found that I needed to add the ValueProvider to the UpdateModel function call in Edit (HttpPost) example. My updated code is below.

Questions:

1. Was this code change really necessary?

2. Is there a better way to do it?

Modified Code:

[Code]....

View 5 Replies

C# - Getting Geographical Coordinates From Web Application?

Apr 25, 2010

I want to learn a user's location from his mobile device by web application.

When user opens the website, with the help of a script we will learn if the device has a gps hardware.And if the device has gps hardware what are the current coordinates?

I'm developing my project using ASP.NET

View 1 Replies

MVC :: Nerddinner Using The Database From SQL EXPRESS Server

Mar 26, 2010

I have problem when I am working on the NerdDinner tutorial. If I create local database (in the project local) then it is working OK, but if I added connection with the database already existed in the SQL EXPRESS 2005 (using Data Connections -> Add Connection; from the Server Explored in the VS 2008) then I got GPF. Does anyone know how to use the database for server instead of local project?

View 3 Replies

MVC :: Nerddinner LogOn And Authentication Method?

Mar 14, 2011

i created a mvc project and looked to account controller LogOn action method. methood defined as bottom.

[Code]....

[Code]....

View 3 Replies

Mvc Nerddinner Question Linq To Entities Join?

May 13, 2010

I am working on a website similar to nerddinner. Is it possible to perform similar join
using Linq to entities what is done with linq to sql in nerddinner.I am posting the codes below.

public IQueryable<Dinner> FindByLocation(float latitude, float longitude) {
var dinners = from dinner in FindUpcomingDinners()
join i in db.NearestDinners(latitude, longitude)

[code]...

View 1 Replies

MVC :: Funy Error While Trying To Imitate Nerddinner Datarepository?

Jan 23, 2010

I created a repository, just the way it was done in nerddinner but i cnt seem to get any intellisense on the word "db'..the code is below;

[Code]....

View 2 Replies

Simulate Mouse Click Using X / Y Coordinates On Webpage

Jun 24, 2011

Is there anyway to simulate a mouse click using X,Y coordinates on a webpage ? Let's for example say I want to simulate a mouse click at page position x=400, Y=300. How Will I be able to do it using .net or javascript?

View 5 Replies

Web Forms :: Given Lat / Long Coordinates How Can Find Out City Name

Apr 27, 2016

Let's say I have a LatLng , is there any way of checking if it represents a possible location within a city? How can I get the limits of a city? I'm using Google Map.

View 1 Replies

MVC :: 2 NerdDinner - Data No Longer Saves After Adding ViewModel

Sep 3, 2010

I am creating the NerdDinner application via the Professional ASP.NET MVC 2 book, and once I got to the ViewModel part (pages 88-91), I noticed none of my data was saving any longer. I discovered several errors and areas of confusion in these pages of the book, which I will list now.

Page 88: When it says to add the DinnerFormViewModel class, it doesn't say what folder to add it to. On page 89, the Inherits example (NerdDinner.Controllers.DinnerFormViewModel) implies it was added to the Controllers folder, but if that were so, the code on page 88 would need to use Models.Dinner instead of just Dinner. No big deal; just put it in Models and change the Inherit statement on page 89 to use NerdDinner.Models.DinnerFormViewModel.

Page 89: At the bottom of the page is some wrong code. Since the properties of Dinner are now one level deeper, all references to m.Title, m.Country, etc, need to be m.Dinner.Title, m.Dinner.Country, etc. The statements above the code are also incorrect ("Notice... we are not changing the names of the input elements... the form elements will still be named...") -- the form elements will actually change from "Title", "Country", etc to "Dinner_Title", "Dinner_Country", etc.

Page 90 (Code Snippet 1-53): This was the one that broke the data saving. Now that the form elements have prefixes, the TryUpdateModel(dinner) needs to pass a prefix, like TryUpdateModel(dinner, "Dinner"). This will append "Dinner_" to the element names so that they can be found on the form.

View 3 Replies

Extract Text And Image From A Pdf In A Selected Area Or Coordinates

Mar 11, 2010

I have a specific requirement of extracting text and images from a specific area in a pdf file.The area might be a selected or highlighted or from a given set of coordinates.

When i went through, all the approaches are to extract images and text entirely from the PDF on not in a specified location. I tried with iTextSharp,Syncfussion,Apose but couldn figure out a better approach for this.

View 1 Replies

MVC :: NerdDinner Sample - How Does Delete Work - How To Control Deletes

Jun 7, 2010

I am still at the elementary stages of Linq To Sql and Entities usage. I started practicing MVC developement by following the NerdDinner tutorial here at asp.net, and I back myself up with fully developed NerdDinner sample (1.0 -- still on VS2008). I am also at the first half of the NerdDinner tutorial (I think -- maybe I'm further along) - so far I have gotten up to the Delete View. In the fully developed sample I noted that it uses ascx file (which I guess I will find out if the tutorial also will use
ascx files down the road). My sample app, which I am developing from the tutorial, seems to work OK so far. My issue is that I am not clear how the Delete mechanism works. In the DinnerRepository.cs I have this code (from the tutorial):

[code]....

It looks like a dinner object is being passed to these mechanisms and the delete occurs based on a row ID value. But what if I wanted to delete multiple rows - say where ID between 15 and 20 - how to go about this? I was looking for a Delete statement but am not finding it either in what I have developed so far from my tutorial sample or from the fully developed sample. How can I control Deletes in MVC?

View 1 Replies

Web Forms :: Converting Latitude And Longitude Into X / Y Pixel Coordinates

May 17, 2010

I've been struggling for the past couple of days to get this right. I'm in the process of building something that takes a whole bunch of geographic points, builds a heat map from the data, then overlays it as a tile on Google Earth / Google Maps. A bit like this: [URL]

I have all the heatmap functionality nailed using random xy points. The last part is doing the actual conversion to convert my real lat/lng pairs into x/y pixels to be rendered onto the heatmap image. Lets say I the image is 500px x 500px. I know the min and max values for the lat/lng points, so technically I need to divide the spread between the pixels to get a pixel value for each degree based on the top left pixel of the image (0,0). I've been through so many examples, but I just cant get them to work. The last one I tried was this:

[Code]....

I feed data into my heatpoint function using these 2 functions above like this. Here's a set of 4 points:

[Code]....

The problem I get is that the result is the same for all the points - they all get plotted to exactly the same point. Now, the data is fairly localised, so I dont really need to take the curvature of the earth into consideration.

View 5 Replies

MVC :: Nerddinner Repository Dinner Edit Fails To Save?

Dec 10, 2010

I'm trying to use the Nerddinner as a model to built my own project. I'm using the repository method but I cannot fiqure out why the Edit does not save to the database. I tested in the Nerddinner and it failed to save as well. Is this not functional in Nerdinner or could it be due to me using VS 2010 express?

I also started using MVC3 so I thought that could be the problem. I did some testing and was able to get my Edit to update to the database if I have the controller access the database instead of the repository.

Here's the relevant code from NerdDinner:

[code].....

View 35 Replies

Web Forms :: Image Button Returns Incorrect Coordinates?

Oct 27, 2010

I have an ImageButton which sometimes returns the wrong coordinates when clicked. So far I have seen this problems only on one particular computer but on that system it is consistently out by a factor of about 1.25. The dimensions of the ImageButton are 300 x 450 but clicking in the lower left corner returns 374,562. However, if I raise a button click through code the correct region of the button is accessed and the correct coordinates can be recovered. The browser is IE running under XP SP3. On other computers with the same browser and operating system there is no problem but I don't know how widespread the problem could be. It is not affected by altering the screen resolution. Has anyone encountered this before? Is there a way to test and calibrate an imagebutton (without asking the user to click somewhere special first)?

View 4 Replies

Web Forms :: Creating A Map - Unable To Capture The Coordinates By Clicking On The Map?

Mar 25, 2011

consider the following:


1- My web site has a map. The picture format of the map is jpeg.


2- Each user can add a node in the map by clicking on it.

3- After clicking the coordinates(X and Y) of clicked area is captured

4-Coordinates are saved in the data base

5- Whenever the page containing the map is loaded, for each coordinates stored in the database a small circle (ImageButton) will
be added to the map

I have two solutions for it:

1- Using a ImageButton as a map. I can capture the coordinates of the clicked area as follows:

protected void ImageButton1_Click(object sender,
ImageClickEventArgs e)[code]....

The problem of this solution is that the programmatically added nodes are not visible

2- As an alternative for ImageButton I can use a panel to display the map (BackImageUrl="~/Images/map.jpg").
after creating the btn programmatically I use the following code to add it to the panel:

Panel1.Controls.Add(btn);

Hear the problem is that I cannot capture the coordinates by clicking on the map.I need to enable the user to add the nodes to the map and view them in a single interface.

View 2 Replies

Design A Website / Move The Image Around And It Sets The Coordinates?

Jan 18, 2010

I am trying to design a website in asp.net (just learning) and am having trouble positioning div's on the .aspx page.

I normally design in dreamweaver where you can move the div around freely and it sets the x and y coordinates for you but I am having trouble positioning an image.

Do you have to type the x and y coordinates in yourself in the code behind or in the css or is there an easier way where you can freely move the image around and it sets the coordinates.

View 5 Replies

AJAX :: Checkbox Placed Next To Slider Ends Up On Next Row

Jan 25, 2010

In a div element, I have a slider (using the Ajax Toolkit slider extender on a textbox). I then want to place a checkbox control right next to the slider - on the same row. However, on the page, the checkbox ends up one row below the slider. It looks like the slider adds a line break after itself. Is this expected? How can I avoid this?

For information, this code is placed in a content section of a page that has a masterpage attached to it. The content section is more than wide enough to contain the slider and the checkbox.

This is the relevant code snippet

[Code]....

View 2 Replies

Keep Some Datas In A Session When Countdown Ends

Jun 15, 2010

I write a countdown timer in jQuery and i need to keep some datas in a session when countdown ends. Datas have to be sent to server to update. How can i handle this situation. I am new in jQuery and asp.net so could you explain this briefly

View 4 Replies

C# - Run Command And Make Sure It Ends Before Continuing?

Feb 4, 2010

i am running a command line program from inside my c# code behind page. the command looks like so.

String runMe = baseDir + @"Binffmpeg.exe";
String convertVideo = " -i "" + fullFileName + "" -ab 64 -ar 44100 -b 200 -y -f flv "" + fullFileNameWOextension + ".flv" ";
String makeImages = " -i "" + fullFileName + "" -r 1 -ss 00:00:01 -t 00:00:15 -f image2 -s 120x96 "" + imagesPath + "" + filename.Substring(0, filename.IndexOf(".")) + "_images%05d.jpeg"";
EdgeCastHelper.ExecuteCommandSync(runMe, convertVideo);
EdgeCastHelper.ExecuteCommandSync(runMe, makeImages);

There are some bits missing which are passed in as parameters. Once i have converted the video i upload it to separate file server.

What i would like to know: Is there a way to stop the upload process happening until the exe has run its course, ie fully converted the video.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved