Friday links 62

  1. The StarCraft path-finding hack – Code Of Honor
  2. Gamasutra – Features – Dirty Coding Tricks
  3. Heineken propose l’entretien d’embauche le plus incroyable | Altaïde
  4. How I Over-Engineered the ASP.NET Health Monitoring Feature « Mike Volodarsky
  5. HandleErrorAttribute and Health Monitoring – Andrew Wilinski
  6. 20+ Tools to Create Your Own Infographics
  7. Datavisualization.ch Selected Tools
  8. easel.ly – create Infographics online
  9. 10 Fun Tools To Easily Make Your Own Infographics | Edudemic
  10. Ghostbusters – Ray Parker Jr. (HQ Audio) – YouTube
  11. Microsoft All-In-One Code Framework – a centralized code sample library – Home
  12. [Sample Of Feb 18th] Update POCO entity properties and relationships in EF – Microsoft All-In-One Code Framework – Site Home – MSDN Blogs
  13. Releasing Sample Browser for Windows 8 – Get Your "Hands" on Thousands of Amazing Code Samples – Microsoft All-In-One Code Framework – Site Home – MSDN Blogs
  14. Multi-tier ASP.NET MVC 4 Web Site Tutorial – Step 1: Overview
  15. Cloud Computing | Bessemer Venture Partners
  16. Windows 8 App Development | Build for Windows
  17. Getting Started with MSDN Subscriptions
  18. Big Data’s New Use Cases: Transformation, Active Archive, and Exploration | Apache Hadoop for the Enterprise | Cloudera
  19. MVVM – IOC Containers and MVVM
  20. D3 Show Reel
  21. Brain-to-brain interfaces have arrived, and they are absolutely mindblowing
  22. Red Gate eBook and print book store
  23. Clifford Unchained – Nickels, dimes, and quarters.
  24. What kind of a software engineer do you want to be known as? | NCZOnline
  25. Lessons Learned in Windows 8 App Certification « Blankenblog
  26. Windows 8 App Development | Build for Windows
  27. Free-to-play children’s apps: views from the industry | Technology | guardian.co.uk

ASP.NET MVC–find error

I am moderator and a frequent answerer at forums.asp.net . Mostly of time the error is in thinking that database connection errors belong to MVC – or other things that are part of the .NET framework, not of MVC . However , I must write here the most confusing problem  that I have encountered:

<start quoting>

“I have an XML file, whose contents I want to display on the browser window using ASP drop down list and LINQ to XML. I am using Visual Studio MVC 4 for this purpose. In the model folder I have created a file to access the XML file, whose contents are :

[… not important code]

In the view folder, I have a asp file as shown

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcApplication7.Controllers.QueryController" CodeBehind="~/Controllers/QueryController.cs" %>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="updatePanel">
        <asp:DropDownList runat="server" ID="fragment">
        </asp:DropDownList>

    </div>

</asp:Content>
 

And finally in the Controller folder, I have

 namespace MvcApplication7.Controllers
    {
        public class QueryController : System.Web.UI.Page
        {
            //
            // GET: /Query/

        protected void Page_Load(object sender, EventArgs e)
        {
                fragment.DataSource = MvcApplication7.Models.fragmentNameModels.GetFragmentName();
                fragment.DataTextField = "id";
                fragment.DataValueField = "id";
                fragment.DataBind();
        }
 }
}
 

The ID given to the drop down list is "fragment", but when i use it my controller file I get the following error message :

Error 1 The name 'fragment' does not exist in the current context “

 

<end quoting>

Could you spot the error?

Then re-read the post and found the confusing things that will make assumption that is MVC ( including original poster words, comments and code)

 

( And , if not, the answer is here http://forums.asp.net/t/1974367.aspx?The+name+________+does+not+exist+error+Advice+needed+ASAP+ )

 

 

 

Andrei Ignat weekly software news(mostly .NET)

* indicates required

Please select all the ways you would like to hear from me:

You can unsubscribe at any time by clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices here.